CVE-2026-142840

Source
https://cve.org/CVERecord?id=CVE-2026-142840
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142840.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-142840
Downstream
Published
2026-12-03T03:20:52Z
Modified
2026-12-03T05:00:52Z
Summary
mm/zswap: publish the initial pool with list_add_rcu()
Details

In the Linux kernel, the following vulnerability has been resolved:

mm/zswap: publish the initial pool with list_add_rcu()

zswap_setup() publishes the pool on the zswap_pools list with a plain list_add(), but the list is walked by concurrent RCU readers holding nothing but rcu_read_lock() through zswap_total_pages(), e.g. /proc/meminfo and the shrinker count path.

CPU 0 (writer)                          CPU 1 (reader)
--------------                          --------------
zswap_pool_create():
  pool->zs_pool = zs_create_pool(); (1)
list_add() -> __list_add():
  WRITE_ONCE(zswap_pools.next,
      &pool->list);                (2)   zswap_total_pages():
                                            pool = READ_ONCE(     (a)
                                                zswap_pools.next);
                                            zs_get_total_pages(   (b)
                                                pool->zs_pool);

If (2) becomes visible to CPU 1 before (1), CPU 1 finds the pool at (a) but dereferences a wild pointer at (b). Publish the node with list_add_rcu().

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142840.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
91cdcd8d624bfdf05e8db9d572759516f3c786b8
Fixed
1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41
Fixed
18223e4783fe08229e489b766c13d5abbd648b2a
Fixed
be83045ebb7d2dbda4657e837d6c418d200ace39
Fixed
c1dd5e24a82d19bff8eef50ba8205d4776584aff

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142840.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142840.json"