ocfs2: fix data corruption after failed write (Linux Linux)

CVE-2023-53081
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 12 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix data corruption after failed write When buffered write fails to copy data into underlying page cache page, ocfs2_write_end_nolock() just zeroes out and dirties the page. This can leave dirty page beyond EOF and if page writeback tries to write this page before write succeeds and expands i_size, page gets into inconsistent state where page dirty bit is clear but buffer dirty bits stay set resulting in page data never getting written and so data copied to the page is lost. Fix the problem by invalidating page beyond EOF after failed write.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
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)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 7ed80e77c908cbaa686529a49f8ae0060c5caee7 < 1629f6f522b2d058019710466a84b240683bbee3 ; affected 7ce2b16bad2cbfa3fa7bbc42c4448914f639ca47 < c26f3ff4c0be590c1250f945ac2e4fc5fcdc5f45 ; affected f8a6a2ed4b7d1c3c8631eeb6d00572bc853094a8 < 4c24eb49ab44351424ac8fe8567f91ea48a06089 ; affected 6dbf7bb555981fb5faf7b691e8f6169fc2b2e63b < 91d7a4bd5656552d6259e2d0f8859f9e8cc5ef68 ; affected 6dbf7bb555981fb5faf7b691e8f6169fc2b2e63b < a9e53869cb43c96d6d851c491fd4e26430ab6ba6 ; affected 6dbf7bb555981fb5faf7b691e8f6169fc2b2e63b < 47eb055ad3588fc96d34e9e1dd87b210ce62906b
Linux · Linuxaffected 5.10 ; unaffected 0 < 5.10 ; unaffected 4.14.312 ≤ 4.14.* ; unaffected 4.19.280 ≤ 4.19.* ; unaffected 5.4.240 ≤ 5.4.* ; unaffected 5.10.177 ≤ 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