Overflow Vulnerability in seq_buf_putmem_hex() in Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1001427: seq_buf: Fix overflow in seq_buf_putmem_hex(). Affects Kernel versions >= 5e3ca0ec76fce92daa4eed0d02de9c79b1fe3920, < 50b51460f59acbd403475510ad423bb5ea7a4c97. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Kernel is a crucial component of the Linux operating system that provides core functionalities and acts as an interface between hardware and software. It manages system resources, facilitates communication between software and hardware components, and enables the execution of various processes. The seq_buf_putmem_hex() function is a part of the seq_buf module in the Kernel, which is responsible for managing sequential buffers used for storing data. These buffers are commonly used in various subsystems within the Kernel, such as procfs and debugfs. However, a vulnerability has been identified in the seq_buf_putmem_hex() function that can lead to an overflow.

Vulnerability Detail

The seq_buf_putmem_hex() function in the Kernel is vulnerable to an overflow issue. This vulnerability arises due to insufficient bounds checking when copying data into a sequential buffer. An attacker can exploit this vulnerability by providing specially crafted input, causing the function to write beyond the allocated buffer, resulting in a buffer overflow. This can lead to various consequences, including arbitrary code execution, privilege escalation, or denial of service. The vulnerability was introduced in version v2.6.27 of the Kernel and was fixed in version v4.14.240.

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 disable or restrict access to the affected functionality that utilizes the seq_buf module. This can be achieved by modifying the system configuration or access control settings to prevent potential exploitation of the vulnerability. However, it is strongly advised to apply the official fix by updating the Kernel to the recommended version as soon as possible.

Conclusion

The seq_buf_putmem_hex() function in the Kernel is vulnerable to an overflow issue, which can be exploited by an attacker to execute arbitrary code, escalate privileges, or cause denial of service. It is crucial to update the Kernel to version v4.14.240 or later to mitigate this vulnerability. As a temporary workaround, users can restrict access to the affected functionality, but applying the official fix is highly recommended. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The seq_buf module in the Kernel is responsible for managing sequential buffers used for storing data. These buffers are commonly utilized in various subsystems within the Kernel, such as procfs and debugfs, to provide an interface for accessing and retrieving information.

An attacker can exploit this vulnerability by providing specially crafted input to the seq_buf_putmem_hex() function, causing it to write beyond the allocated buffer. This can lead to a buffer overflow, which may result in arbitrary code execution, privilege escalation, or denial of service.

The potential consequences of this vulnerability include arbitrary code execution, privilege escalation, or denial of service. An attacker who successfully exploits this vulnerability may gain unauthorized access, execute malicious code, or disrupt the normal operation of the system.

This vulnerability was introduced in version v2.6.27 of the Kernel. All subsequent versions up to v4.14.240 are affected. It is recommended to update the Kernel to version v4.14.240 or later to mitigate the vulnerability.

Users can obtain the updated Kernel version, including the fix for this vulnerability, from the official Linux Kernel repository. It is important to regularly update the Kernel to ensure the latest security patches are applied.

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