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

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2025-10-01T07:42:42.344Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 7304d1909080ef0c9da703500a97f46c98393fcd before e4de48e66af17547727bb2e4b1867952817edff7; from 7304d1909080ef0c9da703500a97f46c98393fcd before 1991a458528588ff34e98b6365362560d208710f; 6.15 (not affected: before 6.15; from 6.16.6 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 6.15 before 6.16.6; 6.17

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/e4de48e66af17547727bb2e4b1867952817edff7> (patch)
- <https://git.kernel.org/stable/c/1991a458528588ff34e98b6365362560d208710f> (patch)

## Sources

- CVE List: [CVE-2025-39893](https://www.cve.org/CVERecord?id=CVE-2025-39893), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-39893](https://nvd.nist.gov/vuln/detail/CVE-2025-39893), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-39893 · Whole record: https://cve.day/CVE-2025-39893.json · Rebuilt by cve.day 2026-11-25T22:59:05.379Z
