CVE-2024-49960: ext4: fix timer use-after-free on failed mount
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.
Security readout for executives and security teams
Plain-English summary
A failed ext4 filesystem mount can leave an error-reporting timer running after its supporting kernel memory is freed. Later timer activity could corrupt memory, crash the system, or potentially affect confidentiality and integrity. Triggering requires local interaction with a problematic ext4 mount; this is not described as a remote network vulnerability.
Executive priority
Treat this as prompt kernel-maintenance work, prioritizing infrastructure exposed to untrusted or unreliable ext4 media. It does not currently justify an internet-wide emergency response because triggering is local and active exploitation is not evidenced. Delays remain undesirable because kernel memory corruption can have severe consequences.
Technical view
During ext4_fill_super failure handling, ext4_stop_mmpd can encounter a read I/O failure and invoke ext4_handle_error, which re-arms s_err_report. The filesystem state is then freed while the timer remains active, creating a use-after-free. The upstream correction cancels the timer after ext4_stop_mmpd.
Likely exposure
Exposure is most plausible on affected Linux systems that mount corrupted, unreliable, removable, user-supplied, or virtual ext4 filesystems. The supplied version records are complex and should not be treated as simple inclusive ranges. Confirm exposure against the running distribution kernel and vendor backport status.
Exploitation context
The CVSS 3.1 score is 7.8 with local access, low complexity, no privileges, and user interaction. The supplied record is not in KEV and provides no evidence of active exploitation or a public exploit. Syzbot discovered the defect through automated kernel testing.
Researcher notes
The failure sequence is important: an earlier timer cancellation is insufficient because the read-error path can re-arm the timer before filesystem state is freed. The source bundle identifies upstream stable fixes but does not establish practical exploitability, exploitation in the wild, or a definitive distribution-neutral affected-version range.
Mitigation direction
Apply a distribution kernel update incorporating the referenced upstream fix, following vendor reboot guidance.
Until updated, restrict untrusted ext4 mounting and automated mount paths where operationally feasible.
Check Linux distribution advisories for backported fixes rather than relying only on upstream version numbers.
Validation and detection
Inventory running kernel and package versions on systems that use or mount ext4 filesystems.
Compare each kernel build with distribution advisories and the referenced upstream stable commits.
Prioritize review of systems handling removable media, virtual disk images, or user-controlled filesystems.
After updating and rebooting, confirm the patched kernel is running across the affected fleet.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2024-49960 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.