CVE-2024-56712: udmabuf: fix memory leak on last export_udmabuf() error path

Published Dec 29, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

udmabuf: fix memory leak on last exportudmabuf() error path

In exportudmabuf(), if dmabuffd() fails because the FD table is full, a dmabuf owning the udmabuf has already been created; but the error handling in udmabufcreate() will tear down the udmabuf without doing anything about the containing dmabuf.

This leaves a dmabuf 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 dmabuffd() call out of exportudmabuf() 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.

Other sources

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

5 affected componentsFixes available
Linux Linux kernel>=4.20<6.12.7
Linux Linux kernel=6.13-rc1
Linux Linux kernel=6.13-rc2
Linux Linux kernel=6.13-rc3
debian/linux<=5.10.223-1, <=5.10.234-1, <=6.1.129-1, <=6.1.135-1
6.12.27-1

Event History

Dec 29, 2024
CVE Published
via MITRE·08:48 AM
Data Sourced
via MITRE·08:48 AM
Description
Mar 27, 2025
Data Sourced
via Launchpad·06:47 PM
Description
Apr 28, 2025
Data Sourced
via Ubuntu·06:54 PM
RemedyDescriptionSeverityAffected Software
Sep 3, 2025
Data Sourced
via Microsoft·11:10 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2024-56712?

CVE-2024-56712 has been classified as a moderate severity vulnerability due to its potential impact on system stability.

2

How do I fix CVE-2024-56712?

To fix CVE-2024-56712, update your Linux kernel to version 6.12.8 or later.

3

Which versions of the Linux kernel are affected by CVE-2024-56712?

CVE-2024-56712 affects Linux kernel versions from 4.20 up to 6.12.7 and specific release candidates of version 6.13.

4

What type of issue is CVE-2024-56712?

CVE-2024-56712 is a memory leak vulnerability that occurs during error handling in the export_udmabuf() functionality.

5

Is CVE-2024-56712 exploitable remotely?

CVE-2024-56712 is not considered remotely exploitable as it requires local access to the affected system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203