What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 6.1.11. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-52939 or the next vulnerability affects your stack