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

CVE-2026-98845: Linux Kernel TPM Privilege Escalation

CVE-2026-98845 is a privilege escalation vulnerability in Linux Kernel TPM that fails to disable the chip on null key name mismatch, allowing potential TPM reset attacks. This article covers technical details, affected versions, impact assessment, and recommended 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-98845 Overview

CVE-2026-98845 is a Linux kernel vulnerability in the Trusted Platform Module (TPM) subsystem. The tpm2_load_null() function fails to disable the TPM chip when a null key name integrity check mismatch occurs. The function returns success (rc = 0) without populating the null key handle, leaving callers to operate on uninitialized stack values. This condition defeats the protection intended against TPM reset attacks and causes tpm2_start_auth_session() to use an invalid salt key handle during TPM2_CC_START_AUTH_SESS operations.

Critical Impact

The TPM continues serving commands after a null key integrity check failure, undermining defenses against TPM reset attacks and allowing authentication sessions to proceed with uninitialized key handles.

Affected Products

  • Linux kernel builds with CONFIG_TCG_TPM2_HMAC=y
  • TPM 2.0 driver subsystem (drivers/char/tpm)
  • Systems relying on TPM session integrity for secure boot or measured boot workflows

Discovery Timeline

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

Technical Details for CVE-2026-98845

Vulnerability Analysis

The Linux kernel TPM driver includes a null key name check designed to detect TPM reset attacks. When the re-created null key name does not match the expected value, the kernel logs tpm tpm0: null key integrity check failed. The chip should then be disabled to prevent further command processing.

The defect lives in tpm2_load_null(). The function marks the chip disabled only when its return code is non-zero. On a name mismatch, rc remains zero and the function returns success without writing the null key handle. The caller then proceeds under the assumption that the handle is valid.

During testing with QEMU and swtpm, tpm2_start_auth_session() consumed an uninitialized stack value as the salt key handle and issued TPM2_CC_START_AUTH_SESS with that value. This behavior exposes HMAC-authenticated TPM sessions to manipulation after a reset attack condition is detected but not enforced.

Root Cause

The root cause is a missing error propagation in tpm2_load_null(). The integrity check logs the failure but does not set rc to an error value. The fix assigns rc = -ENODEV on mismatch, allowing the existing error path to disable the chip and return the correct code to the caller.

Attack Vector

Exploitation requires local access to a system where an attacker can trigger a TPM reset condition. If TPM2_CC_CONTEXT_LOAD fails with TPM2_RC_INTEGRITY and the null key name has been altered, the kernel continues processing TPM operations with an invalid salt key handle. This weakens the integrity guarantees of HMAC-protected sessions used for sealing, attestation, and key derivation workflows.

The vulnerability class is Improper Input Validation combined with Missing Error Handling in a Kernel Vulnerability context. See the kernel commits for the applied fix.

Detection Methods for CVE-2026-98845

Indicators of Compromise

  • Kernel log entry tpm tpm0: null key integrity check failed appearing while the TPM continues to respond to commands such as tpm2_getcap.
  • Unexpected TPM2_RC_INTEGRITY return codes from TPM2_CC_CONTEXT_LOAD operations on systems with HMAC sessions enabled.
  • TPM authentication sessions started shortly after an integrity failure log entry.

Detection Strategies

  • Monitor dmesg and journald for the exact string null key integrity check failed on systems with CONFIG_TCG_TPM2_HMAC=y.
  • Correlate TPM integrity failure events with subsequent tpm2_start_auth_session activity to identify attempted exploitation.
  • Audit kernel versions across the fleet to identify hosts missing the upstream commits 015fb29, 96c46c7, a03d0c6, and f6599d8.

Monitoring Recommendations

  • Forward kernel ring buffer events to a centralized logging platform for pattern matching on TPM subsystem errors.
  • Alert on TPM commands issued after an integrity failure log, which indicates the chip was not disabled.
  • Track the installed kernel package version on all Linux endpoints and compare against the patched versions published by distribution vendors.

How to Mitigate CVE-2026-98845

Immediate Actions Required

  • Apply the stable kernel update containing commits 015fb29a7483, 96c46c75b0d4, a03d0c64cd82, or f6599d8830fe as soon as the vendor distribution publishes a build.
  • Inventory systems with CONFIG_TCG_TPM2_HMAC=y enabled, since those builds are directly exposed to the defect.
  • Review TPM-dependent workflows such as disk encryption unseal and remote attestation for unexpected failures or anomalous session establishment.

Patch Information

The fix sets rc = -ENODEV in tpm2_load_null() when the null key name mismatch is detected, allowing the existing error path to disable the chip. Upstream references: Kernel Commit 015fb29, Kernel Commit 96c46c7, Kernel Commit a03d0c6, and Kernel Commit f6599d8.

Workarounds

  • Where feasible, rebuild the kernel with CONFIG_TCG_TPM2_HMAC disabled until a patched kernel is deployed, accepting the loss of HMAC session protection.
  • Restrict physical and local administrative access to systems that depend on TPM-backed integrity guarantees.
  • Monitor TPM subsystem logs and treat any null key integrity check failed entry as a trigger to isolate the host and investigate.
bash
# Verify current kernel version and TPM HMAC configuration
uname -r
grep CONFIG_TCG_TPM2_HMAC /boot/config-$(uname -r)

# Watch kernel log for TPM integrity failures
journalctl -k -f | grep -i "tpm.*null key integrity"

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.