Skip to main content

Linux Kernel CVE-2022-49287

HIGH
Use After Free (CWE-416)
2025-02-26 416baaa9-dc9f-4396-8d5f-8c081fb06d67
High
Disputed · 7.0 Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Open /dev/tpmrm as local user
  2. Delivery
    Trigger or await kernel module removal (tpm_tis_spi)
  3. Exploit
    Issue write() to held file descriptor
  4. Execution
    tpm_try_get_ops() dereferences zero-refcount chip->dev
  5. Persist
    Use-after-free corrupts kernel memory
  6. Impact
    Local privilege escalation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires three concurrent conditions: (1) a local user must have opened /dev/tpmrm - access typically requires membership in the 'tss' group or equivalent device permission - before the vulnerable write occurs; (2) the TPM driver module (e.g., tpm_tis_spi or equivalent) must be unloaded after the device is opened but before the write is issued, which on most production systems requires CAP_SYS_MODULE or root; and (3) the system must have a TPM device exposed as /dev/tpmrm with the TPM_CHIP_FLAG_TPM2 path affected by the reference counting regression. Exploitation is constrained to local access only (AV:L) and requires the specific module-removal sequence (AC:H), making remote exploitation impossible and automated exploitation implausible. The requirement for module unload capability limits real-world exploitation primarily to insider threats, multi-step attacks where privilege has already been partially elevated, or misconfigured systems with overly permissive module management.

Impact

The CVSS 3.1 base score of 7.0 with vector AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H reflects a locally-exploitable, high-complexity vulnerability. The High complexity rating is appropriate: successful exploitation requires a specific multi-step sequence - open /dev/tpmrm, trigger or wait for module removal, then write - which is a narrow exploitation window. EPSS at 0.10% (27th percentile) confirms negligible automated exploitation activity, consistent with the high attack complexity. The vulnerability is not listed in CISA KEV, further supporting that opportunistic or wide-scale exploitation is not occurring. Despite the high C/I/A impact ratings (reflecting that use-after-free in kernel space can lead to privilege escalation or code execution), the AC:H and local vector substantially reduce real-world priority for most organizations. The primary risk is insider threat or a local unprivileged user on a multi-tenant system who can hold a TPM device handle open while an administrator unloads the driver - a realistic but narrow scenario in environments that actively manage TPM hardware. The signals are internally consistent; no conflicts between CVSS, EPSS, and KEV data are present.

Exploit ScenarioDerived

A low-privileged local user on a Linux system opens /dev/tpmrm and holds the file descriptor. An administrator (or attacker who has gained module management privileges separately) removes the tpm_tis_spi kernel module. The unprivileged user then issues a write() call to the held file descriptor, triggering tpm_common_write() to call tpm_try_get_ops() on the now-freed chip->dev object, causing a use-after-free that corrupts kernel memory and could be leveraged for local privilege escalation. No public proof-of-concept exploit has been identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Aug 04, 2026

Use-after-free in the Linux kernel TPM subsystem allows a local attacker to trigger kernel memory corruption by exploiting a reference counting defect in struct tpm_chip. The flaw manifests when a file descriptor to /dev/tpmrm is held open while the underlying TPM driver module (e.g., tpm_tis_spi) is unloaded, then a write is issued to that descriptor - causing tpm_common_write() to attempt a kobject_get() on an already-zeroed reference counter. No public exploit has been identified at time of analysis, and EPSS at 0.10% signals low opportunistic exploitation pressure.

Earlier versions of this analysis (2)
v2 Aug 04, 2026 - 10:52 cvss changed CVSS 7.0

Use-after-free in the Linux kernel TPM subsystem allows a local low-privileged user to trigger kernel memory corruption by holding an open file descriptor to /dev/tpmrm while the tpm_tis_spi driver module is concurrently unloaded. The root cause is a regression in reference counting for struct tpm_chip: commit 8979b02aaf1d moved a TPM2 flag check to tpm_chip_alloc() before TPM_CHIP_FLAG_TPM2 is set, causing the protective extra reference to be silently skipped, and a corresponding put in tpm_chip_unregister() was never implemented for chip->devs. No public exploit has been identified and the vulnerability is not listed in CISA KEV; EPSS of 0.10% (27th percentile) reflects low observed exploitation pressure.

v1 Mar 28, 2026 - 18:28 CVSS 7.8

RemediationAI

