Integer overflow in Linux

CVE-2024-42131

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.

Vulnerability class: Integer Overflow

Published · last modified .

CVSS v3 metric

CVSS v3 base score 4.4 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H.

EPSS exploit prediction

EPSS: 0.002 (14.1th percentile), scored .

Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 14th percentile — 14.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2024-42131: held from 0.002 to 0.002.

EPSS over last 30 days · oldest: 0.002 · newest: 0.002 · change: 0.000

Affected products

  • Linux — versions 2da02997e08d3efe8174c7a47696e6f7cbe69ba9, 2.6.29, 0
  • Linux Kernel — versions 6.10

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2024-42131?
CVE-2024-42131 is a medium-severity vulnerability in Linux, classified under Integer Overflow or Wraparound. CVSS score: 4.4/10. Published 2024-07-30.
How severe is CVE-2024-42131?
Medium severity. CVSS v3 base score is 4.4 out of 10.