CVE-2023-52932

Source
https://cve.org/CVERecord?id=CVE-2023-52932
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52932.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-52932
Downstream
Published
2025-03-27T16:37:13.594Z
Modified
2026-04-11T12:46:38.547242Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
mm/swapfile: add cond_resched() in get_swap_pages()
Details

In the Linux kernel, the following vulnerability has been resolved:

mm/swapfile: add condresched() in getswap_pages()

The softlockup still occurs in getswappages() 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 plistforeachentrysafe() loops in getswappages() could reach tens of thousands of times to find available space (extreme case: condresched() is not called in scanswapmapslots()). Let's add condresched() into getswap_pages() when failed to find available space to avoid softlockup.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52932.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
adfab836f4908deb049a5128082719e689eed964
Fixed
29f0349c5c76b627fe06b87d4b13fa03a6ce8e64
Fixed
387217b97e99699c34e6d95ce2b91b327fcd853e
Fixed
d49c85a1913385eed46dd16a25ad0928253767f0
Fixed
30187be29052bba9203b0ae2bdd815e0bc2faaab
Fixed
5dbe1ebd56470d03b78fc31491a9e4d433106ef2
Fixed
49178d4d61e78aed8c837dfeea8a450700f196e2
Fixed
7717fc1a12f88701573f9ed897cc4f6699c661e3
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
75b1f2d3ed3169675b69b2f68217ebb839414657
Last affected
bcbfe6fdf8576a545fafdfe4611f59cc6b166589

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52932.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.16.0
Fixed
4.14.306
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.273
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.232
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.168
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.93
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.11

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52932.json"