iscsi_ibft: Fix UBSAN shift-out-of-bounds warning in ibft_attr_show_nic()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 138fe4e069798d9aa948a5402ff15e58f483ee4e · < b253660fac5e0e9080d2c95e3a029e1898d49afb| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
During an IPv6 iSCSI boot, iscsistart reads the iBFT subnet-mask entry, causing a negative shift exponent and a UBSAN warning in ibft_attr_show_nic(). The input does not describe an attacker action, authentication requirement, or user interaction.
Engineers running Linux kernels used for IPv6 iSCSI boot should check their systems; affected versions are not specified.