# CVE-2024-35821: ubifs: Set page uptodate in the correct place

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- 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.57%, higher than 48% of CVEs (2026-12-01)
- Published: 2024-05-17T13:23:24.350Z
- Modified: 2026-06-17T07:35:28.820Z
- Weaknesses: CWE-772
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ubifs: Set page uptodate in the correct place

Page cache reads are lockless, so setting the freshly allocated page
uptodate before we've overwritten it with the data it's supposed to have
in it will allow a simultaneous reader to see old data.  Move the call
to SetPageUptodate into ubifs_write_end(), which is after we copied the
new data into the page.

(As written by CVE List.)

## Affected

- Linux Linux: from 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d before 4aa554832b9dc9e66249df75b8f447d87853e12e; from 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d before 778c6ad40256f1c03244fc06d7cdf71f6b5e7310; from 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d before 8f599ab6fabbca4c741107eade70722a98adfd9f; from 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d before f19b1023a3758f40791ec166038d6411c8894ae3; from 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d before 142d87c958d9454c3cffa625fab56f3016e8f9f3; from 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d before fc99f4e2d2f1ce766c14e98463c2839194ae964f; from 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d before 4b7c4fc60d6a46350fbe54f5dc937aeaa02e675e; from 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d before 17772bbe9cfa972ea1ff827319f6e1340de76566; from 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d before 723012cab779eee8228376754e22c6594229bf8f; 2.6.27 (not affected: before 2.6.27; from 4.19.312 up to 4.19.*; from 5.4.274 up to 5.4.*; from 5.10.215 up to 5.10.*; from 5.15.154 up to 5.15.*; from 6.1.84 up to 6.1.*; from 6.6.24 up to 6.6.*; from 6.7.12 up to 6.7.*; from 6.8.3 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 1e51764a3c2a before 4aa554832b9d; from 1e51764a3c2a before 778c6ad40256; from 1e51764a3c2a before 8f599ab6fabb; from 1e51764a3c2a before f19b1023a375; from 1e51764a3c2a before 142d87c958d9; from 1e51764a3c2a before fc99f4e2d2f1; from 1e51764a3c2a before 4b7c4fc60d6a; from 1e51764a3c2a before 17772bbe9cfa; from 1e51764a3c2a before 723012cab779; 2.6.27; from 2.6.27 before 4.19.312; from 4.20 before 5.4.274; and 6 more (not affected: before 2.6.27; from 4.19.312 up to 4.19.*; from 5.4.274 up to 5.4.*; from 5.10.215 up to 5.10.*; from 5.15.154 up to 5.15.*; from 6.1.84 up to 6.1.*; from 6.6.24 up to 6.6.*; from 6.7.12 up to 6.7.*; from 6.8.3 up to 6.8.*; 6.9)
- debian debian_linux: 10.0

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/4aa554832b9dc9e66249df75b8f447d87853e12e> (patch)
- <https://git.kernel.org/stable/c/778c6ad40256f1c03244fc06d7cdf71f6b5e7310> (patch)
- <https://git.kernel.org/stable/c/8f599ab6fabbca4c741107eade70722a98adfd9f> (patch)
- <https://git.kernel.org/stable/c/f19b1023a3758f40791ec166038d6411c8894ae3> (patch)
- <https://git.kernel.org/stable/c/142d87c958d9454c3cffa625fab56f3016e8f9f3> (patch)
- <https://git.kernel.org/stable/c/fc99f4e2d2f1ce766c14e98463c2839194ae964f> (patch)
- <https://git.kernel.org/stable/c/4b7c4fc60d6a46350fbe54f5dc937aeaa02e675e> (patch)
- <https://git.kernel.org/stable/c/17772bbe9cfa972ea1ff827319f6e1340de76566> (patch)
- <https://git.kernel.org/stable/c/723012cab779eee8228376754e22c6594229bf8f> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html> (third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2024-35821 · Whole record: https://cve.day/CVE-2024-35821.json · Rebuilt by cve.day 2026-11-25T22:58:40.526Z
