# CVE-2026-142840: mm/zswap: publish the initial pool with list\_add\_rcu()

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:20:52.087Z
- **Modified:** 2026-12-03T04:18:20.250Z

## Who should check

- Anyone running Linux \>= 91cdcd8d624bfdf05e8db9d572759516f3c786b8, \< 1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41; \>= 91cdcd8d624bfdf05e8db9d572759516f3c786b8, \< 18223e4783fe08229e489b766c13d5abbd648b2a; \>= 91cdcd8d624bfdf05e8db9d572759516f3c786b8, \< be83045ebb7d2dbda4657e837d6c418d200ace39; \>= 91cdcd8d624bfdf05e8db9d572759516f3c786b8, \< c1dd5e24a82d19bff8eef50ba8205d4776584aff
- Anyone running Linux 6.10

## Description

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().

## Affected and fixed versions

- Linux: \>= 91cdcd8d624bfdf05e8db9d572759516f3c786b8, \< 1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41; \>= 91cdcd8d624bfdf05e8db9d572759516f3c786b8, \< 18223e4783fe08229e489b766c13d5abbd648b2a; \>= 91cdcd8d624bfdf05e8db9d572759516f3c786b8, \< be83045ebb7d2dbda4657e837d6c418d200ace39; \>= 91cdcd8d624bfdf05e8db9d572759516f3c786b8, \< c1dd5e24a82d19bff8eef50ba8205d4776584aff (cvelist)
- Linux: 6.10 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142840. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142840.md
Affected: Linux >= 91cdcd8d624bfdf05e8db9d572759516f3c786b8, < 1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41; >= 91cdcd8d624bfdf05e8db9d572759516f3c786b8, < 18223e4783fe08229e489b766c13d5abbd648b2a; >= 91cdcd8d624bfdf05e8db9d572759516f3c786b8, < be83045ebb7d2dbda4657e837d6c418d200ace39; >= 91cdcd8d624bfdf05e8db9d…
Fixed in: Linux 1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41, Linux 18223e4783fe08229e489b766c13d5abbd648b2a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142840 being exploited?

There is no confirmed exploitation: CVE-2026-142840 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142840?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142840?

Linux \>= 91cdcd8d624bfdf05e8db9d572759516f3c786b8, \< 1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41; \>= 91cdcd8d624bfdf05e8db9d572759516f3c786b8, \< 18223e4783fe08229e489b766c13d5abbd648b2a; \>= 91cdcd8d624bfdf05e8db9d572759516f3c786b8, \< be83045ebb7d2dbda4657e837d6c418d200ace39; \>= 91cdcd8d624bfdf05e8db9d572759516f3c786b8, \< c1dd5e24a82d19bff8eef50ba8205d4776584aff; Linux 6.10.

### Is there a fix for CVE-2026-142840?

Yes. Fixed in Linux 1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41, Linux 18223e4783fe08229e489b766c13d5abbd648b2a. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-142840?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/1d69b96df396bb54e0ed6be9be7bff9bd7d9bb41>
- other: <https://git.kernel.org/stable/c/18223e4783fe08229e489b766c13d5abbd648b2a>
- other: <https://git.kernel.org/stable/c/be83045ebb7d2dbda4657e837d6c418d200ace39>
- other: <https://git.kernel.org/stable/c/c1dd5e24a82d19bff8eef50ba8205d4776584aff>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142840>

HTML: <https://flawdb.com/CVE-2026-142840> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142840>
