{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "91cdcd8d624bfdf05e8db9d572759516f3c786b8"
            },
            {
              "fixed": "1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41"
            },
            {
              "fixed": "18223e4783fe08229e489b766c13d5abbd648b2a"
            },
            {
              "fixed": "be83045ebb7d2dbda4657e837d6c418d200ace39"
            },
            {
              "fixed": "c1dd5e24a82d19bff8eef50ba8205d4776584aff"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.10.0"
            },
            {
              "fixed": "6.12.118"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142840.json"
  },
  "details": "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-\u003ezs_pool = zs_create_pool(); (1)\n    list_add() -\u003e __list_add():\n      WRITE_ONCE(zswap_pools.next,\n          \u0026pool-\u003elist);                (2)   zswap_total_pages():\n                                                pool = READ_ONCE(     (a)\n                                                    zswap_pools.next);\n                                                zs_get_total_pages(   (b)\n                                                    pool-\u003ezs_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().",
  "id": "CVE-2026-142840",
  "modified": "2026-12-03T04:45:28.600549901Z",
  "published": "2026-12-03T03:20:52.087Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/18223e4783fe08229e489b766c13d5abbd648b2a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/be83045ebb7d2dbda4657e837d6c418d200ace39"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c1dd5e24a82d19bff8eef50ba8205d4776584aff"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142840.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142840"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "mm/zswap: publish the initial pool with list_add_rcu()"
}