CVE-2026-53162

Source
https://cve.org/CVERecord?id=CVE-2026-53162
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53162.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-53162
Downstream
Related
Published
2026-06-25T08:38:43.453Z
Modified
2026-07-08T08:07:23.550617739Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
memcg: use round-robin victim selection in refill_stock
Details

In the Linux kernel, the following vulnerability has been resolved:

memcg: use round-robin victim selection in refill_stock

Harry Yoo reported that getrandomu32_below() is not safe to call in the nmi context and memcg charge draining can happen in nmi context.

More specifically getrandomu32below() is neither reentrant- nor NMI-safe: it acquires a per-cpu locallock via locallockirqsave() on the batchedentropyu32 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 memcgstock localtrylock 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 memcgstockpcp and serialized by the same localtrylock that already guards cached[] and nrpages[]. No atomics, no random calls, no extra locks needed.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53162.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f735eebe55f8f61758fe014bd0b02ab50b059e4d
Fixed
89bd8215e25aa6999cc51696da418e0d422bc5e0
Fixed
00731bd7e18f182a32ca54d6b176eaa470b51ed7
Fixed
c0cafe24d3f6534294c4b2bc2d47734ff7cbd313

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53162.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.16.0
Fixed
6.18.36
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.13

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53162.json"