Apply the kernel patches available via the upstream stable tree, with eight distinct commits addressing this issue across stable branches: key commits include 290e05f346d1, 2f928c0d5c02, 473a66f99cb8, 662893b4f6bd, 6e7baf84149f, 7e0438f83dc7, a27ed2f3695b, and cb64bd038bea (https://git.kernel.org/stable/c/). Distribution users should apply Red Hat RHSA-2023:6583 (https://access.redhat.com/errata/RHSA-2023:6583) or the applicable SUSE security update (https://www.suse.com/support/update/SUSE-SU-2025:1027/). As a compensating control where patching is not immediately possible, restrict write access to /dev/tpmrm to trusted processes only (adjust device permissions or use udev rules), and implement module-level controls (e.g., lockdown mode or module signing enforcement) to prevent unprivileged module unload. Note that restricting /dev/tpmrm access may impact TPM-dependent applications such as remote attestation agents or disk encryption tools.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the Linux kernel's TPM (Trusted Platform Module) character device subsystem, specifically in the reference counting logic for struct tpm_chip. Since commit 8979b02aaf1d ('tpm: Fix reference count to main device'), the extra reference that was intended to prevent a premature zero-count is never acquired because the TPM_CHIP_FLAG_TPM2 flag is not yet set at the point in tpm_chip_alloc() where the reference was taken. This leaves tpm_common_write() able to call tpm_try_get_ops() - which calls kobject_get() - against a chip->dev whose refcount has already reached zero after module removal. A second defect compounds this: tpm_chip_unregister() never calls put on chip->devs, so the tpm_devs_release() function introduced by commit fdc915f7f719 is never invoked. CWE-416 (Use After Free) precisely describes the root cause: dereferencing freed kernel object memory. Affected CPEs are cpe:2.3:o:linux:linux_kernel across multiple stable branches.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Sources disagree (Low–High)
Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.0 HIGH
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Local vector and high complexity reflect the required module-removal sequence; PR:L for /dev/tpmrm group access; full C/I/A for kernel use-after-free.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Red Hat 5.5 LOW

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Updated
Aug 04, 2026 - 10:53 vuln.today
v3 - CVSS changed
Analysis Updated
Aug 04, 2026 - 10:52 vuln.today
v2 - CVSS changed
CVSS changed
Aug 04, 2026 - 10:23 NVD
7.8 (HIGH) 7.0 (HIGH)
Patch released
Mar 28, 2026 - 18:28 nvd
Patch available
CVE Published
Feb 26, 2025 - 07:01 nvd
HIGH 7.8

DescriptionCVE.org

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

tpm: fix reference counting for struct tpm_chip

The following sequence of operations results in a refcount warning:

  1. Open device /dev/tpmrm.
  2. Remove module tpm_tis_spi.
  3. Write a TPM command to the file descriptor opened at step 1.

------------[ cut here ]------------ WARNING: CPU: 3 PID: 1161 at lib/refcount.c:25 kobject_get+0xa0/0xa4 refcount_t: addition on 0; use-after-free. Modules linked in: tpm_tis_spi tpm_tis_core tpm mdio_bcm_unimac brcmfmac sha256_generic libsha256 sha256_arm hci_uart btbcm bluetooth cfg80211 vc4 brcmutil ecdh_generic ecc snd_soc_core crc32_arm_ce libaes raspberrypi_hwmon ac97_bus snd_pcm_dmaengine bcm2711_thermal snd_pcm snd_timer genet snd phy_generic soundcore [last unloaded: spi_bcm2835] CPU: 3 PID: 1161 Comm: hold_open Not tainted 5.10.0ls-main-dirty #2 Hardware name: BCM2711 [<c0410c3c>] (unwind_backtrace) from [<c040b580>] (show_stack+0x10/0x14) [<c040b580>] (show_stack) from [<c1092174>] (dump_stack+0xc4/0xd8) [<c1092174>] (dump_stack) from [<c0445a30>] (__warn+0x104/0x108) [<c0445a30>] (__warn) from [<c0445aa8>] (warn_slowpath_fmt+0x74/0xb8) [<c0445aa8>] (warn_slowpath_fmt) from [<c08435d0>] (kobject_get+0xa0/0xa4) [<c08435d0>] (kobject_get) from [<bf0a715c>] (tpm_try_get_ops+0x14/0x54 [tpm]) [<bf0a715c>] (tpm_try_get_ops [tpm]) from [<bf0a7d6c>] (tpm_common_write+0x38/0x60 [tpm]) [<bf0a7d6c>] (tpm_common_write [tpm]) from [<c05a7ac0>] (vfs_write+0xc4/0x3c0) [<c05a7ac0>] (vfs_write) from [<c05a7ee4>] (ksys_write+0x58/0xcc) [<c05a7ee4>] (ksys_write) from [<c04001a0>] (ret_fast_syscall+0x0/0x4c) Exception stack(0xc226bfa8 to 0xc226bff0) bfa0: 00000000 000105b4 00000003 beafe664 00000014 00000000 bfc0: 00000000 000105b4 000103f8 00000004 00000000 00000000 b6f9c000 beafe684 bfe0: 0000006c beafe648 0001056c b6eb6944 ---[ end trace d4b8409def9b8b1f ]---

The reason for this warning is the attempt to get the chip->dev reference in tpm_common_write() although the reference counter is already zero.

Since commit 8979b02aaf1d ("tpm: Fix reference count to main device") the extra reference used to prevent a premature zero counter is never taken, because the required TPM_CHIP_FLAG_TPM2 flag is never set.

Fix this by moving the TPM 2 character device handling from tpm_chip_alloc() to tpm_add_char_device() which is called at a later point in time when the flag has been set in case of TPM2.

Commit fdc915f7f719 ("tpm: expose spaces via a device link /dev/tpmrm<n>") already introduced function tpm_devs_release() to release the extra reference but did not implement the required put on chip->devs that results in the call of this function.

Fix this by putting chip->devs in tpm_chip_unregister().

Finally move the new implementation for the TPM 2 handling into a new function to avoid multiple checks for the TPM_CHIP_FLAG_TPM2 flag in the good case and error cases.

Executive ViewAI

Why It Matters

Linux kernel TPM subsystem contains a use-after-free vulnerability (CVE-2022-49287) that affects systems with active TPM modules; no public exploit identified at time of analysis, though local attackers with system access could corrupt kernel memory to achieve privilege escalation or service disruption. Organizations relying on TPM for security-critical functions such as secure boot or encryption key management are most at risk. Exploitation pressure remains minimal, but patching is recommended infrastructure maintenance to maintain system resilience.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 73% exploitable
Prevalence
High
Linux kernel deployed across most enterprise servers and embedded systems worldwide
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

Vendor StatusVendor

SUSE

Severity: High
Product Status
Container suse/sle-micro-rancher/5.2:latest Image SLES15-SP3-BYOS-Azure Image SLES15-SP3-HPC-BYOS-Azure Image SLES15-SP3-Micro-5-2-BYOS-Azure Image SLES15-SP3-Micro-5-2-BYOS-EC2-HVM Image SLES15-SP3-Micro-5-2-BYOS-GCE Image SLES15-SP3-SAPCAL-Azure Affected
Container suse/sle-micro-rancher/5.3:latest Container suse/sle-micro-rancher/5.4:latest Image SLES15-SP4-BYOS Image SLES15-SP4-BYOS-Azure Image SLES15-SP4-BYOS-EC2 Image SLES15-SP4-BYOS-GCE Image SLES15-SP4-CHOST-BYOS Image SLES15-SP4-CHOST-BYOS-Aliyun Image SLES15-SP4-CHOST-BYOS-Azure Image SLES15-SP4-CHOST-BYOS-EC2 Image SLES15-SP4-CHOST-BYOS-GCE Image SLES15-SP4-CHOST-BYOS-SAP-CCloud Image SLES15-SP4-HPC-BYOS Image SLES15-SP4-HPC-BYOS-Azure Image SLES15-SP4-HPC-BYOS-EC2 Image SLES15-SP4-HPC-BYOS-GCE Image SLES15-SP4-HPC-EC2 Image SLES15-SP4-HPC-GCE Image SLES15-SP4-Hardened-BYOS Image SLES15-SP4-Hardened-BYOS-Azure Image SLES15-SP4-Hardened-BYOS-EC2 Image SLES15-SP4-Hardened-BYOS-GCE Image SLES15-SP4-Manager-Proxy-4-3-BYOS Image SLES15-SP4-Manager-Proxy-4-3-BYOS-Azure Image SLES15-SP4-Manager-Proxy-4-3-BYOS-EC2 Image SLES15-SP4-Manager-Proxy-4-3-BYOS-GCE Image SLES15-SP4-Manager-Server-4-3-BYOS Image SLES15-SP4-Manager-Server-4-3-BYOS-Azure Image SLES15-SP4-Manager-Server-4-3-BYOS-EC2 Image SLES15-SP4-Manager-Server-4-3-BYOS-GCE Image SLES15-SP4-Micro-5-3 Image SLES15-SP4-Micro-5-3-BYOS Image SLES15-SP4-Micro-5-3-BYOS-Azure Image SLES15-SP4-Micro-5-3-BYOS-EC2 Image SLES15-SP4-Micro-5-3-BYOS-GCE Image SLES15-SP4-Micro-5-3-EC2 Image SLES15-SP4-Micro-5-4 Image SLES15-SP4-Micro-5-4-BYOS Image SLES15-SP4-Micro-5-4-BYOS-Azure Image SLES15-SP4-Micro-5-4-BYOS-EC2 Image SLES15-SP4-Micro-5-4-BYOS-GCE Image SLES15-SP4-Micro-5-4-EC2 Image SLES15-SP4-Micro-5-4-GCE Image SLES15-SP4-SAP Image SLES15-SP4-SAP-Azure Image SLES15-SP4-SAP-EC2 Image SLES15-SP4-SAP-GCE Image SLES15-SP4-SAPCAL Image SLES15-SP4-SAPCAL-Azure Image SLES15-SP4-SAPCAL-EC2 Image SLES15-SP4-SAPCAL-GCE Affected
Container suse/sle-micro/base-5.5:2.0.4-5.8.160 Image SLES15-SP5-BYOS-Azure Image SLES15-SP5-BYOS-EC2 Image SLES15-SP5-BYOS-GCE Image SLES15-SP5-CHOST-BYOS-Aliyun Image SLES15-SP5-CHOST-BYOS-Azure Image SLES15-SP5-CHOST-BYOS-EC2 Image SLES15-SP5-CHOST-BYOS-GCE Image SLES15-SP5-CHOST-BYOS-GDC Image SLES15-SP5-CHOST-BYOS-SAP-CCloud Image SLES15-SP5-EC2 Image SLES15-SP5-GCE Image SLES15-SP5-HPC-BYOS-Azure Image SLES15-SP5-HPC-BYOS-EC2 Image SLES15-SP5-HPC-BYOS-GCE Image SLES15-SP5-Hardened-BYOS-Azure Image SLES15-SP5-Hardened-BYOS-EC2 Image SLES15-SP5-Hardened-BYOS-GCE Image SLES15-SP5-Manager-Proxy-5-0-BYOS Image SLES15-SP5-Manager-Proxy-5-0-BYOS-Azure Image SLES15-SP5-Manager-Proxy-5-0-BYOS-EC2 Image SLES15-SP5-Manager-Proxy-5-0-BYOS-GCE Image SLES15-SP5-Manager-Server-5-0 Image SLES15-SP5-Manager-Server-5-0-Azure-llc Image SLES15-SP5-Manager-Server-5-0-Azure-ltd Image SLES15-SP5-Manager-Server-5-0-BYOS Image SLES15-SP5-Manager-Server-5-0-BYOS-Azure Image SLES15-SP5-Manager-Server-5-0-BYOS-EC2 Image SLES15-SP5-Manager-Server-5-0-BYOS-GCE Image SLES15-SP5-Manager-Server-5-0-EC2-llc Image SLES15-SP5-Manager-Server-5-0-EC2-ltd Image SLES15-SP5-Micro-5-5 Image SLES15-SP5-Micro-5-5-Azure Image SLES15-SP5-Micro-5-5-BYOS Image SLES15-SP5-Micro-5-5-BYOS-Azure Image SLES15-SP5-Micro-5-5-BYOS-EC2 Image SLES15-SP5-Micro-5-5-BYOS-GCE Image SLES15-SP5-Micro-5-5-EC2 Image SLES15-SP5-Micro-5-5-GCE Image SLES15-SP5-SAPCAL-Azure Image SLES15-SP5-SAPCAL-EC2 Image SLES15-SP5-SAPCAL-GCE Affected
Container suse/sle-micro/kvm-5.5:2.0.4-3.5.304 Affected
Container suse/sle-micro/rt-5.5:2.0.4-4.5.352 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy