{"id":"CVE-2023-53614","aliases":["CVE-2023-53614"],"related":[],"kind":"vulnerability","state":"published","title":"mm/ksm: fix race with VMA iteration and mm_struct teardown","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2025-10-04T15:44:21.671Z","modified":"2026-06-17T06:45:43.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"git","introduced":"a5f18ba0727656bd1fe3bcdb0d563f81790f9a04","fixed":"286b0cab31bac29960e5684f6fb331d42f03b363","status":"affected"},{"type":"git","introduced":"a5f18ba0727656bd1fe3bcdb0d563f81790f9a04","fixed":"b4f664ffd8f78c05a1fd542a28bc5a11e994c014","status":"affected"},{"type":"git","introduced":"a5f18ba0727656bd1fe3bcdb0d563f81790f9a04","fixed":"6db504ce55bdbc575723938fc480713c9183f6a2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.1","status":"unaffected"},{"type":"semver","introduced":"6.1.22","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.9","lastAffected":"6.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.1","fixed":"6.1.22"},{"status":"affected","introduced":"6.2","fixed":"6.2.9"},{"status":"affected","version":"6.3"},{"status":"affected","version":"6.3"},{"status":"affected","version":"6.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/286b0cab31bac29960e5684f6fb331d42f03b363","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b4f664ffd8f78c05a1fd542a28bc5a11e994c014","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6db504ce55bdbc575723938fc480713c9183f6a2","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53614","url":"https://www.cve.org/CVERecord?id=CVE-2023-53614","licence":"CVE Terms of Use","modified":"2026-05-11T19:48:33.960Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53614","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53614","licence":"Public domain","modified":"2026-06-17T06:45:43.263Z"}],"updatedAt":"2026-11-25T22:58:34.967Z","epss":{"score":0.00108,"percentile":0.01303,"date":"2026-12-01T12:00:22.000Z"}}