# CVE-2024-42131: mm: avoid overflows in dirty throttling logic

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

- **Severity:** MEDIUM 4.4
- **CVSS:** 4.4 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-190
- **Published:** 2024-07-30T07:46:26.872Z
- **Modified:** 2026-10-15T01:18:44.173Z

## Who should check

- Anyone running Linux \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< 2b2d2b8766db028bd827af34075f221ae9e9efff; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< 4d3817b64eda07491bdd86a234629fe0764fb42a; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< 7a49389771ae7666f4dc3426e2a4594bf23ae290; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< a25e8536184516b55ef89ab91dd2eea429de28d2; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< c83ed422c24f0d4b264f89291d4fabe285f80dbc; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< bd16a7ee339aef3ee4c90cb23902afb6af379ea0; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< 8e0b5e7f2895eccef5c2a0018b589266f90c4805; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< 385d838df280eba6c8680f9777bfa0d0bfe7e8b2
- Anyone running Linux 2.6.29

## Description

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

mm: avoid overflows in dirty throttling logic

The dirty throttling logic is interspersed with assumptions that dirty
limits in PAGE\_SIZE units fit into 32-bit (so that various multiplications
fit into 64-bits).  If limits end up being larger, we will hit overflows,
possible divisions by 0 etc.  Fix these problems by never allowing so
large dirty limits as they have dubious practical value anyway.  For
dirty\_bytes / dirty\_background\_bytes interfaces we can just refuse to set
so large limits.  For dirty\_ratio / dirty\_background\_ratio it isn't so
simple as the dirty limit is computed from the amount of available memory
which can change due to memory hotplug etc.  So when converting dirty
limits from ratios to numbers of pages, we just don't allow the result to
exceed UINT\_MAX.

This is root-only triggerable problem which occurs when the operator
sets dirty limits to \>16 TB.

## Affected and fixed versions

- Linux: \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< 2b2d2b8766db028bd827af34075f221ae9e9efff; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< 4d3817b64eda07491bdd86a234629fe0764fb42a; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< 7a49389771ae7666f4dc3426e2a4594bf23ae290; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< a25e8536184516b55ef89ab91dd2eea429de28d2; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< c83ed422c24f0d4b264f89291d4fabe285f80dbc; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< bd16a7ee339aef3ee4c90cb23902afb6af379ea0; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< 8e0b5e7f2895eccef5c2a0018b589266f90c4805; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< 385d838df280eba6c8680f9777bfa0d0bfe7e8b2 (cvelist)
- Linux: 2.6.29 (cvelist)

## Mitigation

- Upgrade Linux to 385d838df280eba6c8680f9777bfa0d0bfe7e8b2 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-42131. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-42131.md
Affected: Linux >= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, < 2b2d2b8766db028bd827af34075f221ae9e9efff; >= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, < 4d3817b64eda07491bdd86a234629fe0764fb42a; >= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, < 7a49389771ae7666f4dc3426e2a4594bf23ae290; >= 2da02997e08d3efe8174c7a…
Fixed in: Linux 2b2d2b8766db028bd827af34075f221ae9e9efff, Linux 4d3817b64eda07491bdd86a234629fe0764fb42a, Linux 7a49389771ae7666f4dc3426e2a4594bf23ae290, Linux 8e0b5e7f2895eccef5c2a0018b589266f90c4805, Linux 385d838df280eba6c8680f9777bfa0d0bfe7e8b2

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-42131 being exploited?

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

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

Medium: CVSS 4.4 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< 2b2d2b8766db028bd827af34075f221ae9e9efff; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< 4d3817b64eda07491bdd86a234629fe0764fb42a; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< 7a49389771ae7666f4dc3426e2a4594bf23ae290; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< a25e8536184516b55ef89ab91dd2eea429de28d2; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< c83ed422c24f0d4b264f89291d4fabe285f80dbc; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< bd16a7ee339aef3ee4c90cb23902afb6af379ea0; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< 8e0b5e7f2895eccef5c2a0018b589266f90c4805; \>= 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, \< 385d838df280eba6c8680f9777bfa0d0bfe7e8b2; Linux 2.6.29.

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

Yes. Fixed in Linux 2b2d2b8766db028bd827af34075f221ae9e9efff, Linux 4d3817b64eda07491bdd86a234629fe0764fb42a, Linux 7a49389771ae7666f4dc3426e2a4594bf23ae290, Linux 8e0b5e7f2895eccef5c2a0018b589266f90c4805, Linux 385d838df280eba6c8680f9777bfa0d0bfe7e8b2. Upgrade Linux to 385d838df280eba6c8680f9777bfa0d0bfe7e8b2 or later.

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

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/2b2d2b8766db028bd827af34075f221ae9e9efff>
- patch: <https://git.kernel.org/stable/c/4d3817b64eda07491bdd86a234629fe0764fb42a>
- patch: <https://git.kernel.org/stable/c/7a49389771ae7666f4dc3426e2a4594bf23ae290>
- patch: <https://git.kernel.org/stable/c/a25e8536184516b55ef89ab91dd2eea429de28d2>
- patch: <https://git.kernel.org/stable/c/c83ed422c24f0d4b264f89291d4fabe285f80dbc>
- patch: <https://git.kernel.org/stable/c/bd16a7ee339aef3ee4c90cb23902afb6af379ea0>
- patch: <https://git.kernel.org/stable/c/8e0b5e7f2895eccef5c2a0018b589266f90c4805>
- patch: <https://git.kernel.org/stable/c/385d838df280eba6c8680f9777bfa0d0bfe7e8b2>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-613116.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-42131>

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