{"id":"CVE-2023-53181","aliases":["CVE-2023-53181"],"related":[],"kind":"vulnerability","state":"published","title":"dma-buf/dma-resv: Stop leaking on krealloc() failure","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2025-09-15T14:04:32.098Z","modified":"2026-06-17T06:44:27.210Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"d3c80698c9f58a0683badf78793eebaa0c71afbd","fixed":"19e7b9f1f7e1cb92a4cc53b4c064f7fb4b1f1983","status":"affected"},{"type":"git","introduced":"d3c80698c9f58a0683badf78793eebaa0c71afbd","fixed":"819656cc03dec7f7f7800274dfbc8eb49f888e9f","status":"affected"},{"type":"git","introduced":"d3c80698c9f58a0683badf78793eebaa0c71afbd","fixed":"05abb3be91d8788328231ee02973ab3d47f5e3d2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.16","status":"unaffected"},{"type":"semver","introduced":"6.1.42","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.4.7","lastAffected":"6.4.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.5","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.16","fixed":"6.1.42"},{"status":"affected","introduced":"6.2","fixed":"6.4.7"},{"status":"affected","version":"6.5"},{"status":"affected","version":"6.5"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/19e7b9f1f7e1cb92a4cc53b4c064f7fb4b1f1983","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/819656cc03dec7f7f7800274dfbc8eb49f888e9f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/05abb3be91d8788328231ee02973ab3d47f5e3d2","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53181","url":"https://www.cve.org/CVERecord?id=CVE-2023-53181","licence":"CVE Terms of Use","modified":"2026-05-11T19:39:50.199Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53181","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53181","licence":"Public domain","modified":"2026-06-17T06:44:27.210Z"}],"updatedAt":"2026-11-25T22:58:34.760Z","epss":{"score":0.00164,"percentile":0.05801,"date":"2026-12-01T12:00:22.000Z"}}