{"id":"CVE-2024-49983","aliases":["CVE-2024-49983"],"related":[],"kind":"vulnerability","state":"published","title":"ext4: drop ppath from ext4_ext_replay_update_ex() to avoid double-free","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: drop ppath from ext4_ext_replay_update_ex() to avoid double-free\n\nWhen calling ext4_force_split_extent_at() in ext4_ext_replay_update_ex(),\nthe 'ppath' is updated but it is the 'path' that is freed, thus potentially\ntriggering a double-free in the following process:\n\next4_ext_replay_update_ex\n  ppath = path\n  ext4_force_split_extent_at(&ppath)\n    ext4_split_extent_at\n      ext4_ext_insert_extent\n        ext4_ext_create_new_leaf\n          ext4_ext_grow_indepth\n            ext4_find_extent\n              if (depth > path[0].p_maxdepth)\n                kfree(path)                 ---> path First freed\n                *orig_path = path = NULL    ---> null ppath\n  kfree(path)                               ---> path double-free !!!\n\nSo drop the unnecessary ppath and use path directly to avoid this problem.\nAnd use ext4_find_extent() directly to update path, avoiding unnecessary\nmemory allocation and freeing. Also, propagate the error returned by\next4_find_extent() instead of using strange error codes.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: drop ppath from ext4_ext_replay_update_ex() to avoid double-free\n\nWhen calling ext4_force_split_extent_at() in ext4_ext_replay_update_ex(),\nthe 'ppath' is updated but it is the 'path' that is freed, thus potentially\ntriggering a double-free in the following process:\n\next4_ext_replay_update_ex\n  ppath = path\n  ext4_force_split_extent_at(&ppath)\n    ext4_split_extent_at\n      ext4_ext_insert_extent\n        ext4_ext_create_new_leaf\n          ext4_ext_grow_indepth\n            ext4_find_extent\n              if (depth > path[0].p_maxdepth)\n                kfree(path)                 ---> path First freed\n                *orig_path = path = NULL    ---> null ppath\n  kfree(path)                               ---> path double-free !!!\n\nSo drop the unnecessary ppath and use path directly to avoid this problem.\nAnd use ext4_find_extent() directly to update path, avoiding unnecessary\nmemory allocation and freeing. Also, propagate the error returned by\next4_find_extent() instead of using strange error codes.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ext4: eliminar ppath de ext4_ext_replay_update_ex() para evitar una doble liberación Al llamar a ext4_force_split_extent_at() en ext4_ext_replay_update_ex(), se actualiza 'ppath' pero es 'path' el que se libera, lo que potencialmente desencadena una doble liberación en el siguiente proceso: ext4_ext_replay_update_ex ppath = path ext4_force_split_extent_at(&amp;ppath) ext4_split_extent_at ext4_ext_insert_extent ext4_ext_create_new_leaf ext4_ext_grow_indepth ext4_find_extent if (depth &gt; path[0].p_maxdepth) kfree(path) ---&gt; path Primero liberado *orig_path = path = NULL ---&gt; null ppath kfree(path) ---&gt; path double-free !!! Por lo tanto, elimine el ppath innecesario y use path directamente para evitar este problema. Y use ext4_find_extent() directamente para actualizar path, evitando la asignación y liberación de memoria innecesaria. Además, propague el error devuelto por ext4_find_extent() en lugar de usar códigos de error extraños.","source":"nvd"}],"published":"2024-10-21T18:02:28.474Z","modified":"2026-08-05T11:40:52.589Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","fixed":"8c26d9e53e5fbacda0732a577e97c5a5b7882aaf","status":"affected"},{"type":"git","introduced":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","fixed":"a34bed978364114390162c27e50fca50791c568d","status":"affected"},{"type":"git","introduced":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","fixed":"6367d3f04c69e2b8770b8137bd800e0784b0abbc","status":"affected"},{"type":"git","introduced":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","fixed":"1b558006d98b7b0b730027be0ee98973dd10ee0d","status":"affected"},{"type":"git","introduced":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","fixed":"3ff710662e8d86a63a39b334e9ca0cb10e5c14b0","status":"affected"},{"type":"git","introduced":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","fixed":"63adc9016917e6970fb0104ee5fd6770f02b2d80","status":"affected"},{"type":"git","introduced":"8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2","fixed":"5c0f4cc84d3a601c99bc5e6e6eb1cbda542cce95","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"5.10.227","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.168","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.113","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.55","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.14","lastAffected":"6.10.*","status":"unaffected"},{"type":"semver","introduced":"6.11.3","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","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.10","fixed":"5.10.227"},{"status":"affected","introduced":"5.11","fixed":"5.15.168"},{"status":"affected","introduced":"5.16","fixed":"6.1.113"},{"status":"affected","introduced":"6.2","fixed":"6.6.55"},{"status":"affected","introduced":"6.7","fixed":"6.10.14"},{"status":"affected","introduced":"6.11","fixed":"6.11.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/8c26d9e53e5fbacda0732a577e97c5a5b7882aaf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a34bed978364114390162c27e50fca50791c568d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6367d3f04c69e2b8770b8137bd800e0784b0abbc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1b558006d98b7b0b730027be0ee98973dd10ee0d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3ff710662e8d86a63a39b334e9ca0cb10e5c14b0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/63adc9016917e6970fb0104ee5fd6770f02b2d80","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c0f4cc84d3a601c99bc5e6e6eb1cbda542cce95","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-22T13:32:15.569Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-49983","url":"https://www.cve.org/CVERecord?id=CVE-2024-49983","licence":"CVE Terms of Use","modified":"2026-08-05T11:40:52.589Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-49983","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49983","licence":"Public domain","modified":"2026-08-04T11:21:05.523Z"}],"updatedAt":"2026-11-25T22:58:47.077Z","epss":{"score":0.00327,"percentile":0.18283,"date":"2026-11-30T12:00:22.000Z"}}