Vulnerability in udmabuf: validate ubuf->pagecount

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001556: udmabuf: validate ubuf->pagecount. Affects Kernel versions >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < a3728d32fc61eb0fe283cb8ff60b2c8f751e2202. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The udmabuf package is a component of the Linux Kernel ecosystem. It provides a mechanism for userspace applications to allocate and share contiguous memory buffers with DMA capabilities. These buffers are commonly used in high-performance computing and multimedia applications. However, a vulnerability has been discovered in the udmabuf package that can potentially be exploited by attackers.

Vulnerability Detail

The vulnerability in udmabuf arises from a lack of proper validation of the 'pagecount' parameter in the 'ubuf' structure. This parameter represents the number of pages allocated for the buffer. By manipulating this value, an attacker may be able to cause a buffer overflow or other memory-related issues. The impact of this vulnerability could range from denial of service to arbitrary code execution, depending on the specific context in which the udmabuf package is used.

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

If updating the Linux Kernel is not immediately feasible, a temporary workaround can be implemented by modifying the affected code to include explicit validation of the 'pagecount' parameter. Here is an example of how this validation can be added:

if (ubuf->pagecount <= 0) {
  // Handle error condition
}

Conclusion

In conclusion, the udmabuf package in the Linux Kernel is vulnerable to a validation issue in the 'pagecount' parameter of the 'ubuf' structure. This vulnerability can have serious consequences, including denial of service and arbitrary code execution. It is crucial to update the Linux Kernel to the latest version to mitigate this vulnerability. For further support and assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

Udmabuf is a component of the Linux Kernel that allows userspace applications to allocate and share contiguous memory buffers with DMA capabilities.

The impact of this vulnerability can range from denial of service to arbitrary code execution, depending on the specific context in which the udmabuf package is used.

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

Yes, a temporary workaround can be implemented by adding explicit validation of the 'pagecount' parameter in the affected code.

The updated Linux Kernel can be obtained from the official Linux Kernel repository.

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