CVE-2026-98221 KEYS: trusted: Fix tpm2_load_cmd() boundary check

Not scored Published Updated

A boundary check flaw in the Linux kernel's trusted keys subsystem allows local attackers to trigger memory corruption, potentially leading to code execution or privilege escalation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-98221?

CVE-2026-98221 is a memory corruption vulnerability in Linux, published on 6 Oct 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

KEYS: trusted: Fix tpm2_load_cmd() boundary check

tpm2_load_cmd() does boundary checks against the ASN.1 size i.e., payload->blob_len. Address this by passing the decoded blob size to tpm2_load_cmd(), and use it for the boundary checks.

Which versions are affected by CVE-2026-98221?

How do I fix CVE-2026-98221?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-98221 being exploited?

There is no known exploitation of CVE-2026-98221 in the wild and no public exploit code.

Sources

Also known as AZL-105987, BELL-CVE-2026-98221, DEBIAN-CVE-2026-98221, GHSA-ppw2-5gqj-39j4, UBUNTU-CVE-2026-98221.

Is CVE-2026-98221 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free