CVE-2023-52935
Last modified
CVE-2023-52935 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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)". EPSS estimates a 0.18% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Debian | Debian Linux | 11.0 | — |
| Linux | Linux Kernel | >= 4.8, < 5.4.299 | — |
| Linux | Linux Kernel | >= 5.5, < 5.10.243 | — |
| Linux | Linux Kernel | >= 5.11, < 5.15.192 | — |
| Linux | Linux Kernel | >= 5.16, < 6.1.11 | — |
| Linux | Linux Kernel | 6.2 | Rc1 |
References
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.htmlMailing List, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2023-52935?
How severe is CVE-2023-52935?
How do I fix CVE-2023-52935?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-5293A vulnerability, which was classified as critical, was found…6.5
- CVE-2023-52930In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-52931In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-52932In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52933In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52934In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2023-52936In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52937In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52938In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52939In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-5294A vulnerability has been found in ECshop 4.1.1 and classifie…8.8
- CVE-2023-52940In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2023-52935?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
