What’s Vulnerable › Vulnerabilities
CVE-2025-39893: spi: spi-qpic-snand: unregister ECC engine on probe error and device remove
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-10-01 · updated 2026-10-19
- Weakness: CWE-401
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.
Affected products
- Linux kernel: from 6.15 before 6.16.6; 6.17-rc1, 6.17-rc2, 6.17-rc3, 6.17-rc4 — fixed in 6.16.6
How to fix
Upgrade to a fixed version: Linux kernel 6.16.6. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/1991a458528588ff34e98b6365362560d208710f
- https://git.kernel.org/stable/c/e4de48e66af17547727bb2e4b1867952817edff7
Get alerted when CVE-2025-39893 or the next vulnerability affects your stack