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

CVE-2026-98546: Linux Kernel Privilege Escalation Vulnerability

CVE-2026-98546 is a privilege escalation vulnerability in the Linux kernel arm64 boot process involving PMZR_EL0 trap handling. This flaw can cause system crashes when user-space writes trigger unhandled traps. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

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-98546 Overview

CVE-2026-98546 affects the Linux kernel on arm64 systems using the non-Virtualization Host Extensions (nVHE) hypervisor configuration. The flaw lives in __init_el2_fgt2(), which writes a single mask value to both HDFGRTR2_EL2 and HDFGWTR2_EL2. The write-only PMZR_EL0 register has its trap bit (nPMZR_EL0) only in the write-trap register, so the bit is never set. A PMZR_EL0 write from the host traps to EL2, where the nVHE hypervisor has no handler and executes BUG(), taking the host down without a panic message.

Critical Impact

An unprivileged EL0 task can crash arm64 hosts running the nVHE hypervisor when kernel.perf_user_access=1 is enabled, producing a silent host takedown.

Affected Products

  • Linux kernel on arm64 platforms with FEAT_PMUv3p9 support
  • Systems running the nVHE KVM hypervisor configuration
  • Hosts with kernel.perf_user_access=1 sysctl enabled

Discovery Timeline

  • 2026-10-18 - CVE-2026-98546 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98546

Vulnerability Analysis

The arm64 boot path initializes Fine-Grained Trap (FGT) controls through __init_el2_fgt2(). This function computes one mask and writes it to both HDFGRTR2_EL2 (read traps) and HDFGWTR2_EL2 (write traps). The approach fails for registers whose trap bits exist in only one of the two paired FGT registers.

PMZR_EL0 is a write-only Performance Monitors Unit (PMU) register introduced with FEAT_PMUv3p9. Its trap control bit, nPMZR_EL0, exists exclusively in HDFGWTR2_EL2. Because the shared mask does not include this bit, writes to PMZR_EL0 continue to trap to EL2 after boot. The nVHE hypervisor lacks a handler for this trap and invokes BUG(), which halts the host silently.

Although the kernel itself does not write PMZR_EL0, the PMU driver can set PMUSERENR_EL0.UEN for tasks that register user-read PMU events when kernel.perf_user_access=1. Any subsequent PMZR_EL0 write issued from EL0 user space reaches the unhandled EL2 trap and brings the system down.

Root Cause

The root cause is incorrect sharing of trap-enable masks between asymmetric FGT registers. __init_el2_fgt2() treated HDFGRTR2_EL2 and HDFGWTR2_EL2 as symmetrical when they are not, omitting write-only trap bits such as nPMZR_EL0. This mirrors a kernel vulnerability pattern of improper initialization within boot-time hardware configuration.

Attack Vector

An EL0 process on an affected arm64 nVHE host triggers the fault by executing a write instruction targeting PMZR_EL0 after being granted user-mode PMU access. The write traps to EL2, which has no handler for the register, so the hypervisor executes BUG() and halts the host. No elevated privilege is required beyond permission to open a user-read perf event on a system where kernel.perf_user_access=1.

No verified public exploit code is available. See the upstream fix commits referenced below for the precise register semantics.

Detection Methods for CVE-2026-98546

Indicators of Compromise

  • Unexpected arm64 host crashes or hangs with no panic message, kernel log, or crash dump
  • Host loss shortly after a workload opens user-accessible PMU events
  • Systems configured with kernel.perf_user_access=1 running nVHE KVM on FEAT_PMUv3p9 hardware

Detection Strategies

  • Inventory arm64 kernels and identify builds predating the fix commits 071f5118, 2bc6b218, bb8c90c8, and ce71865b
  • Audit sysctl state for kernel.perf_user_access=1 across arm64 fleets using configuration management tooling
  • Correlate unexplained host reboots with workloads that use perf_event_open() with user-access flags

Monitoring Recommendations

  • Collect dmesg and hypervisor logs from arm64 hosts to catch EL2 trap evidence prior to failure
  • Alert on repeated unscheduled restarts of nVHE KVM hosts within short time windows
  • Track changes to performance-related sysctls through endpoint telemetry and configuration drift monitoring

How to Mitigate CVE-2026-98546

Immediate Actions Required

  • Apply the upstream Linux kernel patches that accumulate HDFGWTR2_EL2 bits separately and set nPMZR_EL0 with the other FEAT_PMUv3p9 trap bits
  • Rebuild and redeploy custom arm64 kernels using one of the fix commits: 071f5118, 2bc6b218, bb8c90c8, ce71865b
  • Prioritize patching on multi-tenant arm64 virtualization hosts where availability is critical

Patch Information

The fix modifies __init_el2_fgt2() to accumulate HDFGWTR2_EL2 bits in a separate mask, matching the pattern already used by __init_el2_fgt() for HDFGWTR_EL2. The nPMZR_EL0 trap-disable bit is set alongside the other FEAT_PMUv3p9 bits so that PMZR_EL0 writes no longer trap to EL2. Distribution kernels should pull the stable backports once available.

Workarounds

  • Disable user-mode PMU access by setting kernel.perf_user_access=0 until patches are deployed
  • Boot affected arm64 hosts with Virtualization Host Extensions (VHE) KVM mode where hardware permits, avoiding the nVHE trap path
  • Restrict perf_event_open() access by raising kernel.perf_event_paranoid to limit unprivileged PMU event creation
bash
# Temporary mitigation: disable user-space PMU access and tighten perf access
sysctl -w kernel.perf_user_access=0
sysctl -w kernel.perf_event_paranoid=3

# Persist across reboots
cat <<EOF >/etc/sysctl.d/99-cve-2026-98546.conf
kernel.perf_user_access=0
kernel.perf_event_paranoid=3
EOF

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.