Skip to main content
ISO/IEC 27001:2022 · Cert #2967/NET27A

Linux kernel KSM swap-in use-after-free CVE-2026-99650 (CVSS 7.8)

KSM swap-in code could compare against a freed anon_vma, breaking reverse mapping. CVSS 7.8. Affects Linux 2.6.36 and later; fixed in 7.3.5 and 7.4-rc2.

Security advisory card: Linux kernel KSM swap-in use-after-free CVE-2026-99650 (CVSS 7.8). Severity High, CVSS 7.8. CVE-2026-99650.

Advisory at a glance

CVE
CVE-2026-99650
Severity
Severity: High CVSS v3.1 7.8
Attack vector
Local
Privileges required: low
Exploitation evidence
Not listed in the CISA KEV catalog (record checked Nov 22, 2026)
Absence from KEV is not proof that a flaw is not exploited.
Last reviewed

On 2026-11-20 the Linux kernel CNA published CVE-2026-99650, a use of a freed anon_vma in the kernel's Kernel Samepage Merging (KSM) code at swap-in. The CNA rates it CVSS 3.1 7.8 (High). Fixed releases are 7.3.5 and 7.4-rc2.

Advisory details

  • CVE: CVE-2026-99650 (the only CVE in this record)
  • Title: mm/ksm: fix use of a freed anon_vma at swap-in
  • Assigner: Linux (the Linux kernel CNA)
  • Published: 2026-11-20; last updated 2026-11-22
  • Product: Linux kernel, files mm/ksm.c and mm/util.c
  • CVSS: 3.1 base score 7.8 (High), vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, assigned by the Linux CNA
  • CWE: none listed in the record
  • Exploitation status: Not known to be exploited. The CVE is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, version 2026.11.20.
  • Workarounds: none listed in the record

What the flaw is

A folio read from a swap slot that KSM previously shared can stay in the swap cache after the process that first mapped it exits. Its anon_vma can then be freed. ksm_might_need_to_copy() still dereferenced that anon_vma to compare roots.

anon_vma objects use SLAB_TYPESAFE_BY_RCU, so a freed object can be reused at once. A stale pointer can then refer to another anon_vma whose root matches, although the target VMA is not linked to it. The record says this can cause false positives: the reverse mapping misses the new folio mapping, which prevents migration and reclaim.

The fix moves the checks into a new function, folio_anon_rmap_compatible(). It keeps the page-index check and first compares the folio's anon_vma pointer with the VMA's own anon_vma and root. If neither matches, it walks the VMA's anon_vma_chain, whose entries the VMA keeps alive. A review comment quoted in the record calls the new test stricter but more correct. It also documents the lifetime rules of folio_anon_vma().

The CNA's CVSS rationale describes the trigger. A local user marks two of its own memory ranges mergeable with madvise(MADV_MERGEABLE), which needs no special capability. The user forces reclaim, faults one process, exits it and then faults a second process at the same index. This works once ksmd is already merging pages. According to the CNA, the stale anon_vma is then read and written in the kernel, and reclaim or migration can oops.

Affected and fixed versions

This table reproduces every version entry in the Linux CNA record.

Kernel version or rangeStatus in the record
Earlier than 2.6.36Unaffected
2.6.36 and laterAffected, unless at or above a fixed version below
7.3.5 and later 7.3.xUnaffected (fixed)
7.4-rc2 and laterUnaffected (original mainline fix)

The record lists no fixed version for other stable branches. It lists 2 fix commits in the stable tree: 85260730efef and 4c2dec1dce36. The issue was introduced by commit ba6f0ff3981e.

Terms explained

  • Kernel Samepage Merging (KSM): a kernel feature that merges identical memory pages from different processes into one shared copy. ksmd is the kernel thread that does the merging.
  • anon_vma: the kernel structure that tracks which memory areas map a set of anonymous (not file-backed) pages.
  • VMA: a virtual memory area, one contiguous range of a process's address space.
  • Folio: the kernel's unit for one or more contiguous memory pages.
  • Reverse mapping (rmap): the kernel's way of finding every mapping of a page, needed to move (migrate) or free (reclaim) it.
  • Swap cache: pages that are in transit between memory and the swap area.
  • SLAB_TYPESAFE_BY_RCU: an allocator flag that lets freed objects be reused immediately for an object of the same type.
  • Use after free: memory is used after it has been released.
  • CVSS vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H: the attacker needs local access with a low-privileged account (AV:L, PR:L). The attack is not complex (AC:L) and needs no user interaction (UI:N). The impact stays in the kernel (S:U). Confidentiality, integrity and availability impact is high (C:H/I:H/A:H).

What This Means for IT Teams

The changed files are mm/ksm.c and mm/util.c, and kernels from 2.6.36 onward fall within the affected range. The CNA's scenario needs KSM to be merging pages and a page to be reclaimed to swap. Hosts where ksmd is merging memory and swap is in use are the relevant case.

Updated kernels are 7.3.5 or later on the 7.3 branch, and 7.4-rc2 or later. The record lists no fix for older stable branches. Check the running kernel version against the table. The record gives no workaround.

Local code execution is required. The CVE does not appear in the CISA KEV catalog. Tracking which kernel branches have a fix is part of patch management for server infrastructure.

NVD cross-check

NVD lists the CVE as "Received" and reproduces the CNA's description, affected versions and 7.8 vector unchanged, credited to the Linux CNA as a secondary source. There is no separate NVD assessment, CWE or CPE yet, so there is nothing to reconcile.

For another recent Linux kernel memory-management flaw, see Linux kernel huge page truncate race CVE-2026-99669 (CVSS 7.8).

Sources

  1. CVE-2026-99650: mm/ksm: fix use of a freed anon_vma at swap-in (opens in a new tab) Linux kernel CNA (CVE Program record) Published Nov 20, 2026 Accessed Nov 22, 2026 cve.org
  2. NVD record for CVE-2026-99650 (opens in a new tab) NIST National Vulnerability Database Published Nov 20, 2026 Accessed Nov 22, 2026 nvd.nist.gov
  3. CISA Known Exploited Vulnerabilities catalog (JSON feed) (opens in a new tab) Cybersecurity and Infrastructure Security Agency (CISA) Published Nov 20, 2026 Accessed Nov 22, 2026 cisa.gov

Topics

How we research, review and correct articles: Editorial Standards, Ethics & Corrections Policy. Found an error? Tell us.

Networking Pulse · https://networkingpulse.com/news/security/linux-kernel-ksm-freed-anon-vma-swap-in-cve-2026-99650/

Cybersecurity & Compliance

Need help checking your exposure to this advisory?

Talk to our team about the devices and versions in your network and how to plan the update.