spi: spi-qpic-snand: unregister ECC engine on probe error and device remove
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.16.6
- CVEs
- CVE-2025-39893
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 00:47 UTC · Revision 1
Source evidence
spi: spi-qpic-snand: unregister ECC engine on probe error and device remove
core-osv · Original sourcePublished 1 Oct 2025, 07:42 UTC
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.
osv:CVE-2025-39893
Kernel
Fixed versions: 6.16.6
Complete source record
{
"id": "e1640a203f91a1f1279aa28e1f4d1bedc08589edc90d5e79c0dcd830511ced6d",
"url": "https://osv.dev/vulnerability/CVE-2025-39893",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "spi: spi-qpic-snand: unregister ECC engine on probe error and device remove",
"summary": "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.",
"evidence": "osv:CVE-2025-39893",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.16.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2025-39893",
"aliases": [
"CVE-2025-39893"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "7304d1909080ef0c9da703500a97f46c98393fcd"
},
{
"fixed": "e4de48e66af17547727bb2e4b1867952817edff7"
},
{
"fixed": "1991a458528588ff34e98b6365362560d208710f"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39893.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.15.0"
},
{
"fixed": "6.16.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39893.json"
}
}
],
"modified": "2026-10-28T02:30:48.495383662Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/1991a458528588ff34e98b6365362560d208710f",
"https://git.kernel.org/stable/c/e4de48e66af17547727bb2e4b1867952817edff7",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39893.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-39893",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39893.json"
}
},
"related_cves": [
{
"value": "CVE-2025-39893",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 516732,
"published_at": "2025-10-01T07:42:42.344+00:00"
}