CVE-2022-49286

tpm: use try_get_ops() in tpm-space.c

MEDIUM
4.7
CVSS Score
Published: February 26, 2025 at 01:56 AM UTC
Updated: August 13, 2026 at 12:35 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.7
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: tpm: use try_get_ops() in tpm-space.c As part of the series conversion to remove nested TPM operations: https://lore.kernel.org/all/[email protected]/ exposure of the chip->tpm_mutex was removed from much of the upper level code. In this conversion, tpm2_del_space() was missed. This didn't matter much because it's usually called closely after a converted operation, so there's only a very tiny race window where the chip can be removed before the space flushing is done which causes a NULL deref on the mutex. However, there are reports of this window being hit in practice, so fix this by converting tpm2_del_space() to use tpm_try_get_ops(), which performs all the teardown checks before acquring the mutex.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.12 ≤ v < 5.10.1094.12 ≤ v < 5.15.324.12 ≤ v < 5.16.184.12 ≤ v < 5.17.14.12 ≤ v < 5.184.12 ≤ v < 5.4.1885.11 ≤ v < 5.15.325.16 ≤ v < 5.16.185.5 ≤ v < 5.10.1094d57856a21ed2abe33412e0526cc84bdcf67ea085.17
Vendor states this is fixed in 476ddd23f818fb94cf86fb5617f3bb9a7c92113d (fixed)
Vendor states this is fixed in 5b1d2561a03e534064b51c50c774657833d3d2cf (fixed)
Vendor states this is fixed in 95193d12f10a8a088843b25e0f5fe1d83ec6b079 (fixed)
Vendor states this is fixed in ba84f9a48366dcc3cdef978599433efe101dd5bd (fixed)
Vendor states this is fixed in eda1662cce964c8a65bb86321f8d9cfa6e9ceaab (fixed)
Vendor states this is fixed in fb5abce6b2bb5cb3d628aaa63fa821da8c4600f9 (fixed)
Vendor states this is fixed in 4.12 (unaffected)
Vendor states this is fixed in 5.10.109 (unaffected)
Vendor states this is fixed in 5.15.32 (unaffected)
Vendor states this is fixed in 5.16.18 (unaffected)
Vendor states this is fixed in 5.17.1 (unaffected)
Vendor states this is fixed in 5.18 (unaffected)
Vendor states this is fixed in 5.4.188 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/476ddd23f818fb94cf86fb5617f3bb9a7c92113d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5b1d2561a03e534064b51c50c774657833d3d2cf
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/95193d12f10a8a088843b25e0f5fe1d83ec6b079
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ba84f9a48366dcc3cdef978599433efe101dd5bd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/eda1662cce964c8a65bb86321f8d9cfa6e9ceaab
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fb5abce6b2bb5cb3d628aaa63fa821da8c4600f9

CVSS

Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card