# CVE-2023-52940: mm: multi-gen LRU: fix crash during cgroup migration

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-03-27T16:37:18.691Z
- Modified: 2026-06-17T06:43:59.057Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

mm: multi-gen LRU: fix crash during cgroup migration

lru_gen_migrate_mm() assumes lru_gen_add_mm() runs prior to itself.  This
isn't true for the following scenario:

    CPU 1                         CPU 2

  clone()
    cgroup_can_fork()
                                cgroup_procs_write()
    cgroup_post_fork()
                                  task_lock()
                                  lru_gen_migrate_mm()
                                  task_unlock()
    task_lock()
    lru_gen_add_mm()
    task_unlock()

And when the above happens, kernel crashes because of linked list
corruption (mm_struct->lru_gen.list).

(As written by CVE List.)

## Affected

- Linux Linux: from bd74fdaea146029e4fa12c6de89adbe0779348a9 before 04448022311cebd30969d3aebdde765f1258b360; from bd74fdaea146029e4fa12c6de89adbe0779348a9 before de08eaa6156405f2e9369f06ba5afae0e4ab3b62; 6.1 (not affected: before 6.1; from 6.1.11 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 6.1 before 6.1.11; 6.2

## References

- <https://git.kernel.org/stable/c/04448022311cebd30969d3aebdde765f1258b360> (patch)
- <https://git.kernel.org/stable/c/de08eaa6156405f2e9369f06ba5afae0e4ab3b62> (patch)

## Sources

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

---

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