CVE-2024-42316: In the Linux kernel, the following vulnerability has been resolved: mm/mglru: fix div-by-zero in vmpressure_calc_level(
Summary
A division-by-zero bug occurs in the Linux kernel's memory management when evict_folios() (a function that removes memory pages) incorrectly reduces a counter called nr_scanned, causing it to underflow and become zero. This zero value is later used as a divisor in vmpressure_calc_level() (a function that measures memory pressure), crashing the system.
Solution / Mitigation
The fix is to stop deducting scan_control->nr_scanned in evict_folios(), as stated in the source: 'fix the problem by not deducting scan_control->nr_scanned in evict_folios()'. This prevents the counter from underflowing and eliminates the zero divisor.
Vulnerability Details
5.5(medium)
EPSS: 0.0%
Classification
Taxonomy References
Original source: https://nvd.nist.gov/vuln/detail/CVE-2024-42316
First tracked: February 15, 2026 at 08:35 PM
Classified by LLM (prompt v3) · confidence: 95%