CVE-2023-52932

mm/swapfile: add cond_resched() in get_swap_pages()

MEDIUM
5.5
CVSS Score
Published: March 27, 2025 at 04:37 PM UTC
Updated: June 17, 2026 at 06:43 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 3.12.30v ≥ 3.14.21v < 4.14.3063.12.30 ≤ v < 3.133.14.21 ≤ v < 3.153.16 ≤ v < 4.14.3063.16 ≤ v < 4.19.2733.16 ≤ v < 5.10.1683.16 ≤ v < 5.15.933.16 ≤ v < 5.4.2323.16 ≤ v < 6.1.113.16 ≤ v < 6.24.15 ≤ v < 4.19.2734.20 ≤ v < 5.4.2325.11 ≤ v < 5.15.935.16 ≤ v < 6.1.115.5 ≤ v < 5.10.1683.12.303.14.216.2 rc16.2 rc26.2 rc36.2 rc46.2 rc56.2 rc675b1f2d3ed3169675b69b2f68217ebb839414657adfab836f4908deb049a5128082719e689eed964bcbfe6fdf8576a545fafdfe4611f59cc6b166589
Vendor states this is fixed in 29f0349c5c76b627fe06b87d4b13fa03a6ce8e64 (fixed)
Vendor states this is fixed in 30187be29052bba9203b0ae2bdd815e0bc2faaab (fixed)
Vendor states this is fixed in 387217b97e99699c34e6d95ce2b91b327fcd853e (fixed)
Vendor states this is fixed in 49178d4d61e78aed8c837dfeea8a450700f196e2 (fixed)
Vendor states this is fixed in 5dbe1ebd56470d03b78fc31491a9e4d433106ef2 (fixed)
Vendor states this is fixed in 7717fc1a12f88701573f9ed897cc4f6699c661e3 (fixed)
Vendor states this is fixed in d49c85a1913385eed46dd16a25ad0928253767f0 (fixed)
Affected range stops below 3.13, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.15, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 3.16 (unaffected)
Vendor states this is fixed in 4.14.306 (unaffected)
Vendor states this is fixed in 4.19.273 (unaffected)
Vendor states this is fixed in 5.10.168 (unaffected)
Vendor states this is fixed in 5.15.93 (unaffected)
Vendor states this is fixed in 5.4.232 (unaffected)
Vendor states this is fixed in 6.1.11 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/29f0349c5c76b627fe06b87d4b13fa03a6ce8e64
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/30187be29052bba9203b0ae2bdd815e0bc2faaab
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/387217b97e99699c34e6d95ce2b91b327fcd853e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/49178d4d61e78aed8c837dfeea8a450700f196e2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5dbe1ebd56470d03b78fc31491a9e4d433106ef2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7717fc1a12f88701573f9ed897cc4f6699c661e3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d49c85a1913385eed46dd16a25ad0928253767f0

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-667

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card