# CVE-2023-52935: mm/khugepaged: fix -\>anon\_vma race

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-03-27 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2023-52935, DEBIAN-CVE-2023-52935
- Record: https://cvemate.com/vulnerability/CVE-2023-52935 · JSON: https://cvemate.com/vulnerability/CVE-2023-52935/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.198%, percentile 10.059%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 120)

- debian linux (Debian): \< 6.1.11-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-163.173
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1097.104
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1097.104~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1097.104+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1101.110
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/352fbf61ce776fef18dca6a68680a6cd943dac95>
- <https://git.kernel.org/stable/c/cee956ab1efbd858b4ca61c8b474af5aa24b29a6>
- <https://git.kernel.org/stable/c/abdf3c33918185c3e8ffeb09ed3e334b3d7df47c>
- <https://git.kernel.org/stable/c/acb08187b5a83cdb9ac4112fae9e18cf983b0128>
- <https://git.kernel.org/stable/c/023f47a8250c6bdb4aebe744db4bf7f73414028b>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- <https://ubuntu.com/security/CVE-2023-52935>
- <https://www.cve.org/CVERecord?id=CVE-2023-52935>
- <https://git.kernel.org/linus/023f47a8250c6bdb4aebe744db4bf7f73414028b>
- <https://ubuntu.com/security/notices/USN-7909-1>
- <https://ubuntu.com/security/notices/USN-7909-2>
- <https://ubuntu.com/security/notices/USN-7909-3>
- <https://ubuntu.com/security/notices/USN-7910-1>
- <https://ubuntu.com/security/notices/USN-7909-4>
- <https://ubuntu.com/security/notices/USN-7910-2>
- <https://ubuntu.com/security/notices/USN-7933-1>
- <https://ubuntu.com/security/notices/USN-7909-5>
- <https://ubuntu.com/security/notices/USN-7938-1>
- <https://security-tracker.debian.org/tracker/CVE-2023-52935>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-52935>

---

Data as of 2026-12-05T04:45:28.501Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
