{"id":"CVE-2024-56712","published":"2024-12-29T08:48:46Z","modified":"2026-10-30T12:20:26Z","title":"udmabuf: fix memory leak on last export_udmabuf() error path","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nudmabuf: fix memory leak on last export_udmabuf() error path\n\nIn export_udmabuf(), if dma_buf_fd() fails because the FD table is full, a\ndma_buf owning the udmabuf has already been created; but the error handling\nin udmabuf_create() will tear down the udmabuf without doing anything about\nthe containing dma_buf.\n\nThis leaves a dma_buf in memory that contains a dangling pointer; though\nthat doesn't seem to lead to anything bad except a memory leak.\n\nFix it by moving the dma_buf_fd() call out of export_udmabuf() so that we\ncan give it different error handling.\n\nNote that the shape of this code changed a lot in commit 5e72b2b41a21\n(\"udmabuf: convert udmabuf driver to use folios\"); but the memory leak\nseems to have existed since the introduction of udmabuf.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.3,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.003,"percentile":0.15091,"provenance":"source"},"cwes":[{"id":"CWE-401","name":"Missing Release of Memory after Effective Lifetime"}],"references":[{"url":"https://git.kernel.org/stable/c/00ebdef47994206f60546929a0f6f63285497272","tags":[]},{"url":"https://git.kernel.org/stable/c/e469922fbdf6ad729e5dc8d49289b5036a0ecdf8","tags":[]},{"url":"https://git.kernel.org/stable/c/c9fc8428d4255c2128da9c4d5cd92e554d0150cf","tags":[]},{"url":"https://git.kernel.org/stable/c/f49856f525acd5bef52ae28b7da2e001bbe7439e","tags":[]}],"priority":{"score":5.3,"factors":[{"name":"EPSS percentile","points":3.02},{"name":"CVSS severity","points":2.31}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= fbb0de795078190a9834b3409e4b009cfb18a6d4, < 00ebdef47994206f60546929a0f6f63285497272",">= fbb0de795078190a9834b3409e4b009cfb18a6d4, < e469922fbdf6ad729e5dc8d49289b5036a0ecdf8",">= fbb0de795078190a9834b3409e4b009cfb18a6d4, < c9fc8428d4255c2128da9c4d5cd92e554d0150cf",">= fbb0de795078190a9834b3409e4b009cfb18a6d4, < f49856f525acd5bef52ae28b7da2e001bbe7439e"]},{"vendor":"Linux","product":"Linux","versions":["4.20"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-17T20:10:27.510565Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-53360","exploited":false,"provenance":"source"}}