# CVE-2023-53081: ocfs2: fix data corruption after failed write

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-05-02T15:55:30.453Z
- Modified: 2026-06-17T06:44:15.443Z
- Weaknesses: CWE-787
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 7ed80e77c908cbaa686529a49f8ae0060c5caee7 before 1629f6f522b2d058019710466a84b240683bbee3; from 7ce2b16bad2cbfa3fa7bbc42c4448914f639ca47 before c26f3ff4c0be590c1250f945ac2e4fc5fcdc5f45; from f8a6a2ed4b7d1c3c8631eeb6d00572bc853094a8 before 4c24eb49ab44351424ac8fe8567f91ea48a06089; from 6dbf7bb555981fb5faf7b691e8f6169fc2b2e63b before 91d7a4bd5656552d6259e2d0f8859f9e8cc5ef68; from 6dbf7bb555981fb5faf7b691e8f6169fc2b2e63b before a9e53869cb43c96d6d851c491fd4e26430ab6ba6; from 6dbf7bb555981fb5faf7b691e8f6169fc2b2e63b before 47eb055ad3588fc96d34e9e1dd87b210ce62906b; from 6dbf7bb555981fb5faf7b691e8f6169fc2b2e63b before 205759c6c18f54659b0b5976b14a52d1b3eb9f57; from 6dbf7bb555981fb5faf7b691e8f6169fc2b2e63b before 90410bcf873cf05f54a32183afff0161f44f9715; acef5107e2eacb08a16ad5db60320d65bd26a6c0; 36ed9e604215f58cec0381ca5fcc6da05f2d87ca; from 4.14.204 before 4.14.312; from 4.19.155 before 4.19.280; and 4 more (not affected: before 5.10; from 4.14.312 up to 4.14.*; from 4.19.280 up to 4.19.*; from 5.4.240 up to 5.4.*; from 5.10.177 up to 5.10.*; from 5.15.105 up to 5.15.*; from 6.1.21 up to 6.1.*; from 6.2.8 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 4.9.242 before 4.10; from 4.14.204 before 4.14.312; from 4.19.155 before 4.19.280; from 5.4.75 before 5.4.240; from 5.9.5 before 5.10.177; from 5.11 before 5.15.105; from 5.16 before 6.1.21; from 6.2 before 6.2.8; 6.3

## References

- <https://git.kernel.org/stable/c/1629f6f522b2d058019710466a84b240683bbee3> (patch)
- <https://git.kernel.org/stable/c/c26f3ff4c0be590c1250f945ac2e4fc5fcdc5f45> (patch)
- <https://git.kernel.org/stable/c/4c24eb49ab44351424ac8fe8567f91ea48a06089> (patch)
- <https://git.kernel.org/stable/c/91d7a4bd5656552d6259e2d0f8859f9e8cc5ef68> (patch)
- <https://git.kernel.org/stable/c/a9e53869cb43c96d6d851c491fd4e26430ab6ba6> (patch)
- <https://git.kernel.org/stable/c/47eb055ad3588fc96d34e9e1dd87b210ce62906b> (patch)
- <https://git.kernel.org/stable/c/205759c6c18f54659b0b5976b14a52d1b3eb9f57> (patch)
- <https://git.kernel.org/stable/c/90410bcf873cf05f54a32183afff0161f44f9715> (patch)

## Sources

- CVE List: [CVE-2023-53081](https://www.cve.org/CVERecord?id=CVE-2023-53081), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2023-53081](https://nvd.nist.gov/vuln/detail/CVE-2023-53081), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53081 · Whole record: https://cve.day/CVE-2023-53081.json · Rebuilt by cve.day 2026-11-25T22:58:34.655Z
