# CVE-2026-89760: mm, swap: don't free a hibernation slot that is in the swap cache

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 3, 2026-11-26)
- **Published:** 2026-09-11T19:47:02.090Z
- **Modified:** 2026-10-19T09:18:19.113Z

## Who should check

- Anyone running Linux \>= 0d6af9bcf383bcdf601e670bb605861b01e318e7, \< a6df73156f2d85746c69adbf13d0f5ea200e0626; \>= 0d6af9bcf383bcdf601e670bb605861b01e318e7, \< 10d9012e83efedde8718ceaa5053f836e0c8596c
- Anyone running Linux 7.1

## Description

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

mm, swap: don't free a hibernation slot that is in the swap cache

A slot with a folio in the swap cache is freed when the folio leaves the
cache, not when its count drops.  swap\_put\_entries\_cluster() follows that
rule.  swap\_free\_hibernation\_slot() does not, it calls
\_\_swap\_cluster\_free\_entries() whether or not a folio sits on the slot.

Cluster readahead can put one there.  It walks a raw page\_cluster sized
window of offsets around the faulting entry, and a hibernation slot passes
\_\_swap\_cache\_add\_check() because it is not a folio and its count is not
zero.  Freeing the slot then clears the entry under that folio.

The folio is now unreachable from the swap table, and the offset goes back
to the allocator.  The folio is still on the LRU though, so reclaim can
pick it up later.  It then takes the old offset out of folio-\>swap and
overwrites the table entry there, which by then may belong to someone
else.

This bug can trigger silent memory corruption, process crashes, or data
instability across completely unrelated userspace applications - typically
occurring when uswsusp is preparing the hibernation image.

I found this while working on giving hibernation slots their own marker in
the swap table, which I had discussed with Kairui. 
(https://lore.kernel.org/linux-mm/abp7aDgYLrxF3Me8@KASONG-MC4/) As far as
I know there are no reports, so there is no Reported-by/Closes to add.

Check for a cached folio before freeing.  The slot is then left in the
ordinary state where only the swap cache holds it, and it is freed when
the folio leaves the cache, either through the reclaim below or through
normal reclaim later.

## Affected and fixed versions

- Linux: \>= 0d6af9bcf383bcdf601e670bb605861b01e318e7, \< a6df73156f2d85746c69adbf13d0f5ea200e0626; \>= 0d6af9bcf383bcdf601e670bb605861b01e318e7, \< 10d9012e83efedde8718ceaa5053f836e0c8596c (cvelist)
- Linux: 7.1 (cvelist)

## Mitigation

- Upgrade Linux to 10d9012e83efedde8718ceaa5053f836e0c8596c 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-89760. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89760.md
Affected: Linux >= 0d6af9bcf383bcdf601e670bb605861b01e318e7, < a6df73156f2d85746c69adbf13d0f5ea200e0626; >= 0d6af9bcf383bcdf601e670bb605861b01e318e7, < 10d9012e83efedde8718ceaa5053f836e0c8596c; Linux 7.1
Fixed in: Linux 10d9012e83efedde8718ceaa5053f836e0c8596c

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 0d6af9bcf383bcdf601e670bb605861b01e318e7, \< a6df73156f2d85746c69adbf13d0f5ea200e0626; \>= 0d6af9bcf383bcdf601e670bb605861b01e318e7, \< 10d9012e83efedde8718ceaa5053f836e0c8596c; Linux 7.1.

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

Yes. Fixed in Linux 10d9012e83efedde8718ceaa5053f836e0c8596c. Upgrade Linux to 10d9012e83efedde8718ceaa5053f836e0c8596c or later.

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

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/a6df73156f2d85746c69adbf13d0f5ea200e0626>
- other: <https://git.kernel.org/stable/c/10d9012e83efedde8718ceaa5053f836e0c8596c>

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

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