{"id":"CVE-2026-142840","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T04:18:20.250","lastModified":"2026-12-03T04:18:20.250","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/zswap: publish the initial pool with list_add_rcu()\n\nzswap_setup() publishes the pool on the zswap_pools list with a plain\nlist_add(), but the list is walked by concurrent RCU readers holding\nnothing but rcu_read_lock() through zswap_total_pages(), e.g. \n/proc/meminfo and the shrinker count path.\n\n    CPU 0 (writer)                          CPU 1 (reader)\n    --------------                          --------------\n    zswap_pool_create():\n      pool->zs_pool = zs_create_pool(); (1)\n    list_add() -> __list_add():\n      WRITE_ONCE(zswap_pools.next,\n          &pool->list);                (2)   zswap_total_pages():\n                                                pool = READ_ONCE(     (a)\n                                                    zswap_pools.next);\n                                                zs_get_total_pages(   (b)\n                                                    pool->zs_pool);\n\nIf (2) becomes visible to CPU 1 before (1), CPU 1 finds the pool at (a)\nbut dereferences a wild pointer at (b).  Publish the node with\nlist_add_rcu()."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["mm/zswap.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"91cdcd8d624bfdf05e8db9d572759516f3c786b8","lessThan":"1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41","versionType":"git","status":"affected"},{"version":"91cdcd8d624bfdf05e8db9d572759516f3c786b8","lessThan":"18223e4783fe08229e489b766c13d5abbd648b2a","versionType":"git","status":"affected"},{"version":"91cdcd8d624bfdf05e8db9d572759516f3c786b8","lessThan":"be83045ebb7d2dbda4657e837d6c418d200ace39","versionType":"git","status":"affected"},{"version":"91cdcd8d624bfdf05e8db9d572759516f3c786b8","lessThan":"c1dd5e24a82d19bff8eef50ba8205d4776584aff","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["mm/zswap.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.10","status":"affected"},{"version":"0","lessThan":"6.10","versionType":"semver","status":"unaffected"},{"version":"6.12.118","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/18223e4783fe08229e489b766c13d5abbd648b2a","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/be83045ebb7d2dbda4657e837d6c418d200ace39","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/c1dd5e24a82d19bff8eef50ba8205d4776584aff","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}