CVE-2024-49960
ext4: fix timer use-after-free on failed mount
Check your servers for CVE-2024-49960
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-49960 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.29%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 23.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 22 Oct 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 5e4f5138bd8522ebe231a137682d3857209a2c07, before 7aac0c17a8cdf4a3236991c1e60435c6a984076c affected from 618f003199c6188e01472b03cdbba227f1dc5f24, before 22e9b83f0f33bc5a7a3181769d1dccbf021f5b04 affected from 618f003199c6188e01472b03cdbba227f1dc5f24, before cf3196e5e2f36cd80dab91ffae402e13935724bc affected from 618f003199c6188e01472b03cdbba227f1dc5f24, before 9203817ba46ebba7c865c8de2aba399537b6e891 affected from 618f003199c6188e01472b03cdbba227f1dc5f24, before fa78fb51d396f4f2f80f8e96a3b1516f394258be affected from 618f003199c6188e01472b03cdbba227f1dc5f24, before b85569585d0154d4db1e4f9e3e6a4731d407feb0 affected from 618f003199c6188e01472b03cdbba227f1dc5f24, before 0ce160c5bdb67081a62293028dc85758a8efb22a affected cecfdb9cf9a700d1037066173abac0617f6788df affected eb7b40d9d3785f7a131fb0b1f89bb6efa46c1833 affected from 5.10.51, before 5.10.237 affected from 5.12.18, before 5.13 affected from 5.13.3, before 5.14
Other versions: unaffected
|
| Linux |
affected 5.14 unaffected before 5.14 unaffected from 5.10.237 up to and including 5.10.* unaffected from 5.15.181 up to and including 5.15.* unaffected from 6.1.118 up to and including 6.1.* unaffected from 6.6.55 up to and including 6.6.* unaffected from 6.10.14 up to and including 6.10.* unaffected from 6.11.3 up to and including 6.11.* unaffected 6.12 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-49960 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-49960
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-49960
trivy image --scanners vuln IMAGE | grep CVE-2024-49960
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/7aac0c17a8cdf4a3236991c1e60435c6a984076c git.kernel.org
- https://git.kernel.org/stable/c/22e9b83f0f33bc5a7a3181769d1dccbf021f5b04 git.kernel.org
- https://git.kernel.org/stable/c/cf3196e5e2f36cd80dab91ffae402e13935724bc git.kernel.org
- https://git.kernel.org/stable/c/9203817ba46ebba7c865c8de2aba399537b6e891 git.kernel.org
- https://git.kernel.org/stable/c/fa78fb51d396f4f2f80f8e96a3b1516f394258be git.kernel.org
- https://git.kernel.org/stable/c/b85569585d0154d4db1e4f9e3e6a4731d407feb0 git.kernel.org
- https://git.kernel.org/stable/c/0ce160c5bdb67081a62293028dc85758a8efb22a git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
Source: the record CVE-2024-49960 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse