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

CVE-2026-98249: Linux Kernel Privilege Escalation Vulnerability

CVE-2026-98249 is a privilege escalation flaw in the Linux kernel affecting ARM64 hibernation that can cause system hangs during resume. This post explains its 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-98249 Overview

CVE-2026-98249 is a Linux kernel vulnerability in the arm64 hibernation resume path. The function swsusp_arch_suspend_exit() reinstalls the restored kernel's hyp stub vectors with an hvc instruction but fails to pass the required arguments. Register x0 is not set to HVC_SET_VECTORS and x1 is not set to the vector address, causing the stub dispatch to fall through without writing vbar_el2. EL2 is left pointing at the trans_pgd copy of the vectors, a page that swsusp_free() releases immediately after resume.

Critical Impact

Systems resuming from hibernation on arm64 can hang or experience undefined EL2 behavior because the hypervisor vector base register points to freed memory.

Affected Products

  • Linux kernel on arm64 platforms with hibernation enabled
  • Builds with CONFIG_HIBERNATION=y using the hyp stub
  • Configurations with CONFIG_PAGE_POISONING=y and page_poison=on where the hang is reliably triggered

Discovery Timeline

  • 2026-10-06 - CVE-2026-98249 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-98249

Vulnerability Analysis

The defect lives in the arm64 hibernation resume logic. During resume, swsusp_arch_suspend_exit() issues an hvc to reinstall the restored kernel's hyp stub vectors. The hyp stub dispatch expects register x0 to hold the selector HVC_SET_VECTORS and x1 to hold the physical address of the new vector table. Because neither argument is set, the dispatcher does not match the HVC_SET_VECTORS case and returns without updating vbar_el2.

The practical consequence is that EL2 continues to reference the trans_pgd copy of the vectors used during the resume transition. Shortly after resume completes, swsusp_free() releases that page back to the allocator. Any subsequent exception taken at EL2 vectors through memory that is no longer owned by the hypervisor stub, producing undefined behavior or a hang. Vladimir reported reliable hangs on kernels built with CONFIG_PAGE_POISONING=y and page_poison=on, which overwrites freed pages and guarantees that the stale vector page becomes invalid immediately.

Root Cause

The root cause is a missing argument setup prior to the hvc call in swsusp_arch_suspend_exit(). The fix mirrors what __hyp_set_vectors() already does: load x0 with HVC_SET_VECTORS and x1 with the vector address before invoking the hypercall. This is a use-after-free [CWE-416] condition at EL2 caused by failing to rebind the hypervisor vector base before the backing page is released.

Attack Vector

Exploitation requires local execution of a hibernation resume cycle on an affected arm64 system. The flaw is not remotely reachable and does not provide a documented path to privilege escalation. The observed impact is availability loss through a system hang during or shortly after resume. See the upstream fix commit for the exact instruction sequence.

// No verified exploit code available. Refer to the upstream commits for
// the corrected argument setup before the hvc that reinstalls hyp vectors.

Detection Methods for CVE-2026-98249

Indicators of Compromise

  • System hangs or unresponsive behavior immediately after resuming from hibernation on arm64 hardware.
  • Kernel panics or EL2 synchronous exceptions following a successful swsusp_arch_suspend_exit() path.
  • Reproducible failures when CONFIG_PAGE_POISONING=y and page_poison=on are set.

Detection Strategies

  • Inventory arm64 Linux hosts and identify kernels built with CONFIG_HIBERNATION=y that predate the fix commits.
  • Correlate hibernation-resume events with subsequent kernel log anomalies or watchdog resets.
  • Review build configurations for page poisoning options that increase the likelihood of triggering the hang.

Monitoring Recommendations

  • Collect dmesg and serial console output across suspend/resume cycles on arm64 fleet systems.
  • Alert on unexpected reboots or hangs that follow hibernation events in centralized log pipelines.
  • Track kernel package versions and confirm stable-tree backports containing the referenced commits are deployed.

How to Mitigate CVE-2026-98249

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced below to all affected arm64 systems.
  • Rebuild or update distribution kernels to a version that incorporates the fix on the relevant stable branch.
  • Validate suspend/resume cycles in a staging environment after patching, including with page poisoning enabled.

Patch Information

The fix sets x0 to HVC_SET_VECTORS and x1 to the vector address before the resume hvc, matching __hyp_set_vectors(). The corrected code is available in the following upstream commits: Kernel Commit 60a3c31, Kernel Commit 6646418, Kernel Commit 909e924, Kernel Commit 955d86e, Kernel Commit d3f8f77, and Kernel Commit e80ea81.

Workarounds

  • Disable hibernation on arm64 systems until the patched kernel is deployed.
  • Avoid enabling CONFIG_PAGE_POISONING with page_poison=on on unpatched builds to reduce the likelihood of the hang.
  • Prefer suspend-to-RAM instead of suspend-to-disk on affected platforms during the mitigation window.
bash
# Disable hibernation targets on affected arm64 systems until patched
sudo systemctl mask hibernate.target hybrid-sleep.target suspend-then-hibernate.target

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.