CVE-2025-39893 spi: spi-qpic-snand: unregister ECC engine on probe error and device remove

Medium 5.5 Published Updated

A use-after-free vulnerability in the Linux kernel's QPIC SNAND SPI driver allows attackers to cause denial of service or execute code via improper ECC engine unregistration.

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-39893?

CVE-2025-39893 is a medium-severity use after free vulnerability in Linux kernel, published on 1 Oct 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:

spi: spi-qpic-snand: unregister ECC engine on probe error and device remove

The on-host hardware ECC engine remains registered both when the spi_register_controller() function returns with an error and also on device removal.

Change the qcom_spi_probe() function to unregister the engine on the error path, and add the missing unregistering call to qcom_spi_remove() to avoid possible use-after-free issues.

Weakness: CWE-401

Which versions are affected by CVE-2025-39893?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-39893?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2025-39893 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-39893, DEBIAN-CVE-2025-39893, GHSA-733m-qp96-w42h, UBUNTU-CVE-2025-39893.

Is CVE-2025-39893 in your software?

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

Check your SBOMs for free