ext4: fix timer use-after-free on failed mount (Linux Linux)

CVE-2024-49960
HIGH 7.8

En bref

Source
NVD
EPSS
EPSS 0.29 % · centile 22 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

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.

Faiblesses (CWE)

  • CWE-416 — Utilisation après libération

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected 5e4f5138bd8522ebe231a137682d3857209a2c07 < 7aac0c17a8cdf4a3236991c1e60435c6a984076c ; affected 618f003199c6188e01472b03cdbba227f1dc5f24 < 22e9b83f0f33bc5a7a3181769d1dccbf021f5b04 ; affected 618f003199c6188e01472b03cdbba227f1dc5f24 < cf3196e5e2f36cd80dab91ffae402e13935724bc ; affected 618f003199c6188e01472b03cdbba227f1dc5f24 < 9203817ba46ebba7c865c8de2aba399537b6e891 ; affected 618f003199c6188e01472b03cdbba227f1dc5f24 < fa78fb51d396f4f2f80f8e96a3b1516f394258be ; affected 618f003199c6188e01472b03cdbba227f1dc5f24 < b85569585d0154d4db1e4f9e3e6a4731d407feb0
Linux · Linuxaffected 5.14 ; unaffected 0 < 5.14 ; unaffected 5.10.237 ≤ 5.10.* ; unaffected 5.15.181 ≤ 5.15.* ; unaffected 6.1.118 ≤ 6.1.* ; unaffected 6.6.55 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD