Memory Leak Vulnerability in Linux Kernel's Udmabuf Package

linux Updated 02 Oct 2025

Summary

29/12/2024
N/A
No i
Medium
5.5

CVE-2024-56712: In the Linux kernel, the following vulnerability has been resolved: udmabuf: fix memory leak on last export_udmabuf() error path In export_udmabuf(), if dma_buf_fd() fails because the FD table is full, a dma_buf owning t... Affects linux versions 5.10.103-1 – 6.9.9-1. 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 Linux kernel is the core component of many operating systems, providing essential services for hardware management and system resource allocation. The udmabuf package is a driver that facilitates the sharing of DMA buffers between devices and user space. This package is crucial for performance in systems that require efficient data transfer. However, it has been identified to have a vulnerability that can lead to memory leaks, impacting system stability and performance.

Vulnerability Detail

The vulnerability, identified as CVE-2024-56712, arises in the udmabuf driver where a memory leak occurs during the error handling of the export_udmabuf() function. Specifically, if the dma_buf_fd() function fails due to a full file descriptor table, the udmabuf is torn down without properly handling the associated dma_buf. This results in a dangling pointer and a memory leak, which, while not immediately harmful, can degrade system performance over time. The issue has persisted since the introduction of the udmabuf driver, despite significant code changes in recent commits.

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

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the patch as soon as it becomes available.

Conclusion

The CVE-2024-56712 vulnerability in the Linux kernel's udmabuf package presents a memory leak issue that can affect system performance. Users are advised to update their kernel to the patched version as soon as it is available to mitigate this risk. Regular monitoring and updates are essential to maintain system integrity.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2024-56712 is a vulnerability in the Linux kernel's udmabuf driver that can lead to memory leaks.

While it may not cause immediate issues, the memory leak can lead to degraded performance over time, potentially exhausting system resources.

Yes, a patch is expected to be released in future updates of the Linux kernel. Users should regularly check for updates.

Yes, you can use Vulert, which monitors open-source vulnerabilities in real-time using a manifest file like package-lock.json. You can check your application using the Vulert playground without signup.

The CVSS score for this vulnerability is 5.5, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

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