# CVE-2024-42102: Revert "mm/writeback: fix possible divide-by-zero in wb\_dirty\_limits(), again"

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-369
- **Published:** 2024-07-30T07:45:58.423Z
- **Modified:** 2026-06-17T07:48:50.167Z

## Who should check

- Anyone running Linux \>= c593d26fb5d577ef31b6e49a31e08ae3ebc1bc1e, \< 253f9ea7e8e53a5176bd80ceb174907b10724c1a; \>= 1f12e4b3284d6c863f272eb2de0d4248ed211cf4, \< 23a28f5f3f6ca1e4184bd0e9631cd0944cf1c807; \>= 81e7d2530d458548b90a5c5e76b77ad5e5d1c0df, \< 145faa3d03688cbb7bbaaecbd84c01539852942c; \>= 5099871b370335809c0fd1abad74d9c7c205d43f, \< 2820005edae13b140f2d54267d1bd6bb23915f59; \>= 16b1025eaa8fc223ab4273ece20d1c3a4211a95d, \< cbbe17a324437c0ff99881a3ee453da45b228a00; \>= ec18ec230301583395576915d274b407743d8f6c, \< f6620df12cb6bdcad671d269debbb23573502f9d; \>= 9319b647902cbd5cc884ac08a8a6d54ce111fc78, \< 000099d71648504fb9c7a4616f92c2b70c3e44ec; \>= 9319b647902cbd5cc884ac08a8a6d54ce111fc78, \< 30139c702048f1097342a31302cbd3d478f50c63; 65977bed167a92e87085e757fffa5798f7314c9f; \>= 4.19.307, \< 4.19.318; …
- Anyone running Linux 6.8

## Description

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

Revert "mm/writeback: fix possible divide-by-zero in wb\_dirty\_limits(), again"

Patch series "mm: Avoid possible overflows in dirty throttling".

Dirty throttling logic assumes dirty limits in page units fit into
32-bits.  This patch series makes sure this is true (see patch 2/2 for
more details).


This patch (of 2):

This reverts commit 9319b647902cbd5cc884ac08a8a6d54ce111fc78.

The commit is broken in several ways.  Firstly, the removed (u64) cast
from the multiplication will introduce a multiplication overflow on 32-bit
archs if wb\_thresh \* bg\_thresh \>= 1\<\<32 (which is actually common - the
default settings with 4GB of RAM will trigger this).  Secondly, the
div64\_u64() is unnecessarily expensive on 32-bit archs.  We have
div64\_ul() in case we want to be safe & cheap.  Thirdly, if dirty
thresholds are larger than 1\<\<32 pages, then dirty balancing is going to
blow up in many other spectacular ways anyway so trying to fix one
possible overflow is just moot.

## Affected and fixed versions

