{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-49889","id":"CVE-2024-49889","title":"ext4: avoid use-after-free in ext4_ext_show_leaf()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: avoid use-after-free in ext4_ext_show_leaf()\n\nIn ext4_find_extent(), path may be freed by error or be reallocated, so\nusing a previously saved *ppath may have been freed and thus may trigger\nuse-after-free, as follows:\n\next4_split_extent\n  path = *ppath;\n  ext4_split_extent_at(ppath)\n  path = ext4_find_extent(ppath)\n  ext4_","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: avoid use-after-free in ext4_ext_show_leaf()\n\nIn ext4_find_extent(), path may be freed by error or be reallocated, so\nusing a previously saved *ppath may have been freed and thus may trigger\nuse-after-free, as follows:\n\next4_split_extent\n  path = *ppath;\n  ext4_split_extent_at(ppath)\n  path = ext4_find_extent(ppath)\n  ext4_split_extent_at(ppath)\n    // ext4_find_extent fails to free path\n    // but zeroout succeeds\n  ext4_ext_show_leaf(inode, path)\n    eh = path[depth].p_hdr\n    // path use-after-free !!!\n\nSimilar to ext4_split_extent_at(), we use *ppath directly as an input to\next4_ext_show_leaf(). Fix a spelling error by the way.\n\nSame problem in ext4_ext_handle_unwritten_extents(). Since 'path' is only\nused in ext4_ext_show_leaf(), remove 'path' and use *ppath directly.\n\nThis issue is triggered only when EXT_DEBUG is defined and therefore does\nnot affect functionality.","published":"2024-10-21T18:01:24.941Z","updated":"2026-10-28T02:30:45.324956941Z","reserved":"2024-10-21T12:17:06.022Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"dfe5080939ea4686b3414b5d970a9b26733c57a4","lessThan":"b0cb4561fc4284d04e69c8a66c8504928ab2484e","status":"affected","versionType":"git"},{"version":"dfe5080939ea4686b3414b5d970a9b26733c57a4","lessThan":"4999fed877bb64e3e7f9ab9996de2ca983c41928","status":"affected","versionType":"git"},{"version":"dfe5080939ea4686b3414b5d970a9b26733c57a4","lessThan":"2eba3b0cc5b8de624918d21f32b5b8db59a90b39","status":"affected","versionType":"git"},{"version":"dfe5080939ea4686b3414b5d970a9b26733c57a4","lessThan":"34b2096380ba475771971a778a478661a791aa15","status":"affected","versionType":"git"},{"version":"dfe5080939ea4686b3414b5d970a9b26733c57a4","lessThan":"8b114f2cc7dd5d36729d040b68432fbd0f0a8868","status":"affected","versionType":"git"},{"version":"dfe5080939ea4686b3414b5d970a9b26733c57a4","lessThan":"d483c7cc1796bd6a80e7b3a8fd494996260f6b67","status":"affected","versionType":"git"},{"version":"dfe5080939ea4686b3414b5d970a9b26733c57a4","lessThan":"4e2524ba2ca5f54bdbb9e5153bea00421ef653f5","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.18","status":"affected"},{"version":"0","lessThan":"3.18","status":"unaffected","versionType":"semver"},{"version":"5.10.227","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.168","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.113","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.55","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.10.14","lessThanOrEqual":"6.10.*","status":"unaffected","versionType":"semver"},{"version":"6.11.3","lessThanOrEqual":"6.11.*","status":"unaffected","versionType":"semver"},{"version":"6.12","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/b0cb4561fc4284d04e69c8a66c8504928ab2484e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4999fed877bb64e3e7f9ab9996de2ca983c41928","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2eba3b0cc5b8de624918d21f32b5b8db59a90b39","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/34b2096380ba475771971a778a478661a791aa15","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8b114f2cc7dd5d36729d040b68432fbd0f0a8868","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d483c7cc1796bd6a80e7b3a8fd494996260f6b67","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4e2524ba2ca5f54bdbb9e5153bea00421ef653f5","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":["web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49889.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49889","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00259,"epssPercentile":0.17778,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-49889","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49889","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-49889","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-49889","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}