{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-142845",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.332Z",
        "datePublished": "2026-12-03T03:20:54.772Z",
        "dateUpdated": "2026-12-03T03:20:54.772Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-03T03:20:54.772Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/list_lru: don't copy stale shrinker id from non-memcg-aware shrinkers\n\nWith cgroup.memory=nokmem, shrinker_memcg_alloc() fails with -ENOSYS for\nshrinkers without SHRINKER_NONSLAB, and shrinker_alloc() falls back to a\nnon-memcg-aware shrinker.  On this fallback path, shrinker->id is never\nassigned and keeps 0 from kzalloc(), which is a valid id belonging to\nwhichever memcg-aware shrinker registers first.\n\n__list_lru_init() copies shrinker->id unconditionally, so every list_lru\nbacked by such a fallback shrinker (thp-deferred_split, zswap-shrinker,\nworkingset shadow nodes, superblock lrus, ...) ends up with\nlru->shrinker_id == 0 instead of -1.\n\nUnder nokmem the list_lru collapses to the shared per-node lists, but\n__list_lru_add() still calls set_shrinker_bit() against the memcg of\nthe added object.  Most list_lru users are unaffected because their\nobjects resolve to a NULL memcg without kmem accounting, but the THP\ndeferred split queue holds user folios, which are charged regardless of\nnokmem.  On a system where no SHRINKER_NONSLAB shrinker registers,\nshrinker_nr_max stays 0 and every memcg's shrinker_info has map_nr_max\n== 0, so the first folio added by khugepaged triggers on every boot:\n\n  WARNING: mm/shrinker.c:212 at set_shrinker_bit+0x99/0xa0\n\nOn systems where a SHRINKER_NONSLAB shrinker (btrfs, xfs) did register and\nexpand the maps, there is no warning; instead bit 0 is set spuriously for\nan unrelated shrinker.\n\nshrinker->id is only meaningful while SHRINKER_MEMCG_AWARE is set, and all\nreaders inside mm/shrinker.c already check the flag before using the id. \nMake __list_lru_init() do the same and fall back to -1, so\nset_shrinker_bit() is never reached with a bogus id.  The stale\nshrinker->id itself is left as is; cleaning that up is a separate topic.\n\nVerified on a machine booting with cgroup.memory=nokmem and\nCONFIG_TRANSPARENT_HUGEPAGE=y: the warning fires once per boot from\nkhugepaged, disappears when nokmem is removed from the command line, and\nno longer triggers with this fix applied and nokmem set."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "mm/list_lru.c"
                    ],
                    "versions": [
                        {
                            "version": "fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67",
                            "lessThan": "83584cc1f14d9102b612529fd26182f050f2cfad",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "fafaeceb89a5e2e856ff04c2cacb6cae4a2ecb67",
                            "lessThan": "6a100811c7c5fa39d452ff2e380bd14efbc0208e",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "mm/list_lru.c"
                    ],
                    "versions": [
                        {
                            "version": "7.2",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "7.2",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "7.2",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "7.2",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/83584cc1f14d9102b612529fd26182f050f2cfad"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6a100811c7c5fa39d452ff2e380bd14efbc0208e"
                }
            ],
            "title": "mm/list_lru: don't copy stale shrinker id from non-memcg-aware shrinkers",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}