CVE-2023-53614 Details
Description
In the Linux kernel, the following vulnerability has been resolved: mm/ksm: fix race with VMA iteration and mm_struct teardown exit_mmap() will tear down the VMAs and maple tree with the mmap_lock held in write mode. Ensure that the maple tree is still valid by checking ksm_test_exit() after taking the mmap_lock in read mode, but before the for_each_vma() iterator dereferences a destroyed maple tree. Since the maple tree is destroyed, the flags telling lockdep to check an external lock has been cleared. Skip the for_each_vma() iterator to avoid dereferencing a maple tree without the external lock flag, which would create a lockdep warning.
A race condition vulnerability has been identified in the Linux kernel's memory management subsystem, specifically within the KSM (Kernel Samepage Merging) functionality. This issue arises during the iteration over virtual memory areas (VMAs) and the teardown of memory structures. The vulnerability is present in the Linux kernel stable tree. The root cause lies in the 'exit_mmap()' function, which dismantles the VMAs and the associated maple tree while holding the mmap_lock in write mode. To address this, the 'ksm_test_exit()' function should be checked after acquiring the mmap_lock in read mode, but before the 'for_each_vma()' iterator accesses a destroyed maple tree. Failing to do so could lead to a lockdep warning by dereferencing a maple tree without the necessary external lock flag.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed.
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.
No SSVC data is available for this CVE.
References 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/286b0cab31bac29960e5684f6fb331d42f03b363 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6db504ce55bdbc575723938fc480713c9183f6a2 | kernel.org | Patch |
| https://git.kernel.org/stable/c/b4f664ffd8f78c05a1fd542a28bc5a11e994c014 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.1, < 6.1.22 >= 6.2, < 6.2.9 6.3 rc1 6.3 rc2 6.3 rc3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Mar 17, 2026 | Modified Analysis | [email protected] |
| Feb 5, 2026 | Initial Analysis | [email protected] |
| Oct 4, 2025 | New CVE Received | kernel.org |