CVE-2023-52932
mm/swapfile: add cond_resched() in get_swap_pages()
Check your servers for CVE-2023-52932
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-52932 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.7% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 1 Oct 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-667 Improper Locking
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from adfab836f4908deb049a5128082719e689eed964, before 29f0349c5c76b627fe06b87d4b13fa03a6ce8e64 affected from adfab836f4908deb049a5128082719e689eed964, before 387217b97e99699c34e6d95ce2b91b327fcd853e affected from adfab836f4908deb049a5128082719e689eed964, before d49c85a1913385eed46dd16a25ad0928253767f0 affected from adfab836f4908deb049a5128082719e689eed964, before 30187be29052bba9203b0ae2bdd815e0bc2faaab affected from adfab836f4908deb049a5128082719e689eed964, before 5dbe1ebd56470d03b78fc31491a9e4d433106ef2 affected from adfab836f4908deb049a5128082719e689eed964, before 49178d4d61e78aed8c837dfeea8a450700f196e2 affected from adfab836f4908deb049a5128082719e689eed964, before 7717fc1a12f88701573f9ed897cc4f6699c661e3 affected 75b1f2d3ed3169675b69b2f68217ebb839414657 affected bcbfe6fdf8576a545fafdfe4611f59cc6b166589 affected from 3.12.30, before 3.13 affected from 3.14.21, before 3.15
Other versions: unaffected
|
| Linux |
affected 3.16 unaffected before 3.16 unaffected from 4.14.306 up to and including 4.14.* unaffected from 4.19.273 up to and including 4.19.* unaffected from 5.4.232 up to and including 5.4.* unaffected from 5.10.168 up to and including 5.10.* unaffected from 5.15.93 up to and including 5.15.* unaffected from 6.1.11 up to and including 6.1.* unaffected 6.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-52932 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52932
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-52932
trivy image --scanners vuln IMAGE | grep CVE-2023-52932
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/29f0349c5c76b627fe06b87d4b13fa03a6ce8e64 git.kernel.org
- https://git.kernel.org/stable/c/387217b97e99699c34e6d95ce2b91b327fcd853e git.kernel.org
- https://git.kernel.org/stable/c/d49c85a1913385eed46dd16a25ad0928253767f0 git.kernel.org
- https://git.kernel.org/stable/c/30187be29052bba9203b0ae2bdd815e0bc2faaab git.kernel.org
- https://git.kernel.org/stable/c/5dbe1ebd56470d03b78fc31491a9e4d433106ef2 git.kernel.org
- https://git.kernel.org/stable/c/49178d4d61e78aed8c837dfeea8a450700f196e2 git.kernel.org
- https://git.kernel.org/stable/c/7717fc1a12f88701573f9ed897cc4f6699c661e3 git.kernel.org
Source: the record CVE-2023-52932 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse