# CVE-2026-23195: cgroup/dmem: avoid pool UAF

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-02-14T16:27:21.621Z
- Modified: 2026-08-05T12:20:36.969Z
- Weaknesses: CWE-416
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from b168ed458ddecc176f3b9a1f4bcd83d7a4541c14 before d3081353acaa6a638dcf75726066ea556a2de8d5; from b168ed458ddecc176f3b9a1f4bcd83d7a4541c14 before 99a2ef500906138ba58093b9893972a5c303c734; 6.14 (not affected: before 6.14; from 6.18.10 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 6.14 before 6.18.10; 6.19

## Every score

- Linux: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/d3081353acaa6a638dcf75726066ea556a2de8d5> (patch)
- <https://git.kernel.org/stable/c/99a2ef500906138ba58093b9893972a5c303c734> (patch)

## Sources

- CVE List: [CVE-2026-23195](https://www.cve.org/CVERecord?id=CVE-2026-23195), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2026-23195](https://nvd.nist.gov/vuln/detail/CVE-2026-23195), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23195 · Whole record: https://cve.day/CVE-2026-23195.json · Rebuilt by cve.day 2026-11-25T22:59:13.915Z
