CVE-2024-49960
JSON

7.8high

ext4: fix timer use-after-free on failed mount

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.29% (higher than 23% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: ext4: fix timer use-after-free on failed mount Syzbot has found an ODEBUG bug in ext4_fill_super The del_timer_sync function cancels the s_err_report timer, which reminds about filesystem errors daily. We should guarantee the timer is no longer active before kfree(sbi). When filesystem mounting fails, the flow goes to failed_mount3, where an error occurs when ext4_stop_mmpd is called, causing a read I/O failure. This triggers the ext4_handle_error function that ultimately re-arms the timer, leaving the s_err_report timer active before kfree(sbi) is called. Fix the issue by canceling the s_err_report timer after calling ext4_stop_mmpd.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 5e4f5138bd8522ebe231a137682d3857209a2c07 before 7aac0c17a8cdf4a3236991c1e60435c6a984076c, from 618f003199c6188e01472b03cdbba227f1dc5f24 before 22e9b83f0f33bc5a7a3181769d1dccbf021f5b04, from 618f003199c6188e01472b03cdbba227f1dc5f24 before cf3196e5e2f36cd80dab91ffae402e13935724bc, from 618f003199c6188e01472b03cdbba227f1dc5f24 before 9203817ba46ebba7c865c8de2aba399537b6e891, from 618f003199c6188e01472b03cdbba227f1dc5f24 before fa78fb51d396f4f2f80f8e96a3b1516f394258be, from 618f003199c6188e01472b03cdbba227f1dc5f24 before b85569585d0154d4db1e4f9e3e6a4731d407feb0, from 618f003199c6188e01472b03cdbba227f1dc5f24 before 0ce160c5bdb67081a62293028dc85758a8efb22a, cecfdb9cf9a700d1037066173abac0617f6788df and 5 more
Not affected: before 5.14, from 5.10.237 up to 5.10.*, from 5.15.181 up to 5.15.*, from 6.1.118 up to 6.1.*, from 6.6.55 up to 6.6.*, from 6.10.14 up to 6.10.*
CVE List
debian debian_linux11.0NVD
linux linux_kernelbefore 5.10.237, from 5.11 before 5.15.181, from 5.16 before 6.1.118, from 6.2 before 6.6.55, from 6.7 before 6.10.14, from 6.11 before 6.11.3NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: ext4: fix timer use-after-free on failed mount Syzbot has found an ODEBUG bug in ext4_fill_super The del_timer_sync function cancels the s_err_report timer, which reminds about filesystem errors daily. We should guarantee the timer is no longer active before kfree(sbi). When filesystem mounting fails, the flow goes to failed_mount3, where an error occurs when ext4_stop_mmpd is called, causing a read I/O failure. This triggers the ext4_handle_error function that ultimately re-arms the timer, leaving the s_err_report timer active before kfree(sbi) is called. Fix the issue by canceling the s_err_report timer after calling ext4_stop_mmpd.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ext4: fix timer use-after-free on failed mount Syzbot ha encontrado un error ODEBUG en ext4_fill_super La función del_timer_sync cancela el temporizador s_err_report, que recuerda los errores del sistema de archivos a diario. Debemos garantizar que el temporizador ya no esté activo antes de kfree(sbi). Cuando falla el montaje del sistema de archivos, el flujo va a failed_mount3, donde ocurre un error cuando se llama a ext4_stop_mmpd, lo que causa un error de E/S de lectura. Esto activa la función ext4_handle_error que, en última instancia, vuelve a armar el temporizador, dejando el temporizador s_err_report activo antes de que se llame a kfree(sbi). Solucione el problema cancelando el temporizador s_err_report después de llamar a ext4_stop_mmpd.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-49960 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-49960 changed 2026-08-04Public domain