VDB

CVE-2026-98226

CVE-2026-98226 PUBLISHED

mm, swap: fix SWAP_USAGE_OFFLIST_BIT collision with real usage count

Reported by linux · Published October 6, 2026

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.

EPSS 0.17% · 5.9th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
microvm-kernel6.18Amazon Linux1:6.18.54-121.166.amzn2023
kernel6.18-modules-extra-commonAmazon Linux1:6.18.54-121.166.amzn2023

Risk scores

EPSS Score
0.17%
5.9th percentile

Affected products

VendorProductVersions
LinuxLinuxb228386cf237e659cdf5d8037a19db0b0a06f6b5, b228386cf237e659cdf5d8037a19db0b0a06f6b5, b228386cf237e659cdf5d8037a19db0b0a06f6b5
LinuxLinux6.14, 0, 6.18.54
amazon:2023microvm-kernel6.180
amazon:2023kernel6.18-modules-extra-common0
linuxlinux_kernel6.14, 6.14, 6.14
amazon:2023kernel6.18-headers0
amazon:2023kernel6.180
amazon:2023kernel6.18-devel0
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel-livepatch-6.18.54-121.1660
amazon:2023kernel6.18-tools0
LinuxLinux7.3, 6.14, 0
amazon:2023bpftool6.180
amazon:2023perf6.180
amazon:2023python3-perf6.180
amazon:2023kernel6.18-tools-devel0

Timeline

  • Oct 6, 2026 EPSS Score (5 in total, the first dated here)
  • Oct 6, 2026 Coalition ESS Score
  • Oct 6, 2026 CVE Published
  • Oct 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-98226
vulnetix vdb fixes CVE-2026-98226

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-98226/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›