FKIE_CVE-2026-99697
Vulnerability from fkie_nvd - Published: 2026-11-20 06:18 - Updated: 2026-11-23 08:18
Severity
Summary
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---
References
Impacted products
| Vendor | Product | Version |
|---|
{
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"mm/memcontrol.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "16062b71048d8ef85ca6a99d5ef26f0143d0e0c7",
"status": "affected",
"version": "e4dde56cd208674ce899b47589f263499e5b8cdc",
"versionType": "git"
},
{
"lessThan": "a44855f25821082e384503abf01a45a5c65a80de",
"status": "affected",
"version": "e4dde56cd208674ce899b47589f263499e5b8cdc",
"versionType": "git"
},
{
"lessThan": "301ac490daf619b8affe12b07e2d68c99adcda79",
"status": "affected",
"version": "e4dde56cd208674ce899b47589f263499e5b8cdc",
"versionType": "git"
},
{
"lessThan": "b558ac673e65b4f302f105a0d9f79fb7cf012330",
"status": "affected",
"version": "e4dde56cd208674ce899b47589f263499e5b8cdc",
"versionType": "git"
},
{
"lessThan": "dd94d8c7660a60dbfcd425e0d10120de6d02a7bd",
"status": "affected",
"version": "e4dde56cd208674ce899b47589f263499e5b8cdc",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"mm/memcontrol.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "6.3"
},
{
"lessThan": "6.3",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"version": "6.6.163",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.118",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.64",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.3.*",
"status": "unaffected",
"version": "7.3.5",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.4-rc2",
"versionType": "original_commit_for_fix"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm: memcontrol: fix NULL pointer deref and UAF from high_work_func() on dying memcg\n\nWhen memory.high is exceeded in non-task context, try_charge_memcg()\nschedules memcg-\u003ehigh_work without taking a reference on the memcg, and\nhigh_work_func() invokes reclaim_high() without pinning the memcg.\n\nWith obj_cgroup reparenting, introduced in commit bf4f059954dc (\"mm:\nmemcg/slab: obj_cgroup API\"), objects charged to a child memcg are\nreparented to its parent in mem_cgroup_css_offline() instead of holding a\nreference on the child until uncharged. Subsequent uncharges of those\nobjects go to the parent, which can leave the child\u0027s memory use\npermanently above its high limit, so any later charge on the offlined\nmemcg in non-task context schedules high_work. This was later widened\nfrom kernel memory to LRU folios when commit f1cf8d2f36dc (\"mm:\nmemcontrol: eliminate the problem of dying memory cgroup for LRU folios\")\nconverted LRU folios to use obj_cgroup reparenting.\n\ncancel_work_sync(\u0026memcg-\u003ehigh_work) only runs at the end of teardown in\nmem_cgroup_css_free(), so high_work_func() can start or still be running\nreclaim_high() after mem_cgroup_css_released() or shrink_many() has called\nlru_gen_release_memcg() and unhashed lruvec-\u003elrugen.list. If reclaim\ntries to rotate the memcg, lru_gen_rotate_memcg() dereferences a NULL\npprev pointer. This issue is specific to MGLRU and was introduced with\nthe memcg LRU in commit e4dde56cd208 (\"mm: multi-gen LRU: per-node\nlru_gen_folio lists\").\n\nWith either traditional LRU or MGLRU, css_free_rwork_fn() calls\ncss_rstat_exit() which frees per-CPU rstat data before calling\nmem_cgroup_css_free(). If reclaim_high() is still running, rstat updates\nvia mod_lruvec_state() -\u003e __css_rstat_updated() cause a use-after-free on\nthe per-CPU rstat data. This was introduced when commit 5da3bfa029d6\n(\"cgroup: use separate rstat trees for each subsystem\") moved\ncss_rstat_exit() ahead of ss-\u003ecss_free().\n\nFix both problems by acquiring a reference with css_tryget_online() in\nhigh_work_func() before calling reclaim_high(), and by resetting\nmemory.high and swap.high to PAGE_COUNTER_MAX in mem_cgroup_css_offline()\nso that charges via references on an offlined memcg do not trigger\nhigh_work on the dead child and skip checking live ancestors in\ntry_charge_memcg().\n\nAcquiring the reference in high_work_func() rather than before scheduling\nhigh_work is safe because mem_cgroup_css_free() calls irq_work_sync() and\ncancel_work_sync() which cancels pending work and waits for an already\nrunning high_work_func() to complete before mem_cgroup_free() frees the\nmemcg. css_tryget_online() uses percpu_ref_tryget_live() and is safe to\ncall after percpu_ref_exit() before the cgroup is freed unlike\ncss_tryget().\n\nOops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI\nKASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]\nCPU: 1 UID: 0 PID: 27 Comm: kworker/1:0 Tainted: G B W 7.3.0-rc5-g2bba28e98578 #284 PREEMPT(full)\nTainted: [B]=BAD_PAGE, [W]=WARN \u003c-- Taint from lru_gen_rotate_memcg() VM_WARN_ON_ONCE\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-debian-1.17.0-1 04/01/2014\nWorkqueue: events high_work_func\nRIP: 0010:lru_gen_rotate_memcg+0x1a3/0xe90\nCall Trace:\n \u003cTASK\u003e\n ? read_ctrl_pos+0x22f/0x3f0\n shrink_lruvec+0x16cb/0x1b80\n ? ret_from_fork_asm+0x1a/0x30\n ? lapic_next_event+0x15/0x20\n ? clockevents_program_event+0x2bb/0x6f0\n ? lapic_next_event+0x15/0x20\n ? __pfx_shrink_lruvec+0x10/0x10\n ? __pfx_clockevents_program_event+0x10/0x10\n ? _raw_spin_lock+0x84/0xe0\n ? __pfx__raw_spin_lock+0x10/0x10\n ? kasan_save_stack+0x30/0x50\n ? psi_group_change+0x381/0x740\n ? __pfx_sched_clock_cpu+0x10/0x10\n ? save_fpregs_to_fpstate+0xc4/0x2c0\n ? finish_task_switch.isra.0+0x1de/0xac0\n ? __schedule+0xf62/0x42c0\n ? __pfx___schedule+0x10/0x10\n ? __pfx___irq_work_queue_lo\n---truncated---"
}
],
"id": "CVE-2026-99697",
"lastModified": "2026-11-23T08:18:10.897",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 7.8,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 1.8,
"impactScore": 5.9,
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"type": "Secondary"
}
]
},
"published": "2026-11-20T06:18:05.143",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/16062b71048d8ef85ca6a99d5ef26f0143d0e0c7"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/301ac490daf619b8affe12b07e2d68c99adcda79"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/a44855f25821082e384503abf01a45a5c65a80de"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/b558ac673e65b4f302f105a0d9f79fb7cf012330"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/dd94d8c7660a60dbfcd425e0d10120de6d02a7bd"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Received"
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…