nilfs2: fix WARNING in mark_buffer_dirty due to discarded buffer reuse (Linux Linux)

CVE-2023-54140
HIGH 7.8

En bref

Source
NVD
EPSS
EPSS 0.16 % · centile 5 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Deferred

Description

In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix WARNING in mark_buffer_dirty due to discarded buffer reuse A syzbot stress test using a corrupted disk image reported that mark_buffer_dirty() called from __nilfs_mark_inode_dirty() or nilfs_palloc_commit_alloc_entry() may output a kernel warning, and can panic if the kernel is booted with panic_on_warn. This is because nilfs2 keeps buffer pointers in local structures for some metadata and reuses them, but such buffers may be forcibly discarded by nilfs_clear_dirty_page() in some critical situations. This issue is reported to appear after commit 28a65b49eb53 ("nilfs2: do not write dirty data after degenerating to read-only"), but the issue has potentially existed before. Fix this issue by checking the uptodate flag when attempting to reuse an internally held buffer, and reloading the metadata instead of reusing the buffer if the flag was lost.

Références

Scores

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

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected 8c26c4e2694a163d525976e804d81cd955bbb40c < 473795610594f261e98920f0945550314df36f07 ; affected 8c26c4e2694a163d525976e804d81cd955bbb40c < d95e403588738c7ec38f52b9f490b15e7745d393 ; affected 8c26c4e2694a163d525976e804d81cd955bbb40c < 99a73016a5e12a09586a96f998e91f9ea145cd00 ; affected 8c26c4e2694a163d525976e804d81cd955bbb40c < f1d637b63d8a27ac3386f186a694907f2717fc13 ; affected 8c26c4e2694a163d525976e804d81cd955bbb40c < b911bef132a06de01a745c6a24172d6db7216333 ; affected 8c26c4e2694a163d525976e804d81cd955bbb40c < 4da07e958bfda2d69d83db105780e8916e3ac02e
Linux · Linuxaffected 3.10 ; unaffected 0 < 3.10 ; unaffected 4.14.326 ≤ 4.14.* ; unaffected 4.19.295 ≤ 4.19.* ; unaffected 5.4.257 ≤ 5.4.* ; unaffected 5.10.195 ≤ 5.10.*

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