CVE-2026-80653: scsi: hisi_sas: Add slave_destroy interface for v3 hw
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
scsi: hisi_sas: Add slave_destroy interface for v3 hw
WARNING is triggered when executing link reset of remote PHY and rmmod SAS driver simultaneously. Following is the WARNING log:
WARNING: CPU: 61 PID: 21818 at drivers/base/core.c:1347 __device_links_no_driver+0xb4/0xc0 Call trace: __device_links_no_driver+0xb4/0xc0 device_links_driver_cleanup+0xb0/0xfc __device_release_driver+0x198/0x23c device_release_driver+0x38/0x50 bus_remove_device+0x130/0x140 device_del+0x184/0x434 __scsi_remove_device+0x118/0x150 scsi_remove_target+0x1bc/0x240 sas_rphy_remove+0x90/0x94 sas_rphy_delete+0x24/0x3c sas_destruct_devices+0x64/0xa0 [libsas] sas_revalidate_domain+0xe4/0x150 [libsas] process_one_work+0x1e0/0x46c worker_thread+0x15c/0x464 kthread+0x160/0x170 ret_from_fork+0x10/0x20 ---[ end trace 71e059eb58f85d4a ]---
During SAS phy up, link->status is set to DL_STATE_AVAILABLE in device_links_driver_bound, then this setting influences __device_links_no_driver() before driver rmmod and caused WARNING.
Add the slave_destroy interface to make sure link is removed after flush workque.
The Linux kernel CVE team has assigned CVE-2026-80653 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10 with commit 16fd4a7c5917097e9a3da03b39a92381eee40724 and fixed in 6.18.40 with commit cb414aff28e18e6f5cff9f87ea31376ed8af317b Issue introduced in 5.10 with commit 16fd4a7c5917097e9a3da03b39a92381eee40724 and fixed in 7.1.5 with commit 4867dba229292e13fc19ed865ec1839661952ff9 Issue introduced in 5.10 with commit 16fd4a7c5917097e9a3da03b39a92381eee40724 and fixed in 7.2 with commit 67b85a88265df19f049241d8c00571a5408f4eeb
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-2026-80653
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/scsi/hisi_sas/hisi_sas_v3_hw.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/cb414aff28e18e6f5cff9f87ea31376ed8af317b https://git.kernel.org/stable/c/4867dba229292e13fc19ed865ec1839661952ff9 https://git.kernel.org/stable/c/67b85a88265df19f049241d8c00571a5408f4eeb