{"id":"CVE-2023-52932","aliases":["CVE-2023-52932"],"related":[],"kind":"vulnerability","state":"published","title":"mm/swapfile: add cond_resched() in get_swap_pages()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mm/swapfile: añadir cond_resched() en get_swap_pages() El bloqueo suave todavía ocurre en get_swap_pages() bajo presión de memoria. 64 núcleos de CPU, 64 GB de memoria y 28 dispositivos zram, el tamaño del disco de cada dispositivo zram es de 50 MB con la misma prioridad que si. Utilice la herramienta stress-ng para aumentar la presión de memoria, lo que hace que el sistema se sobrecargue con frecuencia. Los bucles plist_for_each_entry_safe() en get_swap_pages() podrían alcanzar decenas de miles de veces para encontrar espacio disponible (caso extremo: cond_resched() no se llama en scan_swap_map_slots()). Agreguemos cond_resched() a get_swap_pages() cuando no se pueda encontrar espacio disponible para evitar el bloqueo suave.","source":"nvd"}],"published":"2025-03-27T16:37:13.594Z","modified":"2026-06-17T06:43:57.810Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-667"],"affected":[{"ranges":[{"type":"git","introduced":"adfab836f4908deb049a5128082719e689eed964","fixed":"29f0349c5c76b627fe06b87d4b13fa03a6ce8e64","status":"affected"},{"type":"git","introduced":"adfab836f4908deb049a5128082719e689eed964","fixed":"387217b97e99699c34e6d95ce2b91b327fcd853e","status":"affected"},{"type":"git","introduced":"adfab836f4908deb049a5128082719e689eed964","fixed":"d49c85a1913385eed46dd16a25ad0928253767f0","status":"affected"},{"type":"git","introduced":"adfab836f4908deb049a5128082719e689eed964","fixed":"30187be29052bba9203b0ae2bdd815e0bc2faaab","status":"affected"},{"type":"git","introduced":"adfab836f4908deb049a5128082719e689eed964","fixed":"5dbe1ebd56470d03b78fc31491a9e4d433106ef2","status":"affected"},{"type":"git","introduced":"adfab836f4908deb049a5128082719e689eed964","fixed":"49178d4d61e78aed8c837dfeea8a450700f196e2","status":"affected"},{"type":"git","introduced":"adfab836f4908deb049a5128082719e689eed964","fixed":"7717fc1a12f88701573f9ed897cc4f6699c661e3","status":"affected"},{"type":"git","version":"75b1f2d3ed3169675b69b2f68217ebb839414657","status":"affected"},{"type":"git","version":"bcbfe6fdf8576a545fafdfe4611f59cc6b166589","status":"affected"},{"type":"semver","introduced":"3.12.30","fixed":"3.13","status":"affected"},{"type":"semver","introduced":"3.14.21","fixed":"3.15","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.16","status":"unaffected"},{"type":"semver","introduced":"4.14.306","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.273","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.232","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.168","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.93","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.11","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.14.306"},{"status":"affected","introduced":"4.15","fixed":"4.19.273"},{"status":"affected","introduced":"4.20","fixed":"5.4.232"},{"status":"affected","introduced":"5.5","fixed":"5.10.168"},{"status":"affected","introduced":"5.11","fixed":"5.15.93"},{"status":"affected","introduced":"5.16","fixed":"6.1.11"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/29f0349c5c76b627fe06b87d4b13fa03a6ce8e64","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/387217b97e99699c34e6d95ce2b91b327fcd853e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d49c85a1913385eed46dd16a25ad0928253767f0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/30187be29052bba9203b0ae2bdd815e0bc2faaab","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5dbe1ebd56470d03b78fc31491a9e4d433106ef2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/49178d4d61e78aed8c837dfeea8a450700f196e2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7717fc1a12f88701573f9ed897cc4f6699c661e3","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:25:12.734Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-52932","url":"https://www.cve.org/CVERecord?id=CVE-2023-52932","licence":"CVE Terms of Use","modified":"2026-05-23T15:27:34.332Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-52932","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52932","licence":"Public domain","modified":"2026-06-17T06:43:57.810Z"}],"updatedAt":"2026-11-25T22:58:34.574Z","epss":{"score":0.00202,"percentile":0.10716,"date":"2026-12-01T12:00:22.000Z"}}