Skip to main content
Vulnerability Database/CVE-2026-97533

CVE-2026-97533: Linux Kernel Use-After-Free Vulnerability

CVE-2026-97533 is a use-after-free flaw in the Linux kernel's x86 memory management that occurs during page attribute changes. This post explains the technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-97533 Overview

CVE-2026-97533 is a use-after-free vulnerability in the Linux kernel's x86 memory management page attribute table (PAT) subsystem. The flaw exists in the __change_page_attr_set_clr() code path, where a race condition between page attribute changes and Change Page Attribute (CPA) collapse operations can lead to a freed page table entry (PTE) being written. A lockless page table walker in lookup_address_in_pgd_attr() retrieves a PTE that may be freed concurrently by a CPA collapse before set_pte_atomic() writes to it. The issue affects kernel memory management on x86 systems and was analyzed by Denis V. Lunev.

Critical Impact

A kernel-level use-after-free in page table manipulation can lead to memory corruption, kernel instability, and potential local privilege escalation on affected x86 Linux systems.

Affected Products

  • Linux kernel on x86 architecture (mainline, prior to the fix commits)
  • Stable kernel branches referenced in the upstream fix commits
  • Distributions shipping affected stable kernel versions

Discovery Timeline

  • 2026-09-25 - CVE-2026-97533 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97533

Vulnerability Analysis

The vulnerability resides in the x86 PAT code path responsible for changing page attributes on kernel mappings. The call chain change_page_attr_set_clr() → __change_page_attr_set_clr() → __change_page_attr() → _lookup_address_cpa() → lookup_address_in_pgd_attr() performs a lockless page table walk and returns a pointer to a PTE. The caller later writes to this PTE through set_pte_atomic().

An earlier fix added protection against races between ptdump and CPA collapse, but did not address attribute-change paths. A concurrent CPA collapse can free the PTE between the lockless walk and the atomic write, resulting in a use-after-free on kernel page table memory.

Root Cause

The root cause is missing synchronization between the lockless page table walker used by attribute-change operations and the CPA collapse operation that can free intermediate page tables. Although CPA collapse holds the init_mm mmap write lock, __change_page_attr_set_clr() previously performed its walk and write without acquiring the corresponding read lock. This left the PTE pointer returned by lookup_address_in_pgd_attr() subject to being freed by a concurrent collapse.

Attack Vector

Triggering the race requires concurrent kernel memory management operations that invoke page attribute changes and CPA collapse within the vmalloc or module mapping space. The CPA_COLLAPSE flag is set exclusively by set_memory_rox() on x86 module mappings. Exploitation requires local kernel-level activity able to induce the race; the result is corruption of kernel page table state, which may cascade into denial of service or memory safety violations exploitable for privilege escalation.

No verified public exploit is available. The vulnerability mechanism is described in prose; refer to the upstream commits for the authoritative patch diff: Kernel Git Commit cc73b204, Kernel Git Commit d5d8b866, and Kernel Git Commit e21a9ea8.

Detection Methods for CVE-2026-97533

Indicators of Compromise

  • Unexpected kernel oops or panic messages referencing __change_page_attr, set_pte_atomic, or split_large_page in dmesg output.
  • KASAN use-after-free reports implicating x86 PAT or init_mm page table structures on kernels built with memory sanitizers.
  • Sporadic kernel instability under workloads that intensively exercise set_memory_rox() on module or vmalloc ranges.

Detection Strategies

  • Enable Kernel Address Sanitizer (KASAN) in test environments to surface the use-after-free during fuzzing of module load/unload and BPF JIT paths.
  • Audit installed kernel versions against the upstream fix commits and distribution security advisories to identify unpatched hosts.
  • Monitor kernel ring buffer logs centrally for warnings and backtraces from the page attribute change subsystem.

Monitoring Recommendations

  • Forward /var/log/kern.log and journalctl -k output to a centralized logging platform for correlation of kernel faults across the fleet.
  • Track kernel package versions through configuration management to confirm patch deployment status.
  • Alert on repeated kernel crashes or soft lockups on Linux hosts, which may indicate exploitation attempts or triggering of the race.

How to Mitigate CVE-2026-97533

Immediate Actions Required

  • Inventory all x86 Linux systems and identify kernels built from source trees predating the fix commits.
  • Prioritize patching hosts that load third-party or dynamically generated kernel modules, including BPF JIT workloads that exercise set_memory_rox().
  • Restrict local access and CAP_SYS_MODULE privileges to trusted users and processes while patch rollout is in progress.

Patch Information

The upstream fix acquires the init_mm mmap read lock across __change_page_attr_set_clr(), serializing attribute changes against CPA collapse. The lock is dropped around pagetable_alloc() in split_large_page() to prevent reclaim-induced deadlocks, with a new init_mm_read_locked flag tracked in struct cpa_data. Apply the kernel updates referenced in Kernel Git Commit cc73b204, Kernel Git Commit d5d8b866, and Kernel Git Commit e21a9ea8, or install the corresponding packaged update from your distribution.

Workarounds

  • No supported runtime workaround removes the race; apply the kernel patch as the primary remediation.
  • Reduce exposure by limiting workloads that invoke set_memory_rox() on vmalloc or module mappings, such as unnecessary kernel module loading.
  • Enforce least privilege so that unprivileged users cannot trigger module load paths that exercise the vulnerable code.
bash
# Verify running kernel version and schedule reboot after patching
uname -r
# Debian/Ubuntu
sudo apt update && sudo apt install --only-upgrade linux-image-$(uname -r)
# RHEL/CentOS/Fedora
sudo dnf update kernel
# Reboot to activate the patched kernel
sudo systemctl reboot

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.