- Linux: \>= c593d26fb5d577ef31b6e49a31e08ae3ebc1bc1e, \< 253f9ea7e8e53a5176bd80ceb174907b10724c1a; \>= 1f12e4b3284d6c863f272eb2de0d4248ed211cf4, \< 23a28f5f3f6ca1e4184bd0e9631cd0944cf1c807; \>= 81e7d2530d458548b90a5c5e76b77ad5e5d1c0df, \< 145faa3d03688cbb7bbaaecbd84c01539852942c; \>= 5099871b370335809c0fd1abad74d9c7c205d43f, \< 2820005edae13b140f2d54267d1bd6bb23915f59; \>= 16b1025eaa8fc223ab4273ece20d1c3a4211a95d, \< cbbe17a324437c0ff99881a3ee453da45b228a00; \>= ec18ec230301583395576915d274b407743d8f6c, \< f6620df12cb6bdcad671d269debbb23573502f9d; \>= 9319b647902cbd5cc884ac08a8a6d54ce111fc78, \< 000099d71648504fb9c7a4616f92c2b70c3e44ec; \>= 9319b647902cbd5cc884ac08a8a6d54ce111fc78, \< 30139c702048f1097342a31302cbd3d478f50c63; 65977bed167a92e87085e757fffa5798f7314c9f; \>= 4.19.307, \< 4.19.318; … (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-42102.md
Affected: Linux >= c593d26fb5d577ef31b6e49a31e08ae3ebc1bc1e, < 253f9ea7e8e53a5176bd80ceb174907b10724c1a; >= 1f12e4b3284d6c863f272eb2de0d4248ed211cf4, < 23a28f5f3f6ca1e4184bd0e9631cd0944cf1c807; >= 81e7d2530d458548b90a5c5e76b77ad5e5d1c0df, < 145faa3d03688cbb7bbaaecbd84c01539852942c; >= 5099871b370335809c0fd1a…
Fixed in: Linux 253f9ea7e8e53a5176bd80ceb174907b10724c1a, Linux 23a28f5f3f6ca1e4184bd0e9631cd0944cf1c807, Linux 145faa3d03688cbb7bbaaecbd84c01539852942c, Linux 2820005edae13b140f2d54267d1bd6bb23915f59, Linux 000099d71648504fb9c7a4616f92c2b70c3e44ec, Linux 30139c702048f1097342a31302cbd3d478f50c63, Linux 4.19.…

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

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

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

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= c593d26fb5d577ef31b6e49a31e08ae3ebc1bc1e, \< 253f9ea7e8e53a5176bd80ceb174907b10724c1a; \>= 1f12e4b3284d6c863f272eb2de0d4248ed211cf4, \< 23a28f5f3f6ca1e4184bd0e9631cd0944cf1c807; \>= 81e7d2530d458548b90a5c5e76b77ad5e5d1c0df, \< 145faa3d03688cbb7bbaaecbd84c01539852942c; \>= 5099871b370335809c0fd1abad74d9c7c205d43f, \< 2820005edae13b140f2d54267d1bd6bb23915f59; \>= 16b1025eaa8fc223ab4273ece20d1c3a4211a95d, \< cbbe17a324437c0ff99881a3ee453da45b228a00; \>= ec18ec230301583395576915d274b407743d8f6c, \< f6620df12cb6bdcad671d269debbb23573502f9d; \>= 9319b647902cbd5cc884ac08a8a6d54ce111fc78, \< 000099d71648504fb9c7a4616f92c2b70c3e44ec; \>= 9319b647902cbd5cc884ac08a8a6d54ce111fc78, \< 30139c702048f1097342a31302cbd3d478f50c63; 65977bed167a92e87085e757fffa5798f7314c9f; \>= 4.19.307, \< 4.19.318; …; Linux 6.8.

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

Yes. Fixed in Linux 253f9ea7e8e53a5176bd80ceb174907b10724c1a, Linux 23a28f5f3f6ca1e4184bd0e9631cd0944cf1c807, Linux 145faa3d03688cbb7bbaaecbd84c01539852942c, Linux 2820005edae13b140f2d54267d1bd6bb23915f59, Linux 000099d71648504fb9c7a4616f92c2b70c3e44ec, Linux 30139c702048f1097342a31302cbd3d478f50c63, Linux 4.19.318. No fix listed yet: follow the vendor advisory.

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

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/253f9ea7e8e53a5176bd80ceb174907b10724c1a>
- patch: <https://git.kernel.org/stable/c/23a28f5f3f6ca1e4184bd0e9631cd0944cf1c807>
- patch: <https://git.kernel.org/stable/c/145faa3d03688cbb7bbaaecbd84c01539852942c>
- patch: <https://git.kernel.org/stable/c/2820005edae13b140f2d54267d1bd6bb23915f59>
- patch: <https://git.kernel.org/stable/c/cbbe17a324437c0ff99881a3ee453da45b228a00>
- patch: <https://git.kernel.org/stable/c/f6620df12cb6bdcad671d269debbb23573502f9d>
- patch: <https://git.kernel.org/stable/c/000099d71648504fb9c7a4616f92c2b70c3e44ec>
- patch: <https://git.kernel.org/stable/c/30139c702048f1097342a31302cbd3d478f50c63>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.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-42102>

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