CVE-2023-52935 Details
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.
A vulnerability has been identified in the Linux kernel's khugepaged component, related to a race condition involving the virtual memory area (VMA) and its associated anon_vma. The issue arises when the collapse_and_free_pmd() function attempts to remove page tables without properly locking the anon_vma, allowing for concurrent access and potential use-after-free errors. This vulnerability can trigger a lockdep warning and disrupt normal memory management operations.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 28, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/023f47a8250c6bdb4aebe744db4bf7f73414028b | kernel.org | Patch |
| https://git.kernel.org/stable/c/352fbf61ce776fef18dca6a68680a6cd943dac95 | kernel.org | Patch |
| https://git.kernel.org/stable/c/abdf3c33918185c3e8ffeb09ed3e334b3d7df47c | kernel.org | Patch |
| https://git.kernel.org/stable/c/acb08187b5a83cdb9ac4112fae9e18cf983b0128 | kernel.org | Patch |
| https://git.kernel.org/stable/c/cee956ab1efbd858b4ca61c8b474af5aa24b29a6 | kernel.org | Patch |
| https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html | CVE | Mailing ListThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| debian debian linux | 11.0 |
CPE
Remediation
| |
| linux linux kernel | >= 4.8, < 5.4.299 >= 5.5, < 5.10.243 >= 5.11, < 5.15.192 >= 5.16, < 6.1.11 6.2 rc1 6.2 rc2 6.2 rc3 6.2 rc4 6.2 rc5 6.2 rc6 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 25, 2025 | Modified Analysis | [email protected] |
| Nov 3, 2025 | CVE Modified | CVE |
| Sep 9, 2025 | CVE Modified | kernel.org |
| Apr 1, 2025 | Initial Analysis | [email protected] |
| Mar 28, 2025 | CVE Modified | CISA-ADP |
| Mar 27, 2025 | New CVE Received | kernel.org |