# CVE-2023-53614: mm/ksm: fix race with VMA iteration and mm_struct teardown

- Severity: Medium 4.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2025-10-04T15:44:21.671Z
- Modified: 2026-06-17T06:45:43.263Z
- Weaknesses: CWE-362
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from a5f18ba0727656bd1fe3bcdb0d563f81790f9a04 before 286b0cab31bac29960e5684f6fb331d42f03b363; from a5f18ba0727656bd1fe3bcdb0d563f81790f9a04 before b4f664ffd8f78c05a1fd542a28bc5a11e994c014; from a5f18ba0727656bd1fe3bcdb0d563f81790f9a04 before 6db504ce55bdbc575723938fc480713c9183f6a2; 6.1 (not affected: before 6.1; from 6.1.22 up to 6.1.*; from 6.2.9 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 6.1 before 6.1.22; from 6.2 before 6.2.9; 6.3

## References

- <https://git.kernel.org/stable/c/286b0cab31bac29960e5684f6fb331d42f03b363> (patch)
- <https://git.kernel.org/stable/c/b4f664ffd8f78c05a1fd542a28bc5a11e994c014> (patch)
- <https://git.kernel.org/stable/c/6db504ce55bdbc575723938fc480713c9183f6a2> (patch)

## Sources

- CVE List: [CVE-2023-53614](https://www.cve.org/CVERecord?id=CVE-2023-53614), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53614](https://nvd.nist.gov/vuln/detail/CVE-2023-53614), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53614 · Whole record: https://cve.day/CVE-2023-53614.json · Rebuilt by cve.day 2026-11-25T22:58:34.967Z
