VDB

CVE-2024-56712

CVE-2024-56712 PUBLISHED CVSS 3.3 LOW

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

Reported by linux · Published December 29, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.12.7
LinuxLinuxf49856f525acd5bef52ae28b7da2e001bbe7439e, e469922fbdf6ad729e5dc8d49289b5036a0ecdf8, c9fc8428d4255c2128da9c4d5cd92e554d0150cf, 00ebdef47994206f60546929a0f6f63285497272

Risk scores

CVSS 3.1
3.3
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Affected products

VendorProductVersions
LinuxLinuxfbb0de795078190a9834b3409e4b009cfb18a6d4, fbb0de795078190a9834b3409e4b009cfb18a6d4, fbb0de795078190a9834b3409e4b009cfb18a6d4
LinuxLinux4.20, 0, 6.1.191
LinuxLinux6.13, 0, 6.1.191
linuxlinux_kernel4.20, 4.20, 4.20

Timeline

  • Dec 29, 2024 CVE Published
  • Dec 30, 2024 EPSS Score (30 in total, the first dated here)
  • Feb 6, 2025 Coalition ESS Score (6 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Dec 29, 2025 Security Advisory (436 in total, the first dated here)
  • Sep 24, 2026 Distribution Patch (354 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-56712
vulnetix vdb fixes CVE-2024-56712

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-56712/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›