mm/swapfile: add cond_resched() in get_swap_pages()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel d49c85a1913385eed46dd16a25ad0928253767f0, Kernel 3.13, Kernel 3.15 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: mm/swapfile: add cond_resched() in get_swap_pages() The softlockup still occurs in get_swap_pages() under memory pressure. 64 CPU cores, 64GB memory, and 28 zram devices, the disksize of each zram device is 50MB with same priority as si. Use the stress-ng tool to increase memory pressure, causing the system to oom frequently. The plist_for_each_entry_safe() loops in get_swap_pages() could reach tens of thousands of times to find available space (extreme case: cond_resched() is not called in scan_swap_map_slots()). Let's add cond_resched() into get_swap_pages() when failed to find available space to avoid softlockup.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=adfab836f4908deb049a5128082719e689eed964 <d49c85a1913385eed46dd16a25ad0928253767f0, >=3.12.30 <3.13, >=3.14.21 <3.15, >=adfab836f4908deb049a5128082719e689eed964 <29f0349c5c76b627fe06b87d4b13fa03a6ce8e64, >=adfab836f4908deb049a5128082719e689eed964 <30187be29052bba9203b0ae2bdd815e0bc2faaab, >=adfab836f4908deb049a5128082719e689eed964 <387217b97e99699c34e6d95ce2b91b327fcd853e, >=adfab836f4908deb049a5128082719e689eed964 <49178d4d61e78aed8c837dfeea8a450700f196e2, >=adfab836f4908deb049a5128082719e689eed964 <5dbe1ebd56470d03b78fc31491a9e4d433106ef2, >=adfab836f4908deb049a5128082719e689eed964 <7717fc1a12f88701573f9ed897cc4f6699c661e3, =3.16, =75b1f2d3ed3169675b69b2f68217ebb839414657, =bcbfe6fdf8576a545fafdfe4611f59cc6b166589 | d49c85a1913385eed46dd16a25ad0928253767f0, 3.13, 3.15, 29f0349c5c76b627fe06b87d4b13fa03a6ce8e64, 30187be29052bba9203b0ae2bdd815e0bc2faaab, 387217b97e99699c34e6d95ce2b91b327fcd853e, 49178d4d61e78aed8c837dfeea8a450700f196e2, 5dbe1ebd56470d03b78fc31491a9e4d433106ef2, 7717fc1a12f88701573f9ed897cc4f6699c661e3 |
| linux-kernel: Kernel | >=3.14.21 <3.15, >=3.16.0 <4.14.306, >=4.15.0 <4.19.273, >=4.20.0 <5.4.232, >=5.11.0 <5.15.93, >=5.16.0 <6.1.11, >=5.5.0 <5.10.168, >=3.12.30 <3.13 | 3.15, 4.14.306, 4.19.273, 5.4.232, 5.15.93, 6.1.11, 5.10.168, 3.13 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket