# CVE-2023-52932: mm/swapfile: add cond\_resched() in get\_swap\_pages()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-03-27T16:37:13.594Z
- **Modified:** 2026-06-17T06:43:57.810Z

## Who should check

- Anyone running Linux \>= adfab836f4908deb049a5128082719e689eed964, \< 29f0349c5c76b627fe06b87d4b13fa03a6ce8e64; \>= adfab836f4908deb049a5128082719e689eed964, \< 387217b97e99699c34e6d95ce2b91b327fcd853e; \>= adfab836f4908deb049a5128082719e689eed964, \< d49c85a1913385eed46dd16a25ad0928253767f0; \>= adfab836f4908deb049a5128082719e689eed964, \< 30187be29052bba9203b0ae2bdd815e0bc2faaab; \>= adfab836f4908deb049a5128082719e689eed964, \< 5dbe1ebd56470d03b78fc31491a9e4d433106ef2; \>= adfab836f4908deb049a5128082719e689eed964, \< 49178d4d61e78aed8c837dfeea8a450700f196e2; \>= adfab836f4908deb049a5128082719e689eed964, \< 7717fc1a12f88701573f9ed897cc4f6699c661e3; 75b1f2d3ed3169675b69b2f68217ebb839414657; bcbfe6fdf8576a545fafdfe4611f59cc6b166589; \>= 3.12.30, \< 3.13; …
- Anyone running Linux 3.16

## 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 and fixed versions

- Linux: \>= adfab836f4908deb049a5128082719e689eed964, \< 29f0349c5c76b627fe06b87d4b13fa03a6ce8e64; \>= adfab836f4908deb049a5128082719e689eed964, \< 387217b97e99699c34e6d95ce2b91b327fcd853e; \>= adfab836f4908deb049a5128082719e689eed964, \< d49c85a1913385eed46dd16a25ad0928253767f0; \>= adfab836f4908deb049a5128082719e689eed964, \< 30187be29052bba9203b0ae2bdd815e0bc2faaab; \>= adfab836f4908deb049a5128082719e689eed964, \< 5dbe1ebd56470d03b78fc31491a9e4d433106ef2; \>= adfab836f4908deb049a5128082719e689eed964, \< 49178d4d61e78aed8c837dfeea8a450700f196e2; \>= adfab836f4908deb049a5128082719e689eed964, \< 7717fc1a12f88701573f9ed897cc4f6699c661e3; 75b1f2d3ed3169675b69b2f68217ebb839414657; bcbfe6fdf8576a545fafdfe4611f59cc6b166589; \>= 3.12.30, \< 3.13; … (cvelist)
- Linux: 3.16 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52932. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52932.md
Affected: Linux >= adfab836f4908deb049a5128082719e689eed964, < 29f0349c5c76b627fe06b87d4b13fa03a6ce8e64; >= adfab836f4908deb049a5128082719e689eed964, < 387217b97e99699c34e6d95ce2b91b327fcd853e; >= adfab836f4908deb049a5128082719e689eed964, < d49c85a1913385eed46dd16a25ad0928253767f0; >= adfab836f4908deb049a512…
Fixed in: Linux 29f0349c5c76b627fe06b87d4b13fa03a6ce8e64, Linux 387217b97e99699c34e6d95ce2b91b327fcd853e, Linux 30187be29052bba9203b0ae2bdd815e0bc2faaab, Linux 5dbe1ebd56470d03b78fc31491a9e4d433106ef2, Linux 49178d4d61e78aed8c837dfeea8a450700f196e2, Linux 7717fc1a12f88701573f9ed897cc4f6699c661e3, Linux 3.13

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52932 being exploited?

There is no confirmed exploitation: CVE-2023-52932 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-52932?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52932?

Linux \>= adfab836f4908deb049a5128082719e689eed964, \< 29f0349c5c76b627fe06b87d4b13fa03a6ce8e64; \>= adfab836f4908deb049a5128082719e689eed964, \< 387217b97e99699c34e6d95ce2b91b327fcd853e; \>= adfab836f4908deb049a5128082719e689eed964, \< d49c85a1913385eed46dd16a25ad0928253767f0; \>= adfab836f4908deb049a5128082719e689eed964, \< 30187be29052bba9203b0ae2bdd815e0bc2faaab; \>= adfab836f4908deb049a5128082719e689eed964, \< 5dbe1ebd56470d03b78fc31491a9e4d433106ef2; \>= adfab836f4908deb049a5128082719e689eed964, \< 49178d4d61e78aed8c837dfeea8a450700f196e2; \>= adfab836f4908deb049a5128082719e689eed964, \< 7717fc1a12f88701573f9ed897cc4f6699c661e3; 75b1f2d3ed3169675b69b2f68217ebb839414657; bcbfe6fdf8576a545fafdfe4611f59cc6b166589; \>= 3.12.30, \< 3.13; …; Linux 3.16.

### Is there a fix for CVE-2023-52932?

Yes. Fixed in Linux 29f0349c5c76b627fe06b87d4b13fa03a6ce8e64, Linux 387217b97e99699c34e6d95ce2b91b327fcd853e, Linux 30187be29052bba9203b0ae2bdd815e0bc2faaab, Linux 5dbe1ebd56470d03b78fc31491a9e4d433106ef2, Linux 49178d4d61e78aed8c837dfeea8a450700f196e2, Linux 7717fc1a12f88701573f9ed897cc4f6699c661e3, Linux 3.13. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-52932?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/29f0349c5c76b627fe06b87d4b13fa03a6ce8e64>
- patch: <https://git.kernel.org/stable/c/387217b97e99699c34e6d95ce2b91b327fcd853e>
- patch: <https://git.kernel.org/stable/c/d49c85a1913385eed46dd16a25ad0928253767f0>
- patch: <https://git.kernel.org/stable/c/30187be29052bba9203b0ae2bdd815e0bc2faaab>
- patch: <https://git.kernel.org/stable/c/5dbe1ebd56470d03b78fc31491a9e4d433106ef2>
- patch: <https://git.kernel.org/stable/c/49178d4d61e78aed8c837dfeea8a450700f196e2>
- patch: <https://git.kernel.org/stable/c/7717fc1a12f88701573f9ed897cc4f6699c661e3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52932>

HTML: <https://flawdb.com/CVE-2023-52932> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52932>
