CVE-2026-53162 Details
Description
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.
A vulnerability in the Linux kernel's memory control group (memcg) management has been addressed. The issue arose because the function get_random_u32_below() is not safe to use in non-maskable interrupt (NMI) context, which can lead to improper handling of memcg charge draining during NMIs. This function is neither reentrant nor NMI-safe, as it locks per-CPU random state in a way that could be disrupted by an NMI, potentially corrupting the random state. The vulnerability has been fixed by replacing the random selection with a per-CPU round-robin counter, eliminating the need for atomic operations or additional locks. This issue affects the Linux kernel stable tree.
Users can upgrade to the latest version of the Linux kernel stable tree to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/00731bd7e18f182a32ca54d6b176eaa470b51ed7 | kernel.org | Patch |
| https://git.kernel.org/stable/c/89bd8215e25aa6999cc51696da418e0d422bc5e0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c0cafe24d3f6534294c4b2bc2d47734ff7cbd313 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.16, < 6.18.36 >= 6.19, < 7.0.13 7.1 rc1 7.1 rc2 7.1 rc3 7.1 rc4 7.1 rc5 7.1 rc6 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 6, 2026 | Initial Analysis | [email protected] |
| Jun 28, 2026 | CVE Modified | kernel.org |
| Jun 25, 2026 | New CVE Received | kernel.org |