Skip to content
Heist/ feed
Back to feed
MediumFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.14.306, 4.19.273, 5.10.168, 5.15.93, 5.4.232, 6.1.11
CVEs
CVE-2023-52932
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 10:36 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 27 Mar 2025, 16:37 UTC

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.

osv:CVE-2023-52932

Kernel

Fixed versions: 4.14.306, 4.19.273, 5.4.232, 5.10.168, 5.15.93, 6.1.11

Complete source record
{
  "id": "737370d68747075ed913f6130a1afe3100c716e0dcd6b23184a7e0dc79fca981",
  "url": "https://osv.dev/vulnerability/CVE-2023-52932",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "mm/swapfile: add cond_resched() in get_swap_pages()",
    "summary": "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.",
    "evidence": "osv:CVE-2023-52932",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.14.306",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "4.19.273",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.232",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.168",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.93",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.11",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-52932",
      "aliases": [
        "CVE-2023-52932"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "adfab836f4908deb049a5128082719e689eed964"
                },
                {
                  "fixed": "29f0349c5c76b627fe06b87d4b13fa03a6ce8e64"
                },
                {
                  "fixed": "387217b97e99699c34e6d95ce2b91b327fcd853e"
                },
                {
                  "fixed": "d49c85a1913385eed46dd16a25ad0928253767f0"
                },
                {
                  "fixed": "30187be29052bba9203b0ae2bdd815e0bc2faaab"
                },
                {
                  "fixed": "5dbe1ebd56470d03b78fc31491a9e4d433106ef2"
                },
                {
                  "fixed": "49178d4d61e78aed8c837dfeea8a450700f196e2"
                },
                {
                  "fixed": "7717fc1a12f88701573f9ed897cc4f6699c661e3"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3.12.30"
                },
                {
                  "fixed": "3.13"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3.14.21"
                },
                {
                  "fixed": "3.15"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "75b1f2d3ed3169675b69b2f68217ebb839414657"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "bcbfe6fdf8576a545fafdfe4611f59cc6b166589"
                }
              ]
            }
          ],
          "versions": [
            "v3.12.74",
            "v3.12.73",
            "v3.12.72",
            "v3.12.71",
            "v3.12.70",
            "v3.12.69",
            "v3.12.68",
            "v3.12.67",
            "v3.12.66",
            "v3.12.65",
            "v3.12.64",
            "v3.12.63",
            "v3.12.62",
            "v3.12.61",
            "v3.12.60",
            "v3.12.59",
            "v3.12.58",
            "v3.12.57",
            "v3.12.56",
            "v3.12.55",
            "v3.12.54",
            "v3.12.53",
            "v3.12.52",
            "v3.12.51",
            "v3.12.50",
            "v3.12.49",
            "v3.12.48",
            "v3.12.47",
            "v3.12.46",
            "v3.12.45",
            "v3.12.44",
            "v3.12.43",
            "v3.12.42",
            "v3.12.41",
            "v3.12.40",
            "v3.12.39",
            "v3.12.38",
            "v3.12.37",
            "v3.12.36",
            "v3.12.35",
            "v3.12.34",
            "v3.12.33",
            "v3.12.32",
            "v3.12.31",
            "v3.12.30",
            "v3.14.79",
            "v3.14.78",
            "v3.14.77",
            "v3.14.76",
            "v3.14.75",
            "v3.14.74",
            "v3.14.73",
            "v3.14.72",
            "v3.14.71",
            "v3.14.70",
            "v3.14.69",
            "v3.14.68",
            "v3.14.67",
            "v3.14.66",
            "v3.14.65",
            "v3.14.64",
            "v3.14.63",
            "v3.14.62",
            "v3.14.61",
            "v3.14.60",
            "v3.14.59",
            "v3.14.58",
            "v3.14.57",
            "v3.14.56",
            "v3.14.55",
            "v3.14.54",
            "v3.14.53",
            "v3.14.52",
            "v3.14.51",
            "v3.14.50",
            "v3.14.49",
            "v3.14.48",
            "v3.14.47",
            "v3.14.46",
            "v3.14.45",
            "v3.14.44",
            "v3.14.43",
            "v3.14.42",
            "v3.14.41",
            "v3.14.40",
            "v3.14.39",
            "v3.14.38",
            "v3.14.37",
            "v3.14.36",
            "v3.14.35",
            "v3.14.34",
            "v3.14.33",
            "v3.14.32",
            "v3.14.31",
            "v3.14.30",
            "v3.14.29",
            "v3.14.28",
            "v3.14.27",
            "v3.14.26",
            "v3.14.25",
            "v3.14.24",
            "v3.14.23",
            "v3.14.22",
            "v3.14.21"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52932.json"
          }
        },
        {
          "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"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52932.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:28.029841533Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/29f0349c5c76b627fe06b87d4b13fa03a6ce8e64",
        "https://git.kernel.org/stable/c/30187be29052bba9203b0ae2bdd815e0bc2faaab",
        "https://git.kernel.org/stable/c/387217b97e99699c34e6d95ce2b91b327fcd853e",
        "https://git.kernel.org/stable/c/49178d4d61e78aed8c837dfeea8a450700f196e2",
        "https://git.kernel.org/stable/c/5dbe1ebd56470d03b78fc31491a9e4d433106ef2",
        "https://git.kernel.org/stable/c/7717fc1a12f88701573f9ed897cc4f6699c661e3",
        "https://git.kernel.org/stable/c/d49c85a1913385eed46dd16a25ad0928253767f0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52932.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-52932",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52932.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-52932",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 494578,
  "published_at": "2025-03-27T16:37:13.594+00:00"
}