CVE-2026-99704: mm/page-writeback: avoid 32-bit overflow in dirty threshold shares
In the Linux kernel, the following vulnerability has been resolved:
mm/page-writeback: avoid 32-bit overflow in dirty threshold shares
The ratios used by wbcalcthresh() are scaled to parts per million, but the threshold and ratio operands are unsigned long. On 32-bit kernels, their multiplication can wrap before the result is assigned to u64.
For example, with a threshold of 25600 pages and the default maximum ratio of 1000000, wbmaxthresh becomes 4125 pages instead of 25600. The shared threshold and minimum share calculations can overflow in the same way, producing incorrect per-writeback dirty limits.
Use a u64 threshold for the three ratio multiplications and divu64() to retain the existing division order and rounding.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.118 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.64 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.5 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 7.3.5-1
Event History
Frequently Asked Questions
Which systems are affected by the overflow?
The overflow affects 32-bit Linux kernels, where unsigned long operands can wrap during dirty-threshold ratio calculations. The described example uses the default maximum ratio of 1000000.
What is the practical effect of the issue?
The kernel can calculate incorrect per-writeback dirty limits. In the provided example, a 25600-page threshold produces a wb_max_thresh of 4125 pages rather than 25600 pages; shared-threshold and minimum-share calculations can also be wrong.
Is a non-default configuration required to trigger the problem?
No. The description demonstrates the overflow with the default maximum ratio of 1000000 on a 32-bit kernel.