CVE-2026-98226
Last modified
CVE-2026-98226 is a vulnerability of currently unknown severity. 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.
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 Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= b228386cf237e659cdf5d8037a19db0b0a06f6b5, < 0a41a46859df0d2bd7ed127197aac7c7389c00ed; >= b228386cf237e659cdf5d8037a19db0b0a06f6b5, < 7c0d0d6de46076b43a2acaf1026b6648f8434c39; >= b228386cf237e659cdf5d8037a19db0b0a06f6b5, < 12e9ac7bc5b254048f886bf421e3a15491106c1f |
| Linux | Linux | 6.14 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-98226?
How severe is CVE-2026-98226?
How do I fix CVE-2026-98226?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-98220In the Linux kernel, the following vulnerability has been re…
- CVE-2026-98221In the Linux kernel, the following vulnerability has been re…
- CVE-2026-98222In the Linux kernel, the following vulnerability has been re…
- CVE-2026-98223In the Linux kernel, the following vulnerability has been re…
- CVE-2026-98224In the Linux kernel, the following vulnerability has been re…
- CVE-2026-98225In the Linux kernel, the following vulnerability has been re…
- CVE-2026-98227In the Linux kernel, the following vulnerability has been re…
- CVE-2026-98228In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-98229In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-98230In the Linux kernel, the following vulnerability has been re…7
- CVE-2026-98231In the Linux kernel, the following vulnerability has been re…
- CVE-2026-98232In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2026-98226?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
