CVE-2023-52503

tee: amdtee: fix use-after-free vulnerability in amdtee_close_session

HIGH
7
CVSS Score
Published: March 2, 2024 at 09:52 PM UTC
Updated: August 5, 2026 at 09: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
HIGH7
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: tee: amdtee: fix use-after-free vulnerability in amdtee_close_session There is a potential race condition in amdtee_close_session that may cause use-after-free in amdtee_open_session. For instance, if a session has refcount == 1, and one thread tries to free this session via: kref_put(&sess->refcount, destroy_session); the reference count will get decremented, and the next step would be to call destroy_session(). However, if in another thread, amdtee_open_session() is called before destroy_session() has completed execution, alloc_session() may return 'sess' that will be freed up later in destroy_session() leading to use-after-free in amdtee_open_session. To fix this issue, treat decrement of sess->refcount and removal of 'sess' from session list in destroy_session() as a critical section, so that it is executed atomically.

Affected

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

5.11 ≤ v < 5.15.1365.16 ≤ v < 6.1.595.6 ≤ v < 5.10.1995.6 ≤ v < 5.15.1365.6 ≤ v < 6.1.595.6 ≤ v < 6.5.85.6 ≤ v < 6.66.2 ≤ v < 6.5.86.6 rc16.6 rc26.6 rc36.6 rc46.6 rc5757cc3e9ff1d72d014096399d6e2bf03974d9da1
Vendor states this is fixed in 1680c82929bc14d706065f123dab77f2f1293116 (fixed)
Vendor states this is fixed in 1c95574350cd63bc3c5c2fa06658010768f2a0ce (fixed)
Vendor states this is fixed in 60c3e7a00db954947c265b55099c21b216f2a05c (fixed)
Vendor states this is fixed in da7ce52a2f6c468946195b116615297d3d113a27 (fixed)
Vendor states this is fixed in f4384b3e54ea813868bb81a861bf5b2406e15d8f (fixed)
Vendor states this is fixed in 5.10.199 (unaffected)
Vendor states this is fixed in 5.15.136 (unaffected)
Vendor states this is fixed in 5.6 (unaffected)
Vendor states this is fixed in 6.1.59 (unaffected)
Vendor states this is fixed in 6.5.8 (unaffected)
Vendor states this is fixed in 6.6 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1680c82929bc14d706065f123dab77f2f1293116
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1c95574350cd63bc3c5c2fa06658010768f2a0ce
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/60c3e7a00db954947c265b55099c21b216f2a05c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/da7ce52a2f6c468946195b116615297d3d113a27
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f4384b3e54ea813868bb81a861bf5b2406e15d8f

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

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

Quick Info

StatusMODIFIED
CWE
CWE-416

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