[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025100115-CVE-2025-39893-6653@gregkh>
Date: Wed, 1 Oct 2025 09:43:17 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-39893: spi: spi-qpic-snand: unregister ECC engine on probe error and device remove
From: Greg Kroah-Hartman <gregkh@...nel.org>
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.
The Linux kernel CVE team has assigned CVE-2025-39893 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.15 with commit 7304d1909080ef0c9da703500a97f46c98393fcd and fixed in 6.16.6 with commit e4de48e66af17547727bb2e4b1867952817edff7
Issue introduced in 6.15 with commit 7304d1909080ef0c9da703500a97f46c98393fcd and fixed in 6.17 with commit 1991a458528588ff34e98b6365362560d208710f
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-39893
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/spi/spi-qpic-snand.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/e4de48e66af17547727bb2e4b1867952817edff7
https://git.kernel.org/stable/c/1991a458528588ff34e98b6365362560d208710f
Powered by blists - more mailing lists