CVE-2023-53614

mm/ksm: fix race with VMA iteration and mm_struct teardown

State
Published
Severity
Not scored
Published
Oct 4, 2025
Updated
May 11, 2026
Reserved
Oct 4, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • a5f18ba0727656bd1fe3bcdb0d563f81790f9a04 to before 286b0cab31bac29960e5684f6fb331d42f03b363Affected
  • a5f18ba0727656bd1fe3bcdb0d563f81790f9a04 to before b4f664ffd8f78c05a1fd542a28bc5a11e994c014Affected
  • a5f18ba0727656bd1fe3bcdb0d563f81790f9a04 to before 6db504ce55bdbc575723938fc480713c9183f6a2Affected
LinuxLinux
  • 6.1Affected
  • before 6.1Not affected
  • 6.1.22 through 6.1.*Not affected
  • 6.2.9 through 6.2.*Not affected
  • 6.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.