{"id":"CVE-2023-52932","published":"2025-03-27T16:37:13Z","modified":"2026-05-23T15:27:34Z","title":"mm/swapfile: add cond_resched() in get_swap_pages()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/swapfile: add cond_resched() in get_swap_pages()\n\nThe softlockup still occurs in get_swap_pages() under memory pressure.  64\nCPU cores, 64GB memory, and 28 zram devices, the disksize of each zram\ndevice is 50MB with same priority as si.  Use the stress-ng tool to\nincrease memory pressure, causing the system to oom frequently.\n\nThe plist_for_each_entry_safe() loops in get_swap_pages() could reach tens\nof thousands of times to find available space (extreme case:\ncond_resched() is not called in scan_swap_map_slots()).  Let's add\ncond_resched() into get_swap_pages() when failed to find available space\nto avoid softlockup.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00216,"percentile":0.06985,"provenance":"source"},"cwes":[{"id":"CWE-667","name":"Improper Locking"}],"references":[{"url":"https://git.kernel.org/stable/c/29f0349c5c76b627fe06b87d4b13fa03a6ce8e64","tags":[]},{"url":"https://git.kernel.org/stable/c/387217b97e99699c34e6d95ce2b91b327fcd853e","tags":[]},{"url":"https://git.kernel.org/stable/c/d49c85a1913385eed46dd16a25ad0928253767f0","tags":[]},{"url":"https://git.kernel.org/stable/c/30187be29052bba9203b0ae2bdd815e0bc2faaab","tags":[]},{"url":"https://git.kernel.org/stable/c/5dbe1ebd56470d03b78fc31491a9e4d433106ef2","tags":[]},{"url":"https://git.kernel.org/stable/c/49178d4d61e78aed8c837dfeea8a450700f196e2","tags":[]},{"url":"https://git.kernel.org/stable/c/7717fc1a12f88701573f9ed897cc4f6699c661e3","tags":[]}],"priority":{"score":5.2,"factors":[{"name":"EPSS percentile","points":1.4},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= adfab836f4908deb049a5128082719e689eed964, < 29f0349c5c76b627fe06b87d4b13fa03a6ce8e64",">= adfab836f4908deb049a5128082719e689eed964, < 387217b97e99699c34e6d95ce2b91b327fcd853e",">= adfab836f4908deb049a5128082719e689eed964, < d49c85a1913385eed46dd16a25ad0928253767f0",">= adfab836f4908deb049a5128082719e689eed964, < 30187be29052bba9203b0ae2bdd815e0bc2faaab",">= adfab836f4908deb049a5128082719e689eed964, < 5dbe1ebd56470d03b78fc31491a9e4d433106ef2",">= adfab836f4908deb049a5128082719e689eed964, < 49178d4d61e78aed8c837dfeea8a450700f196e2",">= adfab836f4908deb049a5128082719e689eed964, < 7717fc1a12f88701573f9ed897cc4f6699c661e3","75b1f2d3ed3169675b69b2f68217ebb839414657","bcbfe6fdf8576a545fafdfe4611f59cc6b166589",">= 3.12.30, < 3.13"]},{"vendor":"Linux","product":"Linux","versions":["3.16"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:25:12.734562Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-59758","exploited":false,"provenance":"source"}}