Vulnerability in Kernel: dma-debug: fix sg checks in debug_dma_map_sg()

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1001823: dma-debug: fix sg checks in debug_dma_map_sg(). Affects Kernel versions >= 884d05970bfbc3db368f23460dc4ce63257f240d, < 0f5b08ca22e1930d2cb0aa176355434b927537bc. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Kernel is a critical component of the Linux operating system that manages the system's resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The dma-debug subsystem within the Kernel is responsible for debugging and tracking Direct Memory Access (DMA) operations. DMA allows devices to transfer data directly to and from memory without involving the CPU.

The debug_dma_map_sg() function in dma-debug is used to map scatter-gather (SG) lists for DMA operations. SG lists describe a series of memory regions that need to be accessed by a device during a DMA transfer. However, a vulnerability has been discovered in the implementation of sg checks in debug_dma_map_sg().

Vulnerability Detail

The vulnerability in debug_dma_map_sg() can potentially be exploited by an attacker to bypass security checks and perform unauthorized DMA transfers. By manipulating the SG lists, an attacker may gain access to sensitive data or modify memory contents, leading to information disclosure, privilege escalation, or system crashes. The vulnerability was introduced in version v2.6.31 of the Kernel and has been fixed in version v5.4.156 by commit 0f5b08ca22e1930d2cb0aa176355434b927537bc.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.4.156 or later. This can be done by pulling the latest updates from the official Linux Kernel repository using the following command:

$ git clone https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/

Once the updated Kernel is installed, the fix will be applied, and the vulnerability will be mitigated.

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

Workaround

No specific workaround has been provided for this vulnerability. It is crucial to update the Kernel to the fixed version as soon as possible to ensure the security and stability of the system.

Conclusion

The vulnerability in debug_dma_map_sg() of the Kernel can be exploited to perform unauthorized DMA transfers, potentially leading to information disclosure, privilege escalation, or system crashes. It is crucial to update the Kernel to the fixed version v5.4.156 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Kernel is a critical component of the Linux operating system that manages the system's resources and facilitates communication between hardware and software.

DMA stands for Direct Memory Access, which allows devices to transfer data directly to and from memory without involving the CPU.

The dma-debug subsystem is responsible for debugging and tracking DMA operations in the Kernel.

debug_dma_map_sg() is a function in dma-debug that is used to map scatter-gather (SG) lists for DMA operations.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.4.156 or later.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.4.156 or later. This can be done by pulling the latest updates from the official Linux Kernel repository using the following command:

$ git clone https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/

Once the updated Kernel is installed, the fix will be applied, and the vulnerability will be mitigated.

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.