Fix sg checks in debug_dma_map_sg() vulnerability in Kernel

Kernel Updated 02 Oct 2025

Summary

28/10/2021
N/A
No i
Unrated
Not published

GSD-2021-1001804: dma-debug: fix sg checks in debug_dma_map_sg(). Affects Kernel versions >= 884d05970bfbc3db368f23460dc4ce63257f240d, < db9aadf3bb8d7c1def4813f142cba9cf94be2999. 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 acts as a bridge between hardware and software. It provides essential services, such as device drivers, memory management, and process management. The debug_dma_map_sg() function is responsible for mapping scatter-gather lists (SG) for direct memory access (DMA) debugging purposes. However, a vulnerability has been discovered in this function that could potentially be exploited by attackers.

Vulnerability Detail

The debug_dma_map_sg() function in the Kernel has a flaw that allows an attacker to bypass scatter-gather (SG) checks. This vulnerability could lead to unauthorized access to sensitive data or the execution of arbitrary code. The issue was introduced in version v2.6.31 of the Kernel and has been fixed in version v4.19.214. The vulnerability arises from improper validation of SG entries, which can be manipulated by an attacker to gain unauthorized access.

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

There is no specific workaround available for this vulnerability. Updating the Kernel to the fixed version is the recommended solution.

Conclusion

The fix for the sg checks vulnerability in debug_dma_map_sg() is available in Kernel version v4.19.214. It is crucial to update the Kernel to this version or later to ensure the security and integrity of the system. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability could potentially allow an attacker to gain unauthorized access to sensitive data or execute arbitrary code.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

At the time of this report, there is no known exploit for this vulnerability. However, it is essential to apply the fix as soon as possible to mitigate any potential risks.

Yes, this vulnerability can be exploited remotely if the affected system is exposed to the internet or accessible by an attacker.

If updating the Kernel is not immediately feasible, it is recommended to implement additional security measures, such as network segmentation, access controls, and intrusion detection systems, to minimize the risk of exploitation.

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