CVE-2024-42102
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| rhel | 9 | fixed | |
| sles | affected | | |
| rocky | 9 | fixed | |
| debian | bookworm | fixed | 6.1.98-1 |
| debian | bullseye | fixed | 5.10.223-1 |
| debian | forky | fixed | 6.9.9-1 |
| debian | sid | fixed | 6.9.9-1 |
| debian | trixie | fixed | 6.9.9-1 |
| almalinux | 9 | fixed | kernel-doc-5.14.0-427.35.1.el9_4.noarch.rpm |
References
- https://access.redhat.com/errata/RHSA-2024:6567
- https://www.suse.com/security/cve/CVE-2024-42102.html
- https://errata.rockylinux.org/RXSA-2024:6567
- https://errata.rockylinux.org/RLSA-2024:6567
- https://security-tracker.debian.org/tracker/CVE-2024-42102
- https://bugzilla.redhat.com/2265797
- https://bugzilla.redhat.com/2269434
- https://bugzilla.redhat.com/2269436
- https://bugzilla.redhat.com/2273141
- https://bugzilla.redhat.com/2275678
- https://bugzilla.redhat.com/2278206
- https://bugzilla.redhat.com/2281052
- https://bugzilla.redhat.com/2281151
- https://bugzilla.redhat.com/2281727
- https://bugzilla.redhat.com/2281968
- https://bugzilla.redhat.com/2282709
- https://bugzilla.redhat.com/2284271
- https://bugzilla.redhat.com/2284402
- https://bugzilla.redhat.com/2293273
- https://bugzilla.redhat.com/2293276
- https://bugzilla.redhat.com/2293440
- https://bugzilla.redhat.com/2297511
- https://bugzilla.redhat.com/2297520
- https://bugzilla.redhat.com/2300409
- https://bugzilla.redhat.com/2300414
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.