CVE-2025-71308 accel/amdxdna: Fix potential NULL pointer dereference in context cleanup

Medium 5.5 Published Updated

A NULL pointer dereference in the AMD XDNA accelerator driver can cause a kernel crash during context cleanup errors.

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-2025-71308?

CVE-2025-71308 is a medium-severity vulnerability in Linux kernel, published on 27 May 2026. 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:

accel/amdxdna: Fix potential NULL pointer dereference in context cleanup

aie_destroy_context() is invoked during error handling in aie2_create_context(). However, aie_destroy_context() assumes that the context's mailbox channel pointer is non-NULL. If mailbox channel creation fails, the pointer remains NULL and calling aie_destroy_context() can lead to a NULL pointer dereference.

In aie2_create_context(), replace aie_destroy_context() with a function which request firmware to remove the context created previously.

Weakness: CWE-476

Which versions are affected by CVE-2025-71308?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-71308?

Apply the vendor's patch.

Is CVE-2025-71308 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-71308, DEBIAN-CVE-2025-71308, GHSA-m32w-q6hx-h7w8, UBUNTU-CVE-2025-71308.

Is CVE-2025-71308 in your software?

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

Check your SBOMs for free