CVE-2024-56712
Last modified
CVE-2024-56712 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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 the udmabuf has already been created; but the error handling in udmabuf_create() will tear down the udmabuf without doing anything about the containing dma_buf. This leaves a dma_buf in memory that contains a dangling pointer; though that doesn't seem to lead to anything bad except a memory leak. Fix it by moving the dma_buf_fd() call out of export_udmabuf() so that we can give it different error handling. Note that the shape of this code changed a lot in commit 5e72b2b41a21 ("udmabuf: convert udmabuf driver to use folios"); but the memory leak seems to have existed since the introduction of udmabuf.. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
Description
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 the udmabuf has already been created; but the error handling in udmabuf_create() will tear down the udmabuf without doing anything about the containing dma_buf. This leaves a dma_buf in memory that contains a dangling pointer; though that doesn't seem to lead to anything bad except a memory leak. Fix it by moving the dma_buf_fd() call out of export_udmabuf() so that we can give it different error handling. Note that the shape of this code changed a lot in commit 5e72b2b41a21 ("udmabuf: convert udmabuf driver to use folios"); but the memory leak seems to have existed since the introduction of udmabuf.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 4.20, < 6.12.7 | — |
| Linux | Linux Kernel | 6.13 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-56712?
How severe is CVE-2024-56712?
How do I fix CVE-2024-56712?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-56707In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-56708In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-56709In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-5671Insecure Deserialization in some workflows of the IPS Manage…9.8
- CVE-2024-56710In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-56711In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-56713In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-56714In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-56715In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-56716In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-56717In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-56718In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-56712?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
