{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-52932","id":"CVE-2023-52932","title":"mm/swapfile: add cond_resched() in get_swap_pages()","description":"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","descriptionLong":"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.","published":"2025-03-27T16:37:13.594Z","updated":"2026-11-17T07:01:22.536251999Z","reserved":"2024-08-21T06:07:11.019Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"adfab836f4908deb049a5128082719e689eed964","lessThan":"29f0349c5c76b627fe06b87d4b13fa03a6ce8e64","status":"affected","versionType":"git"},{"version":"adfab836f4908deb049a5128082719e689eed964","lessThan":"387217b97e99699c34e6d95ce2b91b327fcd853e","status":"affected","versionType":"git"},{"version":"adfab836f4908deb049a5128082719e689eed964","lessThan":"d49c85a1913385eed46dd16a25ad0928253767f0","status":"affected","versionType":"git"},{"version":"adfab836f4908deb049a5128082719e689eed964","lessThan":"30187be29052bba9203b0ae2bdd815e0bc2faaab","status":"affected","versionType":"git"},{"version":"adfab836f4908deb049a5128082719e689eed964","lessThan":"5dbe1ebd56470d03b78fc31491a9e4d433106ef2","status":"affected","versionType":"git"},{"version":"adfab836f4908deb049a5128082719e689eed964","lessThan":"49178d4d61e78aed8c837dfeea8a450700f196e2","status":"affected","versionType":"git"},{"version":"adfab836f4908deb049a5128082719e689eed964","lessThan":"7717fc1a12f88701573f9ed897cc4f6699c661e3","status":"affected","versionType":"git"},{"version":"75b1f2d3ed3169675b69b2f68217ebb839414657","status":"affected","versionType":"git"},{"version":"bcbfe6fdf8576a545fafdfe4611f59cc6b166589","status":"affected","versionType":"git"},{"version":"3.12.30","lessThan":"3.13","status":"affected","versionType":"semver"},{"version":"3.14.21","lessThan":"3.15","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.16","status":"affected"},{"version":"0","lessThan":"3.16","status":"unaffected","versionType":"semver"},{"version":"4.14.306","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.273","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.232","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.168","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.93","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.11","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-667"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/29f0349c5c76b627fe06b87d4b13fa03a6ce8e64","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/387217b97e99699c34e6d95ce2b91b327fcd853e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d49c85a1913385eed46dd16a25ad0928253767f0","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/30187be29052bba9203b0ae2bdd815e0bc2faaab","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5dbe1ebd56470d03b78fc31491a9e4d433106ef2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/49178d4d61e78aed8c837dfeea8a450700f196e2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/7717fc1a12f88701573f9ed897cc4f6699c661e3","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52932.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52932","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00202,"epssPercentile":0.10252,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-52932","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52932","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-52932","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-52932","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}