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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.05% (percentile 63, 2026-11-26)
- **CWE:** CWE-772
- **Published:** 2024-05-17T13:23:24.350Z
- **Modified:** 2026-06-17T07:35:28.820Z

## Who should check

- Anyone running Linux \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 4aa554832b9dc9e66249df75b8f447d87853e12e; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 778c6ad40256f1c03244fc06d7cdf71f6b5e7310; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 8f599ab6fabbca4c741107eade70722a98adfd9f; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< f19b1023a3758f40791ec166038d6411c8894ae3; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 142d87c958d9454c3cffa625fab56f3016e8f9f3; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< fc99f4e2d2f1ce766c14e98463c2839194ae964f; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 4b7c4fc60d6a46350fbe54f5dc937aeaa02e675e; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 17772bbe9cfa972ea1ff827319f6e1340de76566; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 723012cab779eee8228376754e22c6594229bf8f
- Anyone running Linux 2.6.27

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

## Affected and fixed versions

- Linux: \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 4aa554832b9dc9e66249df75b8f447d87853e12e; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 778c6ad40256f1c03244fc06d7cdf71f6b5e7310; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 8f599ab6fabbca4c741107eade70722a98adfd9f; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< f19b1023a3758f40791ec166038d6411c8894ae3; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 142d87c958d9454c3cffa625fab56f3016e8f9f3; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< fc99f4e2d2f1ce766c14e98463c2839194ae964f; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 4b7c4fc60d6a46350fbe54f5dc937aeaa02e675e; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 17772bbe9cfa972ea1ff827319f6e1340de76566; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 723012cab779eee8228376754e22c6594229bf8f (cvelist)
- Linux: 2.6.27 (cvelist)

## Mitigation

- Upgrade Linux to 723012cab779eee8228376754e22c6594229bf8f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35821. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35821.md
Affected: Linux >= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, < 4aa554832b9dc9e66249df75b8f447d87853e12e; >= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, < 778c6ad40256f1c03244fc06d7cdf71f6b5e7310; >= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, < 8f599ab6fabbca4c741107eade70722a98adfd9f; >= 1e51764a3c2ac05a23a22b2…
Fixed in: Linux 4aa554832b9dc9e66249df75b8f447d87853e12e, Linux 778c6ad40256f1c03244fc06d7cdf71f6b5e7310, Linux 8f599ab6fabbca4c741107eade70722a98adfd9f, Linux 142d87c958d9454c3cffa625fab56f3016e8f9f3, Linux 4b7c4fc60d6a46350fbe54f5dc937aeaa02e675e, Linux 17772bbe9cfa972ea1ff827319f6e1340de76566, Linux 72301…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-35821 being exploited?

There is no confirmed exploitation: CVE-2024-35821 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.05% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35821?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-35821?

Linux \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 4aa554832b9dc9e66249df75b8f447d87853e12e; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 778c6ad40256f1c03244fc06d7cdf71f6b5e7310; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 8f599ab6fabbca4c741107eade70722a98adfd9f; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< f19b1023a3758f40791ec166038d6411c8894ae3; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 142d87c958d9454c3cffa625fab56f3016e8f9f3; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< fc99f4e2d2f1ce766c14e98463c2839194ae964f; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 4b7c4fc60d6a46350fbe54f5dc937aeaa02e675e; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 17772bbe9cfa972ea1ff827319f6e1340de76566; \>= 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d, \< 723012cab779eee8228376754e22c6594229bf8f; Linux 2.6.27.

### Is there a fix for CVE-2024-35821?

Yes. Fixed in Linux 4aa554832b9dc9e66249df75b8f447d87853e12e, Linux 778c6ad40256f1c03244fc06d7cdf71f6b5e7310, Linux 8f599ab6fabbca4c741107eade70722a98adfd9f, Linux 142d87c958d9454c3cffa625fab56f3016e8f9f3, Linux 4b7c4fc60d6a46350fbe54f5dc937aeaa02e675e, Linux 17772bbe9cfa972ea1ff827319f6e1340de76566, Linux 723012cab779eee8228376754e22c6594229bf8f. Upgrade Linux to 723012cab779eee8228376754e22c6594229bf8f or later.

### How do I check if I'm affected by CVE-2024-35821?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35821>

HTML: <https://flawdb.com/CVE-2024-35821> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35821>
