blob: 6d2fc44ce35f145f794652624eaf0f4aa43d062c [file] [log] [blame]
From bippy-7c5fe7eed585 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2025-21993: iscsi_ibft: Fix UBSAN shift-out-of-bounds warning in ibft_attr_show_nic()
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iscsi_ibft: Fix UBSAN shift-out-of-bounds warning in ibft_attr_show_nic()
When performing an iSCSI boot using IPv6, iscsistart still reads the
/sys/firmware/ibft/ethernetX/subnet-mask entry. Since the IPv6 prefix
length is 64, this causes the shift exponent to become negative,
triggering a UBSAN warning. As the concept of a subnet mask does not
apply to IPv6, the value is set to ~0 to suppress the warning message.
The Linux kernel CVE team has assigned CVE-2025-21993 to this issue.
Affected and fixed versions
===========================
Fixed in 5.4.292 with commit a858cd58dea06cf85b142673deea8c5d87f11e70
Fixed in 5.10.236 with commit f763c82db8166e28f45b7cc4a5398a7859665940
Fixed in 5.15.180 with commit b388e185bfad32bfed6a97a6817f74ca00a4318f
Fixed in 6.1.132 with commit 9bfa80c8aa4e06dff55a953c3fffbfc68a3a3b1c
Fixed in 6.6.84 with commit 2d1eef248107bdf3d5a69d0fde04c30a79a7bf5d
Fixed in 6.12.20 with commit b253660fac5e0e9080d2c95e3a029e1898d49afb
Fixed in 6.13.8 with commit c1c6e527470e5eab0b2d57bd073530fbace39eab
Fixed in 6.14 with commit 07e0d99a2f701123ad3104c0f1a1e66bce74d6e5
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-21993
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/firmware/iscsi_ibft.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/a858cd58dea06cf85b142673deea8c5d87f11e70
https://git.kernel.org/stable/c/f763c82db8166e28f45b7cc4a5398a7859665940
https://git.kernel.org/stable/c/b388e185bfad32bfed6a97a6817f74ca00a4318f
https://git.kernel.org/stable/c/9bfa80c8aa4e06dff55a953c3fffbfc68a3a3b1c
https://git.kernel.org/stable/c/2d1eef248107bdf3d5a69d0fde04c30a79a7bf5d
https://git.kernel.org/stable/c/b253660fac5e0e9080d2c95e3a029e1898d49afb
https://git.kernel.org/stable/c/c1c6e527470e5eab0b2d57bd073530fbace39eab
https://git.kernel.org/stable/c/07e0d99a2f701123ad3104c0f1a1e66bce74d6e5