CVE-2024-42131

mm: avoid overflows in dirty throttling logic

No CVSS score yet EPSS 0.25%

Published 30 Jul 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-42131

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

Check my servers

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.

Exploitation

EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.9% 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.

ProductVersions
Linux
affected from 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, before 2b2d2b8766db028bd827af34075f221ae9e9efff
affected from 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, before 4d3817b64eda07491bdd86a234629fe0764fb42a
affected from 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, before 7a49389771ae7666f4dc3426e2a4594bf23ae290
affected from 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, before a25e8536184516b55ef89ab91dd2eea429de28d2
affected from 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, before c83ed422c24f0d4b264f89291d4fabe285f80dbc
affected from 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, before bd16a7ee339aef3ee4c90cb23902afb6af379ea0
affected from 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, before 8e0b5e7f2895eccef5c2a0018b589266f90c4805
affected from 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, before 385d838df280eba6c8680f9777bfa0d0bfe7e8b2
Other versions: unaffected
Linux
affected 2.6.29
unaffected before 2.6.29
unaffected from 4.19.320 up to and including 4.19.*
unaffected from 5.4.282 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-42131 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-42131

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-42131
trivy image --scanners vuln IMAGE | grep CVE-2024-42131

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

Source: the record CVE-2024-42131 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.