{"api_version":"1","generated_at":"2026-12-03T05:14:26+00:00","cve":"CVE-2026-142840","urls":{"html":"https://cve.report/CVE-2026-142840","api":"https://cve.report/api/cve/CVE-2026-142840.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142840","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142840"},"summary":{"title":"mm/zswap: publish the initial pool with list_add_rcu()","description":"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().","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:20","updated_at":"2026-12-03 04:18:20"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/be83045ebb7d2dbda4657e837d6c418d200ace39","name":"https://git.kernel.org/stable/c/be83045ebb7d2dbda4657e837d6c418d200ace39","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41","name":"https://git.kernel.org/stable/c/1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/18223e4783fe08229e489b766c13d5abbd648b2a","name":"https://git.kernel.org/stable/c/18223e4783fe08229e489b766c13d5abbd648b2a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c1dd5e24a82d19bff8eef50ba8205d4776584aff","name":"https://git.kernel.org/stable/c/c1dd5e24a82d19bff8eef50ba8205d4776584aff","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142840","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142840","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 91cdcd8d624bfdf05e8db9d572759516f3c786b8 1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 91cdcd8d624bfdf05e8db9d572759516f3c786b8 18223e4783fe08229e489b766c13d5abbd648b2a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 91cdcd8d624bfdf05e8db9d572759516f3c786b8 be83045ebb7d2dbda4657e837d6c418d200ace39 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 91cdcd8d624bfdf05e8db9d572759516f3c786b8 c1dd5e24a82d19bff8eef50ba8205d4776584aff git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.10","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.10 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/zswap.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41","status":"affected","version":"91cdcd8d624bfdf05e8db9d572759516f3c786b8","versionType":"git"},{"lessThan":"18223e4783fe08229e489b766c13d5abbd648b2a","status":"affected","version":"91cdcd8d624bfdf05e8db9d572759516f3c786b8","versionType":"git"},{"lessThan":"be83045ebb7d2dbda4657e837d6c418d200ace39","status":"affected","version":"91cdcd8d624bfdf05e8db9d572759516f3c786b8","versionType":"git"},{"lessThan":"c1dd5e24a82d19bff8eef50ba8205d4776584aff","status":"affected","version":"91cdcd8d624bfdf05e8db9d572759516f3c786b8","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["mm/zswap.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.10"},{"lessThan":"6.10","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"6.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"6.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"6.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.10","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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()."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:20:52.087Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41"},{"url":"https://git.kernel.org/stable/c/18223e4783fe08229e489b766c13d5abbd648b2a"},{"url":"https://git.kernel.org/stable/c/be83045ebb7d2dbda4657e837d6c418d200ace39"},{"url":"https://git.kernel.org/stable/c/c1dd5e24a82d19bff8eef50ba8205d4776584aff"}],"title":"mm/zswap: publish the initial pool with list_add_rcu()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142840","datePublished":"2026-12-03T03:20:52.087Z","dateReserved":"2026-12-03T03:10:28.332Z","dateUpdated":"2026-12-03T03:20:52.087Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:20","lastModifiedDate":"2026-12-03 04:18:20","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142840","Ordinal":"1","Title":"mm/zswap: publish the initial pool with list_add_rcu()","CVE":"CVE-2026-142840","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142840","Ordinal":"1","NoteData":"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().","Type":"Description","Title":"mm/zswap: publish the initial pool with list_add_rcu()"}]}}}