{"id":"CVE-2023-52940","summary":"mm: multi-gen LRU: fix crash during cgroup migration","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: multi-gen LRU: fix crash during cgroup migration\n\nlru_gen_migrate_mm() assumes lru_gen_add_mm() runs prior to itself.  This\nisn't true for the following scenario:\n\n    CPU 1                         CPU 2\n\n  clone()\n    cgroup_can_fork()\n                                cgroup_procs_write()\n    cgroup_post_fork()\n                                  task_lock()\n                                  lru_gen_migrate_mm()\n                                  task_unlock()\n    task_lock()\n    lru_gen_add_mm()\n    task_unlock()\n\nAnd when the above happens, kernel crashes because of linked list\ncorruption (mm_struct-\u003elru_gen.list).","modified":"2026-03-20T12:32:53.269271Z","published":"2025-03-27T16:37:18.691Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52940.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/04448022311cebd30969d3aebdde765f1258b360"},{"type":"WEB","url":"https://git.kernel.org/stable/c/de08eaa6156405f2e9369f06ba5afae0e4ab3b62"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52940.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52940"},{"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":"bd74fdaea146029e4fa12c6de89adbe0779348a9"},{"fixed":"04448022311cebd30969d3aebdde765f1258b360"},{"fixed":"de08eaa6156405f2e9369f06ba5afae0e4ab3b62"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52940.json"}}],"schema_version":"1.7.5"}