CVE-2025-21993 iscsi_ibft: Fix UBSAN shift-out-of-bounds warning in ibft_attr_show_nic()
A shift-out-of-bounds error in the Linux kernel iSCSI boot process can trigger a UBSAN warning, potentially leading to a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-21993?
CVE-2025-21993 is a high-severity vulnerability in Linux kernel, published on 2 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-125
Which versions are affected by CVE-2025-21993?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-21993?
Apply the vendor's patch.
Is CVE-2025-21993 being exploited?
There is no known exploitation of CVE-2025-21993 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-59769, AZL-59892, BELL-CVE-2025-21993, DEBIAN-CVE-2025-21993, GHSA-ghxc-pm62-h5fx, UBUNTU-CVE-2025-21993.