nilfs2: fix potential hang in nilfs_detach_log_writer() (Linux Linux)

CVE-2024-38582
MEDIUM 5.3

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix potential hang in nilfs_detach_log_writer() Syzbot has reported a potential hang in nilfs_detach_log_writer() called during nilfs2 unmount. Analysis revealed that this is because nilfs_segctor_sync(), which synchronizes with the log writer thread, can be called after nilfs_segctor_destroy() terminates that thread, as shown in the call trace below: nilfs_detach_log_writer nilfs_segctor_destroy nilfs_segctor_kill_thread --> Shut down log writer thread flush_work nilfs_iput_work_func nilfs_dispose_list iput nilfs_evict_inode nilfs_transaction_commit nilfs_construct_segment (if inode needs sync) nilfs_segctor_sync --> Attempt to synchronize with log writer thread *** DEADLOCK *** Fix this issue by changing nilfs_segctor_sync() so that the log writer thread returns normally without synchronizing after it terminates, and by forcing tasks that are already waiting to complete once after the thread terminates. The skipped inode metadata flushout will then be processed together in the subsequent cleanup work in nilfs_segctor_destroy().

Faiblesses (CWE)

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LCISA-ADP
CVSS 3.1MEDIUM 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 < 911d38be151921a5d152bb55e81fd752384c6830 ; affected 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 < bc9cee50a4a4ca23bdc49f75ea8242d8a2193b3b ; affected 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 < eff7cdf890b02596b8d73e910bdbdd489175dbdb ; affected 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 < 06afce714d87c7cd1dcfccbcd800c5c5d2cf1cfd ; affected 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 < 1c3844c5f4eac043954ebf6403fa9fd1f0e9c1c0 ; affected 7ef3ff2fea8bf5e4a21cef47ad87710a3d0fdb52 < a8799662fed1f8747edae87a1937549288baca6a
Linux · Linuxaffected 3.19 ; unaffected 0 < 3.19 ; unaffected 4.19.316 ≤ 4.19.* ; unaffected 5.4.278 ≤ 5.4.* ; unaffected 5.10.219 ≤ 5.10.* ; unaffected 5.15.161 ≤ 5.15.*

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