CVE-2023-52939
mm: memcg: fix NULL pointer in mem_cgroup_track_foreign_dirty_slowpath()
Reported by linux · Published March 27, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf | Amazon Linux | 6.1.12-17.42.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.12-17.42.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.12-17.42.amzn2023 |
| kernel-devel | Amazon Linux | 6.1.12-17.42.amzn2023 |
| bpftool | Amazon Linux | 6.1.12-17.42.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.12-17.42.amzn2023 |
| python3-perf | Amazon Linux | 6.1.12-17.42.amzn2023 |
| kernel | Amazon Linux | 6.1.12-17.42.amzn2023 |
| kernel-livepatch-6.1.12-17.42 | Amazon Linux | 1.0-0.amzn2023 |
| linux_kernel | linux | 6.1.11 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 97b27821b4854ca744946dae32a3f2fd55bcd5bc, 97b27821b4854ca744946dae32a3f2fd55bcd5bc |
| Linux | Linux | 5.4, 0, 6.1.11 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-livepatch-6.1.12-17.42 | 0 |
| linux | linux_kernel | 5.4, 5.4 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| Linux | Linux | 0, 97b27821b4854ca744946dae32a3f2fd55bcd5bc, 5.4 |
| amazon:2023 | kernel-tools-devel | 0 |
Timeline
- Mar 27, 2025 CVE Published
- Mar 28, 2025 EPSS Score (30 in total, the first dated here)
- Mar 28, 2025 Coalition ESS Score (10 in total, the first dated here)
- Oct 1, 2025 CVE Updated
- Jan 25, 2026 Security Advisory (128 in total, the first dated here)
- Sep 5, 2026 Distribution Patch (120 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-52939
vulnetix vdb fixes CVE-2023-52939
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-52939/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart