VDB

CVE-2023-52935

CVE-2023-52935 PUBLISHED CVSS 7.8 HIGH

mm/khugepaged: fix ->anon_vma race

Reported by linux · Published March 27, 2025

In the Linux kernel, the following vulnerability has been resolved: mm/khugepaged: fix ->anon_vma race If an ->anon_vma is attached to the VMA, collapse_and_free_pmd() requires it to be locked. Page table traversal is allowed under any one of the mmap lock, the anon_vma lock (if the VMA is associated with an anon_vma), and the mapping lock (if the VMA is associated with a mapping); and so to be able to remove page tables, we must hold all three of them. retract_page_tables() bails out if an ->anon_vma is attached, but does this check before holding the mmap lock (as the comment above the check explains). If we racily merged an existing ->anon_vma (shared with a child process) from a neighboring VMA, subsequent rmap traversals on pages belonging to the child will be able to see the page tables that we are concurrently removing while assuming that nothing else can access them. Repeat the ->anon_vma check once we hold the mmap lock to ensure that there really is no concurrent page table access. Hitting this bug causes a lockdep warning in collapse_and_free_pmd(), in the line "lockdep_assert_held_write(&vma->anon_vma->root->rwsem)". It can also lead to use-after-free access.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-tools-develAmazon Linux6.1.12-17.42.amzn2023
kernel-toolsAmazon Linux6.1.12-17.42.amzn2023, 4.14.355-280.684.amzn2
kernel-libbpf-develAmazon Linux6.1.12-17.42.amzn2023
kernelAmazon Linux6.1.12-17.42.amzn2023
kernel-livepatch-6.1.12-17.42Amazon Linux1.0-0.amzn2023
kernel-libbpfAmazon Linux6.1.12-17.42.amzn2023
python-perfAmazon Linux4.14.355-280.684.amzn2
kernel-headersAmazon Linux6.1.12-17.42.amzn2023, 4.14.355-280.684.amzn2
bpftoolAmazon Linux6.1.12-17.42.amzn2023
python3-perfAmazon Linux6.1.12-17.42.amzn2023
LinuxLinuxacb08187b5a83cdb9ac4112fae9e18cf983b0128, abdf3c33918185c3e8ffeb09ed3e334b3d7df47c, 023f47a8250c6bdb4aebe744db4bf7f73414028b

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxf3f0e1d2150b2b99da2cbdfaad000089efe9bf30, f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, f3f0e1d2150b2b99da2cbdfaad000089efe9bf30
LinuxLinux4.8, 0, 5.4.299
amazon:2023kernel-tools-devel0
amazon:2023kernel-tools0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel0
amazon:2kernel-tools0
amazon:2023kernel-livepatch-6.1.12-17.420
amazon:2023kernel-libbpf0
amazon:2python-perf0
amazon:2kernel-headers0
amazon:2023bpftool0
amazon:2023python3-perf0
amazon:2023kernel-headers0
LinuxLinux*, *, *
amazon:2kernel-devel0
amazon:2023kernel-devel0
amazon:2kernel-livepatch-4.14.355-280.6840
amazon:2023kernel-libbpf-static0
amazon:2kernel-tools-devel0

…and 4 more

Timeline

  • Mar 27, 2025 CVE Published
  • Mar 28, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 28, 2025 Coalition ESS Score (19 in total, the first dated here)
  • Jan 14, 2026 PoC Published
  • Jan 25, 2026 Security Advisory (153 in total, the first dated here)
  • Apr 20, 2026 Distribution Patch (145 in total, the first dated here)
  • Jun 17, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-52935
vulnetix vdb fixes CVE-2023-52935

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-52935/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›