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-1001351: seq_buf: Fix overflow in seq_buf_putmem_hex(). Affects Kernel versions >= 5e3ca0ec76fce92daa4eed0d02de9c79b1fe3920, < 33ab9138a13e379cf1c4ccd76b97ae2ee8c5421b. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Kernel is a crucial component of the Linux operating system that acts as a bridge between hardware and software. It provides essential services and functions to enable the proper functioning of the system. The seq_buf is a data structure used in the Kernel to efficiently handle sequential data. However, a vulnerability has been identified in the seq_buf_putmem_hex() function, which can lead to an overflow issue.

Vulnerability Detail

The seq_buf_putmem_hex() function in the Kernel is susceptible to an overflow vulnerability. This vulnerability allows an attacker to overwrite adjacent memory locations, potentially leading to arbitrary code execution or system crashes. The vulnerability was introduced in version v2.6.27 of the Kernel and has been fixed in version v5.4.133. The impact and attack plausibility of this vulnerability 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 the patch manually to their existing Kernel version. Here is an example of the patch:

-    seq_buf_putmem_hex(buf, data, size);
+    if (size <= SEQ_BUF_MAX_SIZE)
+        seq_buf_putmem_hex(buf, data, size);

Conclusion

In conclusion, a vulnerability has been identified in the seq_buf_putmem_hex() function in the Kernel, which can lead to an overflow issue. It is crucial to update the Kernel to version v5.4.133 or later to mitigate this vulnerability. Users can also apply the provided patch as a temporary workaround. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability can vary depending on the attacker's capabilities and the context in which the Kernel is used. It could potentially lead to arbitrary code execution or system crashes, compromising the integrity and availability of the system.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) to the playground, and it will provide real-time alerts for open-source vulnerabilities, including this one.

As of now, there is no known exploit for this vulnerability. However, it is important to apply the necessary updates or patches to mitigate the risk.

Updating the Kernel to the fixed version is the recommended approach to mitigate this vulnerability. However, if updating is not immediately feasible, you can apply the provided patch as a temporary workaround.

At the moment, updating the Kernel to the fixed version is the primary solution. It is essential to stay updated with the latest security patches and follow best practices for secure system administration.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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