Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-56712

LOW 3.3EPSS 15%

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

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < 00ebdef47994206f60546929a0f6f63285497272; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < e469922fbdf6ad729e5dc8d49289b5036a0ecdf8; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < c9fc8428d4255c2128da9c4d5cd92e554d0150cf; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < f49856f525acd5bef52ae28b7da2e001bbe7439e
  • Anyone running Linux 4.20

Vulnerability facts

Affected
Linux >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < 00ebdef47994206f60546929a0f6f63285497272; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < e469922fbdf6ad729e5dc8d49289b5036a0ecdf8; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < c9fc8428d4255c2128da9c4d5cd92e554d0150cf; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < f49856f525acd5bef52ae28b7da2e001bbe7439e; Linux 4.20
Fixed in
Linux 00ebdef47994206f60546929a0f6f63285497272
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
3.3 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: Low
EPSS
0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
CWE
CWE-401
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= fbb0de795078190a9834b3409e4b009cfb18a6d4, < 00ebdef47994206f60546929a0f6f63285497272; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < e469922fbdf6ad729e5dc8d49289b5036a0ecdf8; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < c9fc8428d4255c2128da9c4d5cd92e554d0150cf; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < f49856f525acd5bef52ae28b7da2e001bbe7439e—cvelist
Linux4.20—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-56712. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56712.md
Affected: Linux >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < 00ebdef47994206f60546929a0f6f63285497272; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < e469922fbdf6ad729e5dc8d49289b5036a0ecdf8; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < c9fc8428d4255c2128da9c4d5cd92e554d0150cf; >= fbb0de795078190a9834b34…
Fixed in: Linux 00ebdef47994206f60546929a0f6f63285497272

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-56712 being exploited?

There is no confirmed exploitation: CVE-2024-56712 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-56712?

Low: CVSS 3.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-56712?

Linux >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < 00ebdef47994206f60546929a0f6f63285497272; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < e469922fbdf6ad729e5dc8d49289b5036a0ecdf8; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < c9fc8428d4255c2128da9c4d5cd92e554d0150cf; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < f49856f525acd5bef52ae28b7da2e001bbe7439e; Linux 4.20.

Is there a fix for CVE-2024-56712?

Yes. Fixed in Linux 00ebdef47994206f60546929a0f6f63285497272. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2024-56712?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors