{"id":"CVE-2023-53181","published":"2025-09-15T14:04:32Z","modified":"2026-05-11T19:39:50Z","title":"dma-buf/dma-resv: Stop leaking on krealloc() failure","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndma-buf/dma-resv: Stop leaking on krealloc() failure\n\nCurrently dma_resv_get_fences() will leak the previously\nallocated array if the fence iteration got restarted and\nthe krealloc_array() fails.\n\nFree the old array by hand, and make sure we still clear\nthe returned *fences so the caller won't end up accessing\nfreed memory. Some (but not all) of the callers of\ndma_resv_get_fences() seem to still trawl through the\narray even when dma_resv_get_fences() failed. And let's\nzero out *num_fences as well for good measure.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00226,"percentile":0.07924,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/19e7b9f1f7e1cb92a4cc53b4c064f7fb4b1f1983","tags":[]},{"url":"https://git.kernel.org/stable/c/819656cc03dec7f7f7800274dfbc8eb49f888e9f","tags":[]},{"url":"https://git.kernel.org/stable/c/05abb3be91d8788328231ee02973ab3d47f5e3d2","tags":[]}],"priority":{"score":1.6,"factors":[{"name":"EPSS percentile","points":1.58}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= d3c80698c9f58a0683badf78793eebaa0c71afbd, < 19e7b9f1f7e1cb92a4cc53b4c064f7fb4b1f1983",">= d3c80698c9f58a0683badf78793eebaa0c71afbd, < 819656cc03dec7f7f7800274dfbc8eb49f888e9f",">= d3c80698c9f58a0683badf78793eebaa0c71afbd, < 05abb3be91d8788328231ee02973ab3d47f5e3d2"]},{"vendor":"Linux","product":"Linux","versions":["5.16"]}],"euvd":{"id":"EUVD-2023-59795","exploited":false,"provenance":"source"}}