{"id":"CVE-2026-99910","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:20:26.827","lastModified":"2026-11-30T14:20:26.827","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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"}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["mm/vmscan.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"e4dde56cd208674ce899b47589f263499e5b8cdc","lessThan":"355ddf1882b6d170d1ec6d7fb069f280cc6f112c","versionType":"git","status":"affected"},{"version":"e4dde56cd208674ce899b47589f263499e5b8cdc","lessThan":"13bd3aff7abfb3434dbd1592ebab6716acb02a35","versionType":"git","status":"affected"},{"version":"e4dde56cd208674ce899b47589f263499e5b8cdc","lessThan":"482a6e8ab6ae8f719a204966688daecdbcd6ff70","versionType":"git","status":"affected"},{"version":"e4dde56cd208674ce899b47589f263499e5b8cdc","lessThan":"27afd2719525a4bf9cd36e874e229506736d0262","versionType":"git","status":"affected"},{"version":"e4dde56cd208674ce899b47589f263499e5b8cdc","lessThan":"183895979c441e52dbd651b388553b09eaa35cfa","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["mm/vmscan.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.3","status":"affected"},{"version":"0","lessThan":"6.3","versionType":"semver","status":"unaffected"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/13bd3aff7abfb3434dbd1592ebab6716acb02a35","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/183895979c441e52dbd651b388553b09eaa35cfa","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/27afd2719525a4bf9cd36e874e229506736d0262","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/355ddf1882b6d170d1ec6d7fb069f280cc6f112c","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/482a6e8ab6ae8f719a204966688daecdbcd6ff70","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}