{"id":"CVE-2026-31446","aliases":["CVE-2026-31446"],"related":[],"kind":"vulnerability","state":"published","title":"ext4: fix use-after-free in update_super_work when racing with umount","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix use-after-free in update_super_work when racing with umount\n\nCommit b98535d09179 (\"ext4: fix bug_on in start_this_handle during umount\nfilesystem\") moved ext4_unregister_sysfs() before flushing s_sb_upd_work\nto prevent new error work from being queued via /proc/fs/ext4/xx/mb_groups\nreads during unmount. However, this introduced a use-after-free because\nupdate_super_work calls ext4_notify_error_sysfs() -> sysfs_notify() which\naccesses the kobject's kernfs_node after it has been freed by kobject_del()\nin ext4_unregister_sysfs():\n\n  update_super_work                ext4_put_super\n  -----------------                --------------\n                                   ext4_unregister_sysfs(sb)\n                                     kobject_del(&sbi->s_kobj)\n                                       __kobject_del()\n                                         sysfs_remove_dir()\n                                           kobj->sd = NULL\n                                         sysfs_put(sd)\n                                           kernfs_put()  // RCU free\n  ext4_notify_error_sysfs(sbi)\n    sysfs_notify(&sbi->s_kobj)\n      kn = kobj->sd              // stale pointer\n      kernfs_get(kn)             // UAF on freed kernfs_node\n                                   ext4_journal_destroy()\n                                     flush_work(&sbi->s_sb_upd_work)\n\nInstead of reordering the teardown sequence, fix this by making\next4_notify_error_sysfs() detect that sysfs has already been torn down\nby checking s_kobj.state_in_sysfs, and skipping the sysfs_notify() call\nin that case. A dedicated mutex (s_error_notify_mutex) serializes\next4_notify_error_sysfs() against kobject_del() in ext4_unregister_sysfs()\nto prevent TOCTOU races where the kobject could be deleted between the\nstate_in_sysfs check and the sysfs_notify() call.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix use-after-free in update_super_work when racing with umount\n\nCommit b98535d09179 (\"ext4: fix bug_on in start_this_handle during umount\nfilesystem\") moved ext4_unregister_sysfs() before flushing s_sb_upd_work\nto prevent new error work from being queued via /proc/fs/ext4/xx/mb_groups\nreads during unmount. However, this introduced a use-after-free because\nupdate_super_work calls ext4_notify_error_sysfs() -> sysfs_notify() which\naccesses the kobject's kernfs_node after it has been freed by kobject_del()\nin ext4_unregister_sysfs():\n\n  update_super_work                ext4_put_super\n  -----------------                --------------\n                                   ext4_unregister_sysfs(sb)\n                                     kobject_del(&sbi->s_kobj)\n                                       __kobject_del()\n                                         sysfs_remove_dir()\n                                           kobj->sd = NULL\n                                         sysfs_put(sd)\n                                           kernfs_put()  // RCU free\n  ext4_notify_error_sysfs(sbi)\n    sysfs_notify(&sbi->s_kobj)\n      kn = kobj->sd              // stale pointer\n      kernfs_get(kn)             // UAF on freed kernfs_node\n                                   ext4_journal_destroy()\n                                     flush_work(&sbi->s_sb_upd_work)\n\nInstead of reordering the teardown sequence, fix this by making\next4_notify_error_sysfs() detect that sysfs has already been torn down\nby checking s_kobj.state_in_sysfs, and skipping the sysfs_notify() call\nin that case. A dedicated mutex (s_error_notify_mutex) serializes\next4_notify_error_sysfs() against kobject_del() in ext4_unregister_sysfs()\nto prevent TOCTOU races where the kobject could be deleted between the\nstate_in_sysfs check and the sysfs_notify() call.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\next4: corrige el uso después de liberación en update_super_work cuando compite con umount\n\nEl commit b98535d09179 (’ext4: corrige bug_on en start_this_handle durante el desmontaje del sistema de archivos’) movió ext4_unregister_sysfs() antes de vaciar s_sb_upd_work para evitar que se encole nuevo trabajo de error a través de lecturas de /proc/fs/ext4/xx/mb_groups durante el desmontaje. Sin embargo, esto introdujo un uso después de liberación porque update_super_work llama a ext4_notify_error_sysfs()   ->   sysfs_notify() que accede al kernfs_node del kobject después de que ha sido liberado por kobject_del() en ext4_unregister_sysfs():\n\n  update_super_work                ext4_put_super\n  - - - - - - - - - - - - - - - - -                - - - - - - - - - - - - - -\n                                   ext4_unregister_sysfs(sb)\n                                     kobject_del(ref:sbi  ->  s_kobj)\n                                       __kobject_del()\n                                         sysfs_remove_dir()\n                                           kobj  ->  sd = NULL\n                                         sysfs_put(sd)\n                                           kernfs_put()  // liberación RCU\n  ext4_notify_error_sysfs(sbi)\n    sysfs_notify(ref:sbi  ->  s_kobj)\n      kn = kobj  ->  sd              // puntero obsoleto\n      kernfs_get(kn)             // UAF en kernfs_node liberado\n                                   ext4_journal_destroy()\n                                     flush_work(ref:sbi  ->  s_sb_upd_work)\n\nEn lugar de reordenar la secuencia de desmontaje, corrige esto haciendo que ext4_notify_error_sysfs() detecte que sysfs ya ha sido desmontado verificando s_kobj.state_in_sysfs, y omitiendo la llamada a sysfs_notify() en ese caso. Un mutex dedicado (s_error_notify_mutex) serializa ext4_notify_error_sysfs() frente a kobject_del() en ext4_unregister_sysfs() para prevenir condiciones de carrera TOCTOU donde el kobject podría ser eliminado entre la verificación de state_in_sysfs y la llamada a sysfs_notify().","source":"nvd"}],"published":"2026-04-22T13:53:42.751Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/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:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"52c3a04f9ec2a16a4204d6274db338cb8d5b2d74","fixed":"c8fe17a1b308c3d8c703ebfb049b325f844342c3","status":"affected"},{"type":"git","introduced":"b98535d091795a79336f520b0708457aacf55c67","fixed":"c4d829737329f2290dd41e290b7d75effdb2a7ff","status":"affected"},{"type":"git","introduced":"b98535d091795a79336f520b0708457aacf55c67","fixed":"9449f99ba04f5dd1c8423ad8a90b3651d7240d1d","status":"affected"},{"type":"git","introduced":"b98535d091795a79336f520b0708457aacf55c67","fixed":"034053378dd81837fd6c7a43b37ee2e58d4f0b4e","status":"affected"},{"type":"git","introduced":"b98535d091795a79336f520b0708457aacf55c67","fixed":"c97e282f7bfd0c3554c63d289964a5ca6a1d2ffe","status":"affected"},{"type":"git","introduced":"b98535d091795a79336f520b0708457aacf55c67","fixed":"08b10e6f37fc533a759e9833af0692242e8b3f93","status":"affected"},{"type":"git","introduced":"b98535d091795a79336f520b0708457aacf55c67","fixed":"d15e4b0a418537aafa56b2cb80d44add83e83697","status":"affected"},{"type":"git","version":"585ef03c9e79672781f954daae730dfe24bf3a46","status":"affected"},{"type":"git","version":"afe490e48d47df1b3f64012835c1bc2f075a8c8b","status":"affected"},{"type":"semver","introduced":"5.15.38","fixed":"5.15.203","status":"affected"},{"type":"semver","introduced":"5.10.114","fixed":"5.11","status":"affected"},{"type":"semver","introduced":"5.17.6","fixed":"5.18","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.18","status":"unaffected"},{"type":"semver","introduced":"5.15.203","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.168","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.131","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.80","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","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.114","fixed":"5.11"},{"status":"affected","introduced":"5.15.38","fixed":"5.15.203"},{"status":"affected","introduced":"5.17.6","fixed":"5.18"},{"status":"affected","introduced":"5.18.1","fixed":"6.1.168"},{"status":"affected","introduced":"6.2","fixed":"6.6.131"},{"status":"affected","introduced":"6.7","fixed":"6.12.80"},{"status":"affected","introduced":"6.13","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"5.18"},{"status":"affected","version":"5.18"},{"status":"affected","version":"5.18"},{"status":"affected","version":"5.18"},{"status":"affected","version":"5.18"},{"status":"affected","version":"5.18"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c8fe17a1b308c3d8c703ebfb049b325f844342c3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c4d829737329f2290dd41e290b7d75effdb2a7ff","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9449f99ba04f5dd1c8423ad8a90b3651d7240d1d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/034053378dd81837fd6c7a43b37ee2e58d4f0b4e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c97e282f7bfd0c3554c63d289964a5ca6a1d2ffe","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/08b10e6f37fc533a759e9833af0692242e8b3f93","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d15e4b0a418537aafa56b2cb80d44add83e83697","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:09:20.883Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31446","url":"https://www.cve.org/CVERecord?id=CVE-2026-31446","licence":"CVE Terms of Use","modified":"2026-11-10T12:44:19.570Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31446","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31446","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.265Z","epss":{"score":0.00183,"percentile":0.08217,"date":"2026-12-01T12:00:22.000Z"}}