CVE-2023-53047

tee: amdtee: fix race condition in amdtee_open_session

MEDIUM
4.7
CVSS Score
Published: May 2, 2025 at 03:55 PM UTC
Updated: August 5, 2026 at 10:24 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.1%

Description

In the Linux kernel, the following vulnerability has been resolved: tee: amdtee: fix race condition in amdtee_open_session There is a potential race condition in amdtee_open_session that may lead to use-after-free. For instance, in amdtee_open_session() after sess->sess_mask is set, and before setting: sess->session_info[i] = session_info; if amdtee_close_session() closes this same session, then 'sess' data structure will be released, causing kernel panic when 'sess' is accessed within amdtee_open_session(). The solution is to set the bit sess->sess_mask as the last step in amdtee_open_session().

Affected

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

5.11 ≤ v < 5.15.1055.16 ≤ v < 6.1.225.6 ≤ v < 5.10.1775.6 ≤ v < 5.15.1055.6 ≤ v < 6.1.225.6 ≤ v < 6.2.95.6 ≤ v < 6.36.2 ≤ v < 6.2.96.3 rc16.3 rc26.3 rc3757cc3e9ff1d72d014096399d6e2bf03974d9da1
Vendor states this is fixed in 02b296978a2137d7128151c542e84dc96400bc00 (fixed)
Vendor states this is fixed in a63cce9393e4e7dbc5af82dc87e68cb321cb1a78 (fixed)
Vendor states this is fixed in b3ef9e6fe09f1a132af28c623edcf4d4f39d9f35 (fixed)
Vendor states this is fixed in f632a90f8e39db39b322107b9a8d438b826a7f4f (fixed)
Vendor states this is fixed in f8502fba45bd30e1a6a354d9d898bc99d1a11e6d (fixed)
Vendor states this is fixed in 5.10.177 (unaffected)
Vendor states this is fixed in 5.15.105 (unaffected)
Vendor states this is fixed in 5.6 (unaffected)
Vendor states this is fixed in 6.1.22 (unaffected)
Vendor states this is fixed in 6.2.9 (unaffected)
Vendor states this is fixed in 6.3 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/02b296978a2137d7128151c542e84dc96400bc00
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a63cce9393e4e7dbc5af82dc87e68cb321cb1a78
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b3ef9e6fe09f1a132af28c623edcf4d4f39d9f35
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f632a90f8e39db39b322107b9a8d438b826a7f4f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f8502fba45bd30e1a6a354d9d898bc99d1a11e6d

CVSS

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

Quick Info

StatusMODIFIED
CWE
CWE-362

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