CVE-2024-42102
Revert "mm/writeback: fix possible divide-by-zero in wb_dirty_limits(), again"
Check your servers for CVE-2024-42102
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-42102 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.4% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from c593d26fb5d577ef31b6e49a31e08ae3ebc1bc1e, before 253f9ea7e8e53a5176bd80ceb174907b10724c1a affected from 1f12e4b3284d6c863f272eb2de0d4248ed211cf4, before 23a28f5f3f6ca1e4184bd0e9631cd0944cf1c807 affected from 81e7d2530d458548b90a5c5e76b77ad5e5d1c0df, before 145faa3d03688cbb7bbaaecbd84c01539852942c affected from 5099871b370335809c0fd1abad74d9c7c205d43f, before 2820005edae13b140f2d54267d1bd6bb23915f59 affected from 16b1025eaa8fc223ab4273ece20d1c3a4211a95d, before cbbe17a324437c0ff99881a3ee453da45b228a00 affected from ec18ec230301583395576915d274b407743d8f6c, before f6620df12cb6bdcad671d269debbb23573502f9d affected from 9319b647902cbd5cc884ac08a8a6d54ce111fc78, before 000099d71648504fb9c7a4616f92c2b70c3e44ec affected from 9319b647902cbd5cc884ac08a8a6d54ce111fc78, before 30139c702048f1097342a31302cbd3d478f50c63 affected 65977bed167a92e87085e757fffa5798f7314c9f affected from 4.19.307, before 4.19.318 affected from 5.4.269, before 5.4.280 affected from 5.10.210, before 5.10.222 affected from 5.15.149, before 5.15.163 affected from 6.1.79, before 6.1.98 affected from 6.6.18, before 6.6.39 affected from 6.7.6, before 6.8
Other versions: unaffected
|
| Linux |
affected 6.8 unaffected before 6.8 unaffected from 4.19.318 up to and including 4.19.* unaffected from 5.4.280 up to and including 5.4.* unaffected from 5.10.222 up to and including 5.10.* unaffected from 5.15.163 up to and including 5.15.* unaffected from 6.1.98 up to and including 6.1.* unaffected from 6.6.39 up to and including 6.6.* unaffected from 6.9.9 up to and including 6.9.* unaffected 6.10 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-42102 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-42102
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-42102
trivy image --scanners vuln IMAGE | grep CVE-2024-42102
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/253f9ea7e8e53a5176bd80ceb174907b10724c1a git.kernel.org
- https://git.kernel.org/stable/c/23a28f5f3f6ca1e4184bd0e9631cd0944cf1c807 git.kernel.org
- https://git.kernel.org/stable/c/145faa3d03688cbb7bbaaecbd84c01539852942c git.kernel.org
- https://git.kernel.org/stable/c/2820005edae13b140f2d54267d1bd6bb23915f59 git.kernel.org
- https://git.kernel.org/stable/c/cbbe17a324437c0ff99881a3ee453da45b228a00 git.kernel.org
- https://git.kernel.org/stable/c/f6620df12cb6bdcad671d269debbb23573502f9d git.kernel.org
- https://git.kernel.org/stable/c/000099d71648504fb9c7a4616f92c2b70c3e44ec git.kernel.org
- https://git.kernel.org/stable/c/30139c702048f1097342a31302cbd3d478f50c63 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
Source: the record CVE-2024-42102 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse