blob: 4ec94b82347ac71f3c19eb855e5bb01256cd3386 [file] [log] [blame]
From bippy-1.2.0 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@kernel.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2025-37838: HSI: ssi_protocol: Fix use after free vulnerability in ssi_protocol Driver Due to Race Condition
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
HSI: ssi_protocol: Fix use after free vulnerability in ssi_protocol Driver Due to Race Condition
In the ssi_protocol_probe() function, &ssi->work is bound with
ssip_xmit_work(), In ssip_pn_setup(), the ssip_pn_xmit() function
within the ssip_pn_ops structure is capable of starting the
work.
If we remove the module which will call ssi_protocol_remove()
to make a cleanup, it will free ssi through kfree(ssi),
while the work mentioned above will be used. The sequence
of operations that may lead to a UAF bug is as follows:
CPU0 CPU1
| ssip_xmit_work
ssi_protocol_remove |
kfree(ssi); |
| struct hsi_client *cl = ssi->cl;
| // use ssi
Fix it by ensuring that the work is canceled before proceeding
with the cleanup in ssi_protocol_remove().
The Linux kernel CVE team has assigned CVE-2025-37838 to this issue.
Affected and fixed versions
===========================
Fixed in 5.4.293 with commit d03abc1c2b21324550fa71e12d53e7d3498e0af6
Fixed in 5.10.237 with commit 4a8c29beb8a02b5a0a9d77d608aa14b6f88a6b86
Fixed in 5.15.181 with commit 72972552d0d0bfeb2dec5daf343a19018db36ffa
Fixed in 6.1.135 with commit d58493832e284f066e559b8da5ab20c15a2801d3
Fixed in 6.6.88 with commit 58eb29dba712ab0f13af59ca2fe545f5ce360e78
Fixed in 6.12.24 with commit ae5a6a0b425e8f76a9f0677e50796e494e89b088
Fixed in 6.13.12 with commit 834e602d0cc7c743bfce734fad4a46cefc0f9ab1
Fixed in 6.14.3 with commit 4b4194c9a7a8f92db39e8e86c85f4fb12ebbec4f
Fixed in 6.15 with commit e3f88665a78045fe35c7669d2926b8d97b892c11
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-37838
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/hsi/clients/ssi_protocol.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/d03abc1c2b21324550fa71e12d53e7d3498e0af6
https://git.kernel.org/stable/c/4a8c29beb8a02b5a0a9d77d608aa14b6f88a6b86
https://git.kernel.org/stable/c/72972552d0d0bfeb2dec5daf343a19018db36ffa
https://git.kernel.org/stable/c/d58493832e284f066e559b8da5ab20c15a2801d3
https://git.kernel.org/stable/c/58eb29dba712ab0f13af59ca2fe545f5ce360e78
https://git.kernel.org/stable/c/ae5a6a0b425e8f76a9f0677e50796e494e89b088
https://git.kernel.org/stable/c/834e602d0cc7c743bfce734fad4a46cefc0f9ab1
https://git.kernel.org/stable/c/4b4194c9a7a8f92db39e8e86c85f4fb12ebbec4f
https://git.kernel.org/stable/c/e3f88665a78045fe35c7669d2926b8d97b892c11