# CVE-2023-52939: mm: memcg: fix NULL pointer in mem_cgroup_track_foreign_dirty_slowpath()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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 12% of CVEs (2026-12-01)
- Published: 2025-03-27T16:37:18.026Z
- Modified: 2026-06-17T06:43:58.903Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

mm: memcg: fix NULL pointer in mem_cgroup_track_foreign_dirty_slowpath()

As commit 18365225f044 ("hwpoison, memcg: forcibly uncharge LRU pages"),
hwpoison will forcibly uncharg a LRU hwpoisoned page, the folio_memcg
could be NULl, then, mem_cgroup_track_foreign_dirty_slowpath() could
occurs a NULL pointer dereference, let's do not record the foreign
writebacks for folio memcg is null in mem_cgroup_track_foreign_dirty() to
fix it.

(As written by CVE List.)

## Affected

- Linux Linux: from 97b27821b4854ca744946dae32a3f2fd55bcd5bc before b79ba5953f6fdc5559389ad415620bffc24f024b; from 97b27821b4854ca744946dae32a3f2fd55bcd5bc before ac86f547ca1002aec2ef66b9e64d03f45bbbfbb9; 5.4 (not affected: before 5.4; from 6.1.11 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 5.4 before 6.1.11; 6.2

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/b79ba5953f6fdc5559389ad415620bffc24f024b> (patch)
- <https://git.kernel.org/stable/c/ac86f547ca1002aec2ef66b9e64d03f45bbbfbb9> (patch)

## Sources

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

---

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