Vulnerability · Published Mar 27, 2025 · Assigned by Linux

CVE-2023-52932mm/swapfile: add cond_resched() in get_swap_pages()

Medium 5.5

In plain English

A medium-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 10% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.5Medium
Exploit odds (30 days)0.2%top 89.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12linux6.1.11-1DEBIAN-CVE-2023-52932
Debian:13linux6.1.11-1DEBIAN-CVE-2023-52932
Debian:14linux6.1.11-1DEBIAN-CVE-2023-52932
Ubuntu:22.04:LTSlinux5.15.0-72.79UBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-aws5.15.0-1036.40UBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-azure5.15.0-1038.45UBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-azure-6.5no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1038.45.1UBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-gcp5.15.0-1034.42UBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-gcp-6.5no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-gke5.15.0-1033.38UBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1020.25UBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-hwe-6.5no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-ibm5.15.0-1030.33UBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1030.35UBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-kvm5.15.0-1033.38UBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-72.79UBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.5no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1025.25UBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-nvidia-6.5no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-oem-6.5no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-oracle5.15.0-1035.41UBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-oracle-6.5no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-raspi5.15.0-1029.31UBUNTU-CVE-2023-52932
Ubuntu:24.04:LTSlinux-raspi-realtimeno fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2023-52932
Ubuntu:24.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-riscv-6.5no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2023-52932
Ubuntu:22.04:LTSlinux-starfive-6.5no fix listedUBUNTU-CVE-2023-52932

Affected products (as reported)

VendorProductVersions
Linux Linux adfab836f4908deb049a5128082719e689eed964 – before 29f0349c5c76b627fe06b87d4b13fa03a6ce8e64adfab836f4908deb049a5128082719e689eed964 – before 387217b97e99699c34e6d95ce2b91b327fcd853eadfab836f4908deb049a5128082719e689eed964 – before d49c85a1913385eed46dd16a25ad0928253767f0adfab836f4908deb049a5128082719e689eed964 – before 30187be29052bba9203b0ae2bdd815e0bc2faaabadfab836f4908deb049a5128082719e689eed964 – before 5dbe1ebd56470d03b78fc31491a9e4d433106ef2adfab836f4908deb049a5128082719e689eed964 – before 49178d4d61e78aed8c837dfeea8a450700f196e2adfab836f4908deb049a5128082719e689eed964 – before 7717fc1a12f88701573f9ed897cc4f6699c661e375b1f2d3ed3169675b69b2f68217ebb839414657
Linux Linux 3.16

Weakness: CWE-667 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References