# CVE-2026-99910: mm: multi-gen LRU: fix NULL lruvec->pgdat deref with memcg disabled on cmdline

- Severity: not scored yet
- 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.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-11-30T13:18:11.817Z
- Modified: 2026-11-30T14:20:26.827Z
- Assigned by: Linux

## Description

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

mm: multi-gen LRU: fix NULL lruvec->pgdat deref with memcg disabled on cmdline

When CONFIG_MEMCG=y, lruvec_pgdat() returns lruvec->pgdat, which for the
per-node pgdat->__lruvec is left NULL by lruvec_init() and only filled in
lazily by mem_cgroup_lruvec(). Normally that happens early, e.g. on the
first folio_add_lru().

With cgroup_disable=memory, lru_gen_shrink_node() passes &pgdat->__lruvec
directly to shrink_one(). If direct reclaim runs before anything has
called mem_cgroup_lruvec() for the node, which can happen during early
boot under memory pressure (e.g. a kdump kernel), get_swappiness() ends
up dereferencing a NULL pgdat:

  Unable to handle kernel NULL pointer dereference at virtual address 0000000000005040
  pc : get_swappiness+0x68/0xb0
  lr : try_to_shrink_lruvec+0x54/0x2c0
  Call trace:
   get_swappiness+0x68/0xb0 (P)
   try_to_shrink_lruvec+0x54/0x2c0
   shrink_one+0x8c/0x240
   shrink_node+0xc6c/0xe08
   do_try_to_free_pages+0xdc/0x570
   try_to_free_pages+0x124/0x278
   __alloc_frozen_pages_noprof+0x6e8/0xf78
   alloc_pages_mpol+0xc4/0x1c0
   alloc_frozen_pages_noprof+0x54/0xe8
   alloc_pages_noprof+0x1c/0x40
   atomic_pool_expand+0x98/0x300
   __dma_atomic_pool_init+0x58/0xd8
   dma_atomic_pool_init+0x154/0x170
   do_one_initcall+0x64/0x350
   kernel_init_freeable+0x214/0x430
   kernel_init+0x2c/0x208
   ret_from_fork+0x10/0x20

The classic LRU path and MGLRU before per-node lru_gen_folio lists
obtained the lruvec through mem_cgroup_lruvec(), which sets
lruvec->pgdat.

The above was hit on an arm64 kdump kernel (6.18-based) booted with
cgroup_disable=memory nr_cpus=4. It also reproduces on mainline on an
arm64 VM with CONFIG_ARM64_64K_PAGES=y, CONFIG_MEMCG=y,
CONFIG_LRU_GEN_ENABLED=y and:

  mem=160M nr_cpus=4 coherent_pool=512M cgroup_disable=memory

These options only serve to force direct reclaim early in boot; with
160M the boot eventually ends in OOM regardless. On mainline the first
LRU reclaim happens while unpacking the initramfs, and faults the same
way:

  Unable to handle kernel NULL pointer dereference at virtual address 0000000000005040
  pc : get_swappiness+0xd4/0x150
  Call trace:
   get_swappiness+0xd4/0x150 (P)
   try_to_shrink_lruvec+0x44/0x2b8
   shrink_one+0x80/0x1a0
   shrink_node+0xd98/0xea8
   do_try_to_free_pages+0xf4/0x4b0
   try_to_free_pages+0x110/0x360
   __alloc_frozen_pages_noprof+0x8b0/0x1718
   ...
   __filemap_get_folio_mpol+0x2ac/0x548
   simple_write_begin+0x44/0xf8
   page_symlink+0x178/0x198
   ...
   do_populate_rootfs+0x13c/0x200

(As written by CVE List.)

## Affected

- Linux Linux: from e4dde56cd208674ce899b47589f263499e5b8cdc before 355ddf1882b6d170d1ec6d7fb069f280cc6f112c; from e4dde56cd208674ce899b47589f263499e5b8cdc before 13bd3aff7abfb3434dbd1592ebab6716acb02a35; from e4dde56cd208674ce899b47589f263499e5b8cdc before 482a6e8ab6ae8f719a204966688daecdbcd6ff70; from e4dde56cd208674ce899b47589f263499e5b8cdc before 27afd2719525a4bf9cd36e874e229506736d0262; from e4dde56cd208674ce899b47589f263499e5b8cdc before 183895979c441e52dbd651b388553b09eaa35cfa; 6.3 (not affected: before 6.3; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/355ddf1882b6d170d1ec6d7fb069f280cc6f112c>
- <https://git.kernel.org/stable/c/13bd3aff7abfb3434dbd1592ebab6716acb02a35>
- <https://git.kernel.org/stable/c/482a6e8ab6ae8f719a204966688daecdbcd6ff70>
- <https://git.kernel.org/stable/c/27afd2719525a4bf9cd36e874e229506736d0262>
- <https://git.kernel.org/stable/c/183895979c441e52dbd651b388553b09eaa35cfa>

## Sources

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

---

Page: https://cve.day/CVE-2026-99910 · Whole record: https://cve.day/CVE-2026-99910.json · Rebuilt by cve.day 2026-11-30T14:33:30.540Z
