CVE-2024-49960

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

02 May 2025, 07:15

Type Values Removed Values Added
References
  • () https://git.kernel.org/stable/c/22e9b83f0f33bc5a7a3181769d1dccbf021f5b04 -
  • () https://git.kernel.org/stable/c/7aac0c17a8cdf4a3236991c1e60435c6a984076c -

Information

Published : 2024-10-21 18:15

Updated : 2025-05-02 07:15


NVD link : CVE-2024-49960

Mitre link : CVE-2024-49960

CVE.ORG link : CVE-2024-49960


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-416

Use After Free