# CVE-2026-98226: mm, swap: fix SWAP\_USAGE\_OFFLIST\_BIT collision with real usage count

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-06T08:45:01.370Z
- **Modified:** 2026-10-19T10:18:23.330Z

## Who should check

- Anyone running Linux \>= b228386cf237e659cdf5d8037a19db0b0a06f6b5, \< 0a41a46859df0d2bd7ed127197aac7c7389c00ed; \>= b228386cf237e659cdf5d8037a19db0b0a06f6b5, \< 7c0d0d6de46076b43a2acaf1026b6648f8434c39; \>= b228386cf237e659cdf5d8037a19db0b0a06f6b5, \< 12e9ac7bc5b254048f886bf421e3a15491106c1f
- Anyone running Linux 6.14

## Description

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

mm, swap: fix SWAP\_USAGE\_OFFLIST\_BIT collision with real usage count

SWAP\_USAGE\_OFFLIST\_BIT is embedded in the si-\>inuse\_pages usage counter,
and is meant to sit above any value that counter can reach.  However, it
is defined from BITS\_PER\_TYPE(atomic\_t), so it is bit 30.  On a system
with 4 KiB pages the flag collides with the usage count once that count
reaches 4 TiB.

swap\_usage\_in\_pages() masks bit 30 out, so whenever the real count has
that bit set, every caller of it reads 4 TiB low:

\* /proc/swaps understates Used by 4 TiB.

\* A raw count of exactly 2^30 masks to zero, so try\_to\_unuse() takes its
  "if (!swap\_usage\_in\_pages(si)) goto success;" early exit and swapoff
  tears the device down while pages are still swapped out. Nothing in
  the rest of swapoff aborts the teardown, so those pages are lost.

Independently of swapoff, the collision also corrupts the counter and the
plist.  On a device in normal use, a free that leaves bit 30 set in the
count makes swap\_usage\_sub() see the flag where there is only count, and
call add\_to\_avail\_list().  It clears the bit with
fetch\_and(~SWAP\_USAGE\_OFFLIST\_BIT), leaving the stored count 4 TiB below
the real one, and calls plist\_add() on a device that is already listed,
tripping the WARN\_ON(!plist\_node\_empty(node)) in plist\_add() and linking
the node a second time.

Change the definition of SWAP\_USAGE\_OFFLIST\_BIT to be based on
atomic\_long\_t instead.  Note that the usage counter field itself is of
this same type, so it is still a valid bit.

## Affected and fixed versions

- Linux: \>= b228386cf237e659cdf5d8037a19db0b0a06f6b5, \< 0a41a46859df0d2bd7ed127197aac7c7389c00ed; \>= b228386cf237e659cdf5d8037a19db0b0a06f6b5, \< 7c0d0d6de46076b43a2acaf1026b6648f8434c39; \>= b228386cf237e659cdf5d8037a19db0b0a06f6b5, \< 12e9ac7bc5b254048f886bf421e3a15491106c1f (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- Upgrade Linux to 12e9ac7bc5b254048f886bf421e3a15491106c1f or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-98226.md
Affected: Linux >= b228386cf237e659cdf5d8037a19db0b0a06f6b5, < 0a41a46859df0d2bd7ed127197aac7c7389c00ed; >= b228386cf237e659cdf5d8037a19db0b0a06f6b5, < 7c0d0d6de46076b43a2acaf1026b6648f8434c39; >= b228386cf237e659cdf5d8037a19db0b0a06f6b5, < 12e9ac7bc5b254048f886bf421e3a15491106c1f; Linux 6.14
Fixed in: Linux 0a41a46859df0d2bd7ed127197aac7c7389c00ed, Linux 7c0d0d6de46076b43a2acaf1026b6648f8434c39, Linux 12e9ac7bc5b254048f886bf421e3a15491106c1f

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-98226 being exploited?

There is no confirmed exploitation: CVE-2026-98226 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

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

It has no CVSS score yet. Unknown.

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

Linux \>= b228386cf237e659cdf5d8037a19db0b0a06f6b5, \< 0a41a46859df0d2bd7ed127197aac7c7389c00ed; \>= b228386cf237e659cdf5d8037a19db0b0a06f6b5, \< 7c0d0d6de46076b43a2acaf1026b6648f8434c39; \>= b228386cf237e659cdf5d8037a19db0b0a06f6b5, \< 12e9ac7bc5b254048f886bf421e3a15491106c1f; Linux 6.14.

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

Yes. Fixed in Linux 0a41a46859df0d2bd7ed127197aac7c7389c00ed, Linux 7c0d0d6de46076b43a2acaf1026b6648f8434c39, Linux 12e9ac7bc5b254048f886bf421e3a15491106c1f. Upgrade Linux to 12e9ac7bc5b254048f886bf421e3a15491106c1f or later.

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

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/0a41a46859df0d2bd7ed127197aac7c7389c00ed>
- other: <https://git.kernel.org/stable/c/7c0d0d6de46076b43a2acaf1026b6648f8434c39>
- other: <https://git.kernel.org/stable/c/12e9ac7bc5b254048f886bf421e3a15491106c1f>

## 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-98226>

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