{"id":"CVE-2023-53614","summary":"mm/ksm: fix race with VMA iteration and mm_struct teardown","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/ksm: fix race with VMA iteration and mm_struct teardown\n\nexit_mmap() will tear down the VMAs and maple tree with the mmap_lock held\nin write mode.  Ensure that the maple tree is still valid by checking\nksm_test_exit() after taking the mmap_lock in read mode, but before the\nfor_each_vma() iterator dereferences a destroyed maple tree.\n\nSince the maple tree is destroyed, the flags telling lockdep to check an\nexternal lock has been cleared.  Skip the for_each_vma() iterator to avoid\ndereferencing a maple tree without the external lock flag, which would\ncreate a lockdep warning.","modified":"2026-08-12T03:51:39.632647559Z","published":"2025-10-04T15:44:21.671Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53614.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/286b0cab31bac29960e5684f6fb331d42f03b363"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6db504ce55bdbc575723938fc480713c9183f6a2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b4f664ffd8f78c05a1fd542a28bc5a11e994c014"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53614.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53614"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a5f18ba0727656bd1fe3bcdb0d563f81790f9a04"},{"fixed":"286b0cab31bac29960e5684f6fb331d42f03b363"},{"fixed":"b4f664ffd8f78c05a1fd542a28bc5a11e994c014"},{"fixed":"6db504ce55bdbc575723938fc480713c9183f6a2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53614.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.1.22"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.2.9"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53614.json"}}],"schema_version":"1.9.0"}