CVE-2026-23195
published high CVSS 3.1 · 7.0cgroup/dmem: avoid pool UAF
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxb168ed458ddecc176f3b9a1f4bcd83d7a4541c14 to < d3081353acaa6a638dcf75726066ea556a2de8d5 · b168ed458ddecc176f3b9a1f4bcd83d7a4541c14 to < 99a2ef500906138ba58093b9893972a5c303c734 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.14 (affected) · 0 to < 6.14 (unaffected · semver) · 6.18.10 through 6.18.* (unaffected · semver) · 6.19 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: cgroup/dmem: avoid pool UAF An UAF issue was observed: BUG: KASAN: slab-use-after-free in page_counter_uncharge+0x65/0x150 Write of size 8 at addr ffff888106715440 by task insmod/527 CPU: 4 UID: 0 PID: 527 Comm: insmod 6.19.0-rc7-next-20260129+ #11 Tainted: [O]=OOT_MODULE Call Trace: <TASK> dump_stack_lvl+0x82/0xd0 kasan_report+0xca/0x100 kasan_check_range+0x39/0x1c0 page_counter_uncharge+0x65/0x150 dmem_cgroup_uncharge+0x1f/0x260 Allocated by task 527: Freed by task 0: The buggy address belongs to the object at ffff888106715400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 64 bytes inside of freed 512-byte region [ffff888106715400, ffff888106715600) The buggy address belongs to the physical page: Memory state around the buggy address: ffff888106715300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888106715380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888106715400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888106715480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888106715500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb The issue occurs because a pool can still be held by a caller after its associated memory region is unregistered. The current implementation frees the pool even if users still hold references to it (e.g., before uncharge operations complete). This patch adds a reference counter to each pool, ensuring that a pool is only freed when its reference count drops to zero.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerability is triggered through local DRM device ioctls (GPU buffer allocation/deallocation) combined with cgroup device memory accounting. No network or adjacent access path exists. AC:H - An unprivileged attacker can hold GPU memory charges, but triggering the UAF requires a device removal event (module unload, device unbind) which is beyond the unprivileged attacker's control. The attacker cannot independently cause region unregistration. PR:L - An unprivileged local user with DRM device access (e.g., /dev/dri/renderD128, commonly accessible to video group users) can allocate GPU buffers that hold cgroup charge references, setting up the UAF condition exploitable when device removal occurs. UI:N - No user interaction is required. The attacker's process holds GPU allocations, and the UAF triggers automatically when the device is removed and cleanup runs. S:U - The vulnerability stays within the kernel's security authority. There is no crossing of a security boundary such as VM escape or IOMMU bypass. C:H - The UAF dereferences the parent pointer chain in freed page_counter structures, reading from freed/reallocated memory. An attacker who heap-sprays the freed kmalloc-512 slot can leak kernel data through the pointer-following behavior. I:H - The page_counter_uncharge performs atomic_long_sub_return on freed memory at a known offset, providing a controlled write primitive. Following the parent chain can cause writes at multiple attacker-influenced locations via heap spray. A:H - The KASAN report confirms a kernel crash (slab-use-after-free). The write to freed memory causes a kernel oops that crashes the system.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | b168ed458ddecc176f3b9a1f4bcd83d7a4541c14 to < d3081353acaa6a638dcf75726066ea556a2de8d5 (affected · git)b168ed458ddecc176f3b9a1f4bcd83d7a4541c14 to < 99a2ef500906138ba58093b9893972a5c303c734 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.14 (affected)0 to < 6.14 (unaffected · semver)6.18.10 through 6.18.* (unaffected · semver)6.19 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
cgroup/dmem: avoid pool UAF
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7d34d3d05c2f1362aefb44860af4a09fccde2ccce4ac8b036920a43fa4f571b3
- Ingested
- 23 Sep 2026, 09:05:46 UTC
- Source record
- Official CVE record