CVE-2023-52939

published 27 Mar 2025 · updated 12 Aug 2026

mm: memcg: fix NULL pointer in mem_cgroup_track_foreign_dirty_slowpath()

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ac86f547ca1002aec2ef66b9e64d03f45bbbfbb9 and Kernel b79ba5953f6fdc5559389ad415620bffc24f024b.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.4, >=97b27821b4854ca744946dae32a3f2fd55bcd5bc <ac86f547ca1002aec2ef66b9e64d03f45bbbfbb9, >=97b27821b4854ca744946dae32a3f2fd55bcd5bc <b79ba5953f6fdc5559389ad415620bffc24f024bac86f547ca1002aec2ef66b9e64d03f45bbbfbb9, b79ba5953f6fdc5559389ad415620bffc24f024b

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-52939 severity on Zeptric[![CVE-2023-52939](https://zeptric.io/badge/cve/CVE-2023-52939.svg)](https://zeptric.io/cve/CVE-2023-52939)