{"id":"CVE-2026-99910","aliases":["CVE-2026-99910"],"related":[],"kind":"vulnerability","state":"published","title":"mm: multi-gen LRU: fix NULL lruvec->pgdat deref with memcg disabled on cmdline","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: multi-gen LRU: fix NULL lruvec->pgdat deref with memcg disabled on cmdline\n\nWhen CONFIG_MEMCG=y, lruvec_pgdat() returns lruvec->pgdat, which for the\nper-node pgdat->__lruvec is left NULL by lruvec_init() and only filled in\nlazily by mem_cgroup_lruvec(). Normally that happens early, e.g. on the\nfirst folio_add_lru().\n\nWith cgroup_disable=memory, lru_gen_shrink_node() passes &pgdat->__lruvec\ndirectly to shrink_one(). If direct reclaim runs before anything has\ncalled mem_cgroup_lruvec() for the node, which can happen during early\nboot under memory pressure (e.g. a kdump kernel), get_swappiness() ends\nup dereferencing a NULL pgdat:\n\n  Unable to handle kernel NULL pointer dereference at virtual address 0000000000005040\n  pc : get_swappiness+0x68/0xb0\n  lr : try_to_shrink_lruvec+0x54/0x2c0\n  Call trace:\n   get_swappiness+0x68/0xb0 (P)\n   try_to_shrink_lruvec+0x54/0x2c0\n   shrink_one+0x8c/0x240\n   shrink_node+0xc6c/0xe08\n   do_try_to_free_pages+0xdc/0x570\n   try_to_free_pages+0x124/0x278\n   __alloc_frozen_pages_noprof+0x6e8/0xf78\n   alloc_pages_mpol+0xc4/0x1c0\n   alloc_frozen_pages_noprof+0x54/0xe8\n   alloc_pages_noprof+0x1c/0x40\n   atomic_pool_expand+0x98/0x300\n   __dma_atomic_pool_init+0x58/0xd8\n   dma_atomic_pool_init+0x154/0x170\n   do_one_initcall+0x64/0x350\n   kernel_init_freeable+0x214/0x430\n   kernel_init+0x2c/0x208\n   ret_from_fork+0x10/0x20\n\nThe classic LRU path and MGLRU before per-node lru_gen_folio lists\nobtained the lruvec through mem_cgroup_lruvec(), which sets\nlruvec->pgdat.\n\nThe above was hit on an arm64 kdump kernel (6.18-based) booted with\ncgroup_disable=memory nr_cpus=4. It also reproduces on mainline on an\narm64 VM with CONFIG_ARM64_64K_PAGES=y, CONFIG_MEMCG=y,\nCONFIG_LRU_GEN_ENABLED=y and:\n\n  mem=160M nr_cpus=4 coherent_pool=512M cgroup_disable=memory\n\nThese options only serve to force direct reclaim early in boot; with\n160M the boot eventually ends in OOM regardless. On mainline the first\nLRU reclaim happens while unpacking the initramfs, and faults the same\nway:\n\n  Unable to handle kernel NULL pointer dereference at virtual address 0000000000005040\n  pc : get_swappiness+0xd4/0x150\n  Call trace:\n   get_swappiness+0xd4/0x150 (P)\n   try_to_shrink_lruvec+0x44/0x2b8\n   shrink_one+0x80/0x1a0\n   shrink_node+0xd98/0xea8\n   do_try_to_free_pages+0xf4/0x4b0\n   try_to_free_pages+0x110/0x360\n   __alloc_frozen_pages_noprof+0x8b0/0x1718\n   ...\n   __filemap_get_folio_mpol+0x2ac/0x548\n   simple_write_begin+0x44/0xf8\n   page_symlink+0x178/0x198\n   ...\n   do_populate_rootfs+0x13c/0x200","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: multi-gen LRU: fix NULL lruvec->pgdat deref with memcg disabled on cmdline\n\nWhen CONFIG_MEMCG=y, lruvec_pgdat() returns lruvec->pgdat, which for the\nper-node pgdat->__lruvec is left NULL by lruvec_init() and only filled in\nlazily by mem_cgroup_lruvec(). Normally that happens early, e.g. on the\nfirst folio_add_lru().\n\nWith cgroup_disable=memory, lru_gen_shrink_node() passes &pgdat->__lruvec\ndirectly to shrink_one(). If direct reclaim runs before anything has\ncalled mem_cgroup_lruvec() for the node, which can happen during early\nboot under memory pressure (e.g. a kdump kernel), get_swappiness() ends\nup dereferencing a NULL pgdat:\n\n  Unable to handle kernel NULL pointer dereference at virtual address 0000000000005040\n  pc : get_swappiness+0x68/0xb0\n  lr : try_to_shrink_lruvec+0x54/0x2c0\n  Call trace:\n   get_swappiness+0x68/0xb0 (P)\n   try_to_shrink_lruvec+0x54/0x2c0\n   shrink_one+0x8c/0x240\n   shrink_node+0xc6c/0xe08\n   do_try_to_free_pages+0xdc/0x570\n   try_to_free_pages+0x124/0x278\n   __alloc_frozen_pages_noprof+0x6e8/0xf78\n   alloc_pages_mpol+0xc4/0x1c0\n   alloc_frozen_pages_noprof+0x54/0xe8\n   alloc_pages_noprof+0x1c/0x40\n   atomic_pool_expand+0x98/0x300\n   __dma_atomic_pool_init+0x58/0xd8\n   dma_atomic_pool_init+0x154/0x170\n   do_one_initcall+0x64/0x350\n   kernel_init_freeable+0x214/0x430\n   kernel_init+0x2c/0x208\n   ret_from_fork+0x10/0x20\n\nThe classic LRU path and MGLRU before per-node lru_gen_folio lists\nobtained the lruvec through mem_cgroup_lruvec(), which sets\nlruvec->pgdat.\n\nThe above was hit on an arm64 kdump kernel (6.18-based) booted with\ncgroup_disable=memory nr_cpus=4. It also reproduces on mainline on an\narm64 VM with CONFIG_ARM64_64K_PAGES=y, CONFIG_MEMCG=y,\nCONFIG_LRU_GEN_ENABLED=y and:\n\n  mem=160M nr_cpus=4 coherent_pool=512M cgroup_disable=memory\n\nThese options only serve to force direct reclaim early in boot; with\n160M the boot eventually ends in OOM regardless. On mainline the first\nLRU reclaim happens while unpacking the initramfs, and faults the same\nway:\n\n  Unable to handle kernel NULL pointer dereference at virtual address 0000000000005040\n  pc : get_swappiness+0xd4/0x150\n  Call trace:\n   get_swappiness+0xd4/0x150 (P)\n   try_to_shrink_lruvec+0x44/0x2b8\n   shrink_one+0x80/0x1a0\n   shrink_node+0xd98/0xea8\n   do_try_to_free_pages+0xf4/0x4b0\n   try_to_free_pages+0x110/0x360\n   __alloc_frozen_pages_noprof+0x8b0/0x1718\n   ...\n   __filemap_get_folio_mpol+0x2ac/0x548\n   simple_write_begin+0x44/0xf8\n   page_symlink+0x178/0x198\n   ...\n   do_populate_rootfs+0x13c/0x200","source":"cvelist"}],"published":"2026-11-30T13:18:11.817Z","modified":"2026-11-30T14:20:26.827Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e4dde56cd208674ce899b47589f263499e5b8cdc","fixed":"355ddf1882b6d170d1ec6d7fb069f280cc6f112c","status":"affected"},{"type":"git","introduced":"e4dde56cd208674ce899b47589f263499e5b8cdc","fixed":"13bd3aff7abfb3434dbd1592ebab6716acb02a35","status":"affected"},{"type":"git","introduced":"e4dde56cd208674ce899b47589f263499e5b8cdc","fixed":"482a6e8ab6ae8f719a204966688daecdbcd6ff70","status":"affected"},{"type":"git","introduced":"e4dde56cd208674ce899b47589f263499e5b8cdc","fixed":"27afd2719525a4bf9cd36e874e229506736d0262","status":"affected"},{"type":"git","introduced":"e4dde56cd208674ce899b47589f263499e5b8cdc","fixed":"183895979c441e52dbd651b388553b09eaa35cfa","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.3","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/355ddf1882b6d170d1ec6d7fb069f280cc6f112c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13bd3aff7abfb3434dbd1592ebab6716acb02a35","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/482a6e8ab6ae8f719a204966688daecdbcd6ff70","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/27afd2719525a4bf9cd36e874e229506736d0262","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/183895979c441e52dbd651b388553b09eaa35cfa","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99910","url":"https://www.cve.org/CVERecord?id=CVE-2026-99910","licence":"CVE Terms of Use","modified":"2026-11-30T13:18:11.817Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99910","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99910","licence":"Public domain","modified":"2026-11-30T14:20:26.827Z"}],"updatedAt":"2026-11-30T14:33:30.540Z","epss":{"score":0.00309,"percentile":0.25604,"date":"2026-12-01T12:00:22.000Z"}}