{"id":"CVE-2024-49889","published":"2024-10-21T18:01:24Z","modified":"2026-10-15T00:53:41Z","title":"ext4: avoid use-after-free in ext4_ext_show_leaf()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00259,"percentile":0.17898,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/b0cb4561fc4284d04e69c8a66c8504928ab2484e","tags":[]},{"url":"https://git.kernel.org/stable/c/4999fed877bb64e3e7f9ab9996de2ca983c41928","tags":[]},{"url":"https://git.kernel.org/stable/c/2eba3b0cc5b8de624918d21f32b5b8db59a90b39","tags":[]},{"url":"https://git.kernel.org/stable/c/34b2096380ba475771971a778a478661a791aa15","tags":[]},{"url":"https://git.kernel.org/stable/c/8b114f2cc7dd5d36729d040b68432fbd0f0a8868","tags":[]},{"url":"https://git.kernel.org/stable/c/d483c7cc1796bd6a80e7b3a8fd494996260f6b67","tags":[]},{"url":"https://git.kernel.org/stable/c/4e2524ba2ca5f54bdbb9e5153bea00421ef653f5","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html","tags":[]}],"priority":{"score":9.0,"factors":[{"name":"EPSS percentile","points":3.58},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= dfe5080939ea4686b3414b5d970a9b26733c57a4, < b0cb4561fc4284d04e69c8a66c8504928ab2484e",">= dfe5080939ea4686b3414b5d970a9b26733c57a4, < 4999fed877bb64e3e7f9ab9996de2ca983c41928",">= dfe5080939ea4686b3414b5d970a9b26733c57a4, < 2eba3b0cc5b8de624918d21f32b5b8db59a90b39",">= dfe5080939ea4686b3414b5d970a9b26733c57a4, < 34b2096380ba475771971a778a478661a791aa15",">= dfe5080939ea4686b3414b5d970a9b26733c57a4, < 8b114f2cc7dd5d36729d040b68432fbd0f0a8868",">= dfe5080939ea4686b3414b5d970a9b26733c57a4, < d483c7cc1796bd6a80e7b3a8fd494996260f6b67",">= dfe5080939ea4686b3414b5d970a9b26733c57a4, < 4e2524ba2ca5f54bdbb9e5153bea00421ef653f5"]},{"vendor":"Linux","product":"Linux","versions":["3.18"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-22T13:44:36.395156Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-43589","exploited":false,"provenance":"source"}}