CVE-2023-53047 tee: amdtee: fix race condition in amdtee_open_session

High 7.8 Published Updated

A race condition in the Linux kernel's AMD TEE driver can lead to a use-after-free and kernel panic, causing denial of service.

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

What is CVE-2023-53047?

CVE-2023-53047 is a high-severity vulnerability in Linux kernel, published on 2 May 2025. 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:

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().

Weakness: CWE-362

Which versions are affected by CVE-2023-53047?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-53047?

Apply the vendor's patch.

Is CVE-2023-53047 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-53047, DEBIAN-CVE-2023-53047, GHSA-r348-7mvp-g684, UBUNTU-CVE-2023-53047.

Is CVE-2023-53047 in your software?

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

Check your SBOMs for free