Vulnerability in Kernel: Disallow Extremely Large seq Buffer Allocations

Kernel Updated 02 Oct 2025

Summary

03/08/2021
N/A
No i
Unrated
Not published

UVI-2021-1001413: seq_file: disallow extremely large seq buffer allocations. Affects Kernel versions >= 058504edd02667eef8fac9be27ab3ea74332e9b4, < 3c07d1335d17ae0411101024de438dbc3734e992. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Kernel is a critical component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides essential functions for process management, memory management, device drivers, and more. The vulnerability in focus relates to the seq_file interface, which allows the sequential reading of data from kernel space to user space. This interface is commonly used by various kernel subsystems to expose information to user-space consumers. However, the vulnerability allows for the allocation of extremely large seq buffers, potentially leading to resource exhaustion and denial-of-service attacks.

Vulnerability Detail

The vulnerability arises from a flaw in the seq_file interface implementation, specifically in the handling of buffer allocations. An attacker could exploit this vulnerability by requesting the allocation of an excessively large seq buffer, causing the system to consume excessive resources or crash. The impact of this vulnerability could range from a temporary denial-of-service condition to a complete system freeze. It is important to note that the actual attack plausibility and impact have not been proven yet.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can apply a patch or modify the affected code to enforce a limit on the size of seq buffers. This can be achieved by adding a check to ensure that the requested buffer size does not exceed a predefined threshold. Here is an example of how the code can be modified:

// Add the following check before allocating the seq buffer
if (requested_size > MAX_SEQ_BUFFER_SIZE) {
    return -EINVAL;
}

Conclusion

In conclusion, the vulnerability in the Kernel's seq_file interface can allow for the allocation of extremely large seq buffers, potentially leading to resource exhaustion and denial-of-service attacks. It is crucial to update the Linux Kernel to version v4.14.240 or a later release that includes the fix. Applying a temporary workaround by enforcing a limit on the size of seq buffers can also mitigate the risk. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The seq_file interface is a mechanism in the Linux Kernel that allows for the sequential reading of data from kernel space to user space. It is commonly used by various kernel subsystems to expose information to user-space consumers.

The impact of this vulnerability can range from a temporary denial-of-service condition to a complete system freeze. However, the actual attack plausibility and impact have not been proven yet.

The vulnerability was introduced in version v3.16 of the Linux Kernel by commit 058504edd02667eef8fac9be27ab3ea74332e9b4. It has been fixed in version v4.14.240 through commit 3c07d1335d17ae0411101024de438dbc3734e992.

You can find more details about this vulnerability, including its source and fix, in the Open Source Vulnerability database maintained by the Cloud Security Alliance. Here is the link to the vulnerability entry: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1001xxx/UVI-2021-1001413.json

To fix this vulnerability, it is recommended to update the Linux Kernel to version v4.14.240 or a subsequent release that includes the fix. Users can obtain the updated Kernel from the official Linux Kernel repository: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback