Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99697

published high CVSS 3.1 · 7.8

mm: memcontrol: fix NULL pointer deref and UAF from high_work_func() on dying memcg

Published
20 Nov 2026, 05:50:40 UTC
Updated
23 Nov 2026, 08:06:13 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxe4dde56cd208674ce899b47589f263499e5b8cdc to < 16062b71048d8ef85ca6a99d5ef26f0143d0e0c7 · e4dde56cd208674ce899b47589f263499e5b8cdc to < a44855f25821082e384503abf01a45a5c65a80de · e4dde56cd208674ce899b47589f263499e5b8cdc to < 301ac490daf619b8affe12b07e2d68c99adcda79 · e4dde56cd208674ce899b47589f263499e5b8cdc to < b558ac673e65b4f302f105a0d9f79fb7cf012330 · e4dde56cd208674ce899b47589f263499e5b8cdc to < dd94d8c7660a60dbfcd425e0d10120de6d02a7bd · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.3 (affected) · 0 to < 6.3 (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc2 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; Pending Fix Not stated Amazon Linux assessment
Debian trixie linux Advisory build 6.12.118-1 DSA-6652-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develaarch64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develppc64le Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devels390x Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
Show 13 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed kernel-develx86_64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosaarch64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosppc64le Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macross390x Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosx86_64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceaarch64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceppc64le Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sources390x Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourcex86_64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillaaarch64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillappc64le Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillas390x Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillax86_64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1

Description

In the Linux kernel, the following vulnerability has been resolved: mm: memcontrol: fix NULL pointer deref and UAF from high_work_func() on dying memcg When memory.high is exceeded in non-task context, try_charge_memcg() schedules memcg->high_work without taking a reference on the memcg, and high_work_func() invokes reclaim_high() without pinning the memcg. With obj_cgroup reparenting, introduced in commit bf4f059954dc ("mm: memcg/slab: obj_cgroup API"), objects charged to a child memcg are reparented to its parent in mem_cgroup_css_offline() instead of holding a reference on the child until uncharged. Subsequent uncharges of those objects go to the parent, which can leave the child's memory use permanently above its high limit, so any later charge on the offlined memcg in non-task context schedules high_work. This was later widened from kernel memory to LRU folios when commit f1cf8d2f36dc ("mm: memcontrol: eliminate the problem of dying memory cgroup for LRU folios") converted LRU folios to use obj_cgroup reparenting. cancel_work_sync(&memcg->high_work) only runs at the end of teardown in mem_cgroup_css_free(), so high_work_func() can start or still be running reclaim_high() after mem_cgroup_css_released() or shrink_many() has called lru_gen_release_memcg() and unhashed lruvec->lrugen.list. If reclaim tries to rotate the memcg, lru_gen_rotate_memcg() dereferences a NULL pprev pointer. This issue is specific to MGLRU and was introduced with the memcg LRU in commit e4dde56cd208 ("mm: multi-gen LRU: per-node lru_gen_folio lists"). With either traditional LRU or MGLRU, css_free_rwork_fn() calls css_rstat_exit() which frees per-CPU rstat data before calling mem_cgroup_css_free(). If reclaim_high() is still running, rstat updates via mod_lruvec_state() -> __css_rstat_updated() cause a use-after-free on the per-CPU rstat data. This was introduced when commit 5da3bfa029d6 ("cgroup: use separate rstat trees for each subsystem") moved css_rstat_exit() ahead of ss->css_free(). Fix both problems by acquiring a reference with css_tryget_online() in high_work_func() before calling reclaim_high(), and by resetting memory.high and swap.high to PAGE_COUNTER_MAX in mem_cgroup_css_offline() so that charges via references on an offlined memcg do not trigger high_work on the dead child and skip checking live ancestors in try_charge_memcg(). Acquiring the reference in high_work_func() rather than before scheduling high_work is safe because mem_cgroup_css_free() calls irq_work_sync() and cancel_work_sync() which cancels pending work and waits for an already running high_work_func() to complete before mem_cgroup_free() frees the memcg. css_tryget_online() uses percpu_ref_tryget_live() and is safe to call after percpu_ref_exit() before the cgroup is freed unlike css_tryget(). Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 UID: 0 PID: 27 Comm: kworker/1:0 Tainted: G B W 7.3.0-rc5-g2bba28e98578 #284 PREEMPT(full) Tainted: [B]=BAD_PAGE, [W]=WARN <-- Taint from lru_gen_rotate_memcg() VM_WARN_ON_ONCE Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-debian-1.17.0-1 04/01/2014 Workqueue: events high_work_func RIP: 0010:lru_gen_rotate_memcg+0x1a3/0xe90 Call Trace: <TASK> ? read_ctrl_pos+0x22f/0x3f0 shrink_lruvec+0x16cb/0x1b80 ? ret_from_fork_asm+0x1a/0x30 ? lapic_next_event+0x15/0x20 ? clockevents_program_event+0x2bb/0x6f0 ? lapic_next_event+0x15/0x20 ? __pfx_shrink_lruvec+0x10/0x10 ? __pfx_clockevents_program_event+0x10/0x10 ? _raw_spin_lock+0x84/0xe0 ? __pfx__raw_spin_lock+0x10/0x10 ? kasan_save_stack+0x30/0x50 ? psi_group_change+0x381/0x740 ? __pfx_sched_clock_cpu+0x10/0x10 ? save_fpregs_to_fpstate+0xc4/0x2c0 ? finish_task_switch.isra.0+0x1de/0xac0 ? __schedule+0xf62/0x42c0 ? __pfx___schedule+0x10/0x10 ? __pfx___irq_work_queue_lo ---truncated---

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

2

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - try_charge_memcg() queues memcg->high_work when a charge exceeds memory.high and !in_task(). A local user reaches that from UDP receive softirq: __udp_queue_rcv_skb -> __udp_enqueue_schedule_skb -> udp_rmem_schedule -> __sk_mem_schedule -> mem_cgroup_sk_charge on the socket's sk_memcg. Setting memory.high and rmdir are local cgroup writes; the datagram only causes the charge. AC:L - The attacker writes memory.high, charges past it, pins the css via mem_cgroup_sk_alloc(), and rmdirs so memcg_reparent_objcgs() leaves the child counter above high. A further datagram takes the !in_task() branch in try_charge_memcg() and queues high_work, while closing the socket drops the last ref. That races reclaim_high() with lru_gen_release_memcg() and css_rstat_exit(); the attacker starts both sides and can retry. PR:L - memory_high_write() and cgroup_mkdir() have no capable() check. memory.high is created mode 0644 as current_fsuid (cgroup_file_mode/cgroup_add_file), and cgroup_may_write() only tests MAY_WRITE on cgroup.procs. An unprivileged user who can write a delegated cgroup v2 directory, the usual user-session and container setup, can create the child, set memory.high, and remove it. UI:N - The attacker alone performs the mkdir, the memory.high write, the socket that pins sk_memcg, the datagram that charges in softirq, and the rmdir that starts teardown. S:U - The corrupted objects are the host memcg's css_rstat_cpu and lruvec->lrugen.list. high_work_func() and reclaim_high() run in that same host kernel. C:H - css_free_rwork_fn() frees css->rstat_cpu in css_rstat_exit() before mem_cgroup_css_free() calls cancel_work_sync(). Reclaim still inside high_work_func() reaches count_memcg_events() on the dying lruvec, which calls memcg_rstat_updated() -> __css_rstat_updated() and reads the freed css_rstat_cpu.lnode; reuse of that percpu slot lets a later flush follow rstatc->owner. I:H - __css_rstat_updated() try_cmpxchg's lnode.next in the freed percpu css_rstat_cpu and llist_add's that node onto the memory controller's rstat list, writing reclaimed percpu memory and leaving a dangling css for css_process_update_tree() to walk. A:H - The reported oops is a NULL pprev deref in lru_gen_rotate_memcg()'s hlist_nulls_del_rcu() after lru_gen_release_memcg() unhashed lruvec->lrugen.list, on the high_work_func -> reclaim_high -> shrink_lruvec path. That general-protection fault kills the kernel; the rstat use-after-free can fault as well.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux e4dde56cd208674ce899b47589f263499e5b8cdc to < 16062b71048d8ef85ca6a99d5ef26f0143d0e0c7 (affected · git)e4dde56cd208674ce899b47589f263499e5b8cdc to < a44855f25821082e384503abf01a45a5c65a80de (affected · git)e4dde56cd208674ce899b47589f263499e5b8cdc to < 301ac490daf619b8affe12b07e2d68c99adcda79 (affected · git)e4dde56cd208674ce899b47589f263499e5b8cdc to < b558ac673e65b4f302f105a0d9f79fb7cf012330 (affected · git)e4dde56cd208674ce899b47589f263499e5b8cdc to < dd94d8c7660a60dbfcd425e0d10120de6d02a7bd (affected · git)Default: unaffected Linux · cna
Linux Linux 6.3 (affected)0 to < 6.3 (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

5

Provider assertions

1

Linux · cna

mm: memcontrol: fix NULL pointer deref and UAF from high_work_func() on dying memcg

Provenance

Schema
5.2
Searchable
yes
Content hash
bb4d9b04e81c0623bc407793e910abd47f891a57ae72995c4bd93e5470dcdebb
Ingested
23 Nov 2026, 14:37:13 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected