CVE-2026-53162
memcg: use round-robin victim selection in refill_stock
Reported by linux · Published June 25, 2026
In the Linux kernel, the following vulnerability has been resolved: memcg: use round-robin victim selection in refill_stock Harry Yoo reported that get_random_u32_below() is not safe to call in the nmi context and memcg charge draining can happen in nmi context. More specifically get_random_u32_below() is neither reentrant- nor NMI-safe: it acquires a per-cpu local_lock via local_lock_irqsave() on the batched_entropy_u32 state. An NMI that lands on a CPU mid-update of the ChaCha batch state and recurses into the random subsystem would corrupt that state. The memcg_stock local_trylock prevents re-entry on the percpu stock itself, but cannot protect an unrelated subsystem's per-cpu lock. Replace the random pick with a per-cpu round-robin counter stored in memcg_stock_pcp and serialized by the same local_trylock that already guards cached[] and nr_pages[]. No atomics, no random calls, no extra locks needed.
EPSS 0.17% · 6.8th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux-qemu-melange | Chainguard | 6.18.38-r0 |
| kernel6.18-tools | Amazon Linux | 1:6.18.36-69.134.amzn2023 |
| kernel6.18-headers | Amazon Linux | 1:6.18.36-69.134.amzn2023 |
| kernel6.18-devel | Amazon Linux | 1:6.18.36-69.134.amzn2023 |
| linux-gcp-6.18 | Chainguard | 6.18.38-r0 |
| kernel6.18-modules-extra | Amazon Linux | 1:6.18.36-69.134.amzn2023 |
| linux-aws-6.18 | Chainguard | 6.18.38-r0 |
| perf6.18 | Amazon Linux | 1:6.18.36-69.134.amzn2023 |
| linux-azure-6.18 | Chainguard | 6.18.38-r0 |
| python3-perf6.18 | Amazon Linux | 1:6.18.36-69.134.amzn2023 |
| kernel6.18-tools-devel | Amazon Linux | 1:6.18.36-69.134.amzn2023 |
| kernel6.18 | Amazon Linux | 1:6.18.36-69.134.amzn2023 |
1 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | f735eebe55f8f61758fe014bd0b02ab50b059e4d, f735eebe55f8f61758fe014bd0b02ab50b059e4d, f735eebe55f8f61758fe014bd0b02ab50b059e4d |
| Linux | Linux | 6.16, 0, 6.18.36 |
| chainguard | linux-qemu-melange | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| chainguard | linux-gcp-6.18 | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| chainguard | linux-aws-6.18 | 0 |
| amazon:2023 | perf6.18 | 0 |
| chainguard | linux-azure-6.18 | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel6.18 | 0 |
| Linux | Linux | 0, 7.0.13, * |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| linux | linux_kernel | 6.16, 6.16, 6.16 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| chainguard | linux-vmware-6.18 | 0 |
| amazon:2023 | bpftool6.18 | 0 |
…and 2 more
Timeline
- Jun 24, 2026 CVE Published
- Jun 26, 2026 EPSS Score (11 in total, the first dated here)
- Jun 26, 2026 Coalition ESS Score
- Jun 29, 2026 Security Advisory (64 in total, the first dated here)
- Jun 30, 2026 CVE Updated
- Aug 11, 2026 Distribution Patch (63 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-53162
vulnetix vdb fixes CVE-2026-53162
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-2026-53162/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart