CVE-2026-45857: scsi: csiostor: Fix dereference of null pointer rn
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
scsi: csiostor: Fix dereference of null pointer rn
The error exit path when rn is NULL ends up deferencing the null pointer rn via the use of the macro CSIO_INC_STATS. Fix this by adding a new error return path label after the use of the macro to avoid the deference.
The Linux kernel CVE team has assigned CVE-2026-45857 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.8 with commit a3667aaed5698b84bad2f1b3f71adc86499f4bc6 and fixed in 5.10.252 with commit 16ccbfddcb32365138c806cf572e69b42a193c5c Issue introduced in 3.8 with commit a3667aaed5698b84bad2f1b3f71adc86499f4bc6 and fixed in 5.15.202 with commit 44ef9f81392de885883f73b9f5c43936a82ae9d7 Issue introduced in 3.8 with commit a3667aaed5698b84bad2f1b3f71adc86499f4bc6 and fixed in 6.1.165 with commit 526ea3c0ccd495b0079db3e28fdddd51c1bf01f7 Issue introduced in 3.8 with commit a3667aaed5698b84bad2f1b3f71adc86499f4bc6 and fixed in 6.6.128 with commit 25d623f0d77c11a256a54e860d00c239aa9a2583 Issue introduced in 3.8 with commit a3667aaed5698b84bad2f1b3f71adc86499f4bc6 and fixed in 6.12.75 with commit 6037124dbf675fbd0a6248aaf04cf07387b8c323 Issue introduced in 3.8 with commit a3667aaed5698b84bad2f1b3f71adc86499f4bc6 and fixed in 6.18.14 with commit 25ab5e97d3c5f3ed594b4a65d1cc99dc24756681 Issue introduced in 3.8 with commit a3667aaed5698b84bad2f1b3f71adc86499f4bc6 and fixed in 6.19.4 with commit 3bbbab7b6949c76df64210348adbefedaabbf549 Issue introduced in 3.8 with commit a3667aaed5698b84bad2f1b3f71adc86499f4bc6 and fixed in 7.0 with commit 1982257570b84dc33753d536dd969fd357a014e9
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-45857
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/csiostor/csio_scsi.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/16ccbfddcb32365138c806cf572e69b42a193c5c https://git.kernel.org/stable/c/44ef9f81392de885883f73b9f5c43936a82ae9d7 https://git.kernel.org/stable/c/526ea3c0ccd495b0079db3e28fdddd51c1bf01f7 https://git.kernel.org/stable/c/25d623f0d77c11a256a54e860d00c239aa9a2583 https://git.kernel.org/stable/c/6037124dbf675fbd0a6248aaf04cf07387b8c323 https://git.kernel.org/stable/c/25ab5e97d3c5f3ed594b4a65d1cc99dc24756681 https://git.kernel.org/stable/c/3bbbab7b6949c76df64210348adbefedaabbf549 https://git.kernel.org/stable/c/1982257570b84dc33753d536dd969fd357a014e9