VDB

CVE-2026-53162

CVE-2026-53162 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
linux-qemu-melangeChainguard6.18.38-r0
kernel6.18-toolsAmazon Linux1:6.18.36-69.134.amzn2023
kernel6.18-headersAmazon Linux1:6.18.36-69.134.amzn2023
kernel6.18-develAmazon Linux1:6.18.36-69.134.amzn2023
linux-gcp-6.18Chainguard6.18.38-r0
kernel6.18-modules-extraAmazon Linux1:6.18.36-69.134.amzn2023
linux-aws-6.18Chainguard6.18.38-r0
perf6.18Amazon Linux1:6.18.36-69.134.amzn2023
linux-azure-6.18Chainguard6.18.38-r0
python3-perf6.18Amazon Linux1:6.18.36-69.134.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.36-69.134.amzn2023
kernel6.18Amazon Linux1:6.18.36-69.134.amzn2023

1 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.17%
6.8th percentile

Affected products

VendorProductVersions
LinuxLinuxf735eebe55f8f61758fe014bd0b02ab50b059e4d, f735eebe55f8f61758fe014bd0b02ab50b059e4d, f735eebe55f8f61758fe014bd0b02ab50b059e4d
LinuxLinux6.16, 0, 6.18.36
chainguardlinux-qemu-melange0
amazon:2023kernel6.18-tools0
amazon:2023kernel6.18-headers0
amazon:2023kernel6.18-devel0
chainguardlinux-gcp-6.180
amazon:2023kernel6.18-modules-extra0
chainguardlinux-aws-6.180
amazon:2023perf6.180
chainguardlinux-azure-6.180
amazon:2023python3-perf6.180
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.180
LinuxLinux0, 7.0.13, *
amazon:2023kernel6.18-modules-extra-common0
linuxlinux_kernel6.16, 6.16, 6.16
amazon:2023microvm-kernel6.180
chainguardlinux-vmware-6.180
amazon:2023bpftool6.180

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›