CVE-2025-21993: iscsi_ibft: Fix UBSAN shift-out-of-bounds warning in ibft_attr_show_nic()
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.
Security readout for executives and security teams
Plain-English summary
This Linux kernel issue affects systems using iSCSI boot with IPv6. A kernel path handling iBFT network attributes can trigger undefined behavior when representing an IPv6 prefix as a subnet mask. The source bundle rates it high, but exposure appears narrow and tied to local access plus specific boot configuration.
Executive priority
Treat as high priority for infrastructure teams managing Linux iSCSI-booted systems. For general Linux fleets, prioritize normal kernel patch cycles unless iSCSI IPv6 boot is present.
Technical view
The flaw is in iscsi_ibft ibft_attr_show_nic(). When iscsistart reads the subnet-mask sysfs attribute during IPv6 iSCSI boot, a prefix length of 64 can produce a negative shift exponent, triggering a UBSAN shift-out-of-bounds condition. Kernel stable commits set the value to ~0 because IPv6 has no subnet-mask concept.
Likely exposure
Most exposed assets are Linux hosts that boot from iSCSI using IPv6 and run affected kernel versions. The CVSS vector is local with low privileges required, so internet-facing exposure is not indicated by the provided sources.
Exploitation context
The provided bundle does not show KEV listing or active exploitation. Practical exploitation evidence is incomplete; the public description confirms a UBSAN shift-out-of-bounds condition, while the CVSS indicates potential confidentiality and availability impact.
Researcher notes
The evidence names a specific kernel logic error and stable fixes but does not demonstrate exploitation. Validate branch-specific impact carefully because affected version data is broad and includes multiple stable kernel lines.
Mitigation direction
Apply distribution or vendor kernel updates that include the referenced stable fixes.
Prioritize Linux systems using iSCSI boot with IPv6.
Review Debian LTS advisories if running affected Debian kernels.
If no patched kernel is available, follow vendor guidance for temporary risk reduction.
Validation and detection
Inventory Linux kernel versions across servers and virtual machines.
Identify hosts using iSCSI boot, especially with IPv6 configuration.
Check vendor advisories for a fixed kernel package or backported patch.
Confirm patched systems include the applicable stable commit for their kernel branch.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-125: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-125 · source CWE mapping
Out-of-bounds Read
Out-of-bounds Read represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.