CVE-2025-21993
JSON

7.1high

iscsi_ibft: Fix UBSAN shift-out-of-bounds warning in ibft_attr_show_nic()

Severity
7.1high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 138fe4e069798d9aa948a5402ff15e58f483ee4e before a858cd58dea06cf85b142673deea8c5d87f11e70, from 138fe4e069798d9aa948a5402ff15e58f483ee4e before f763c82db8166e28f45b7cc4a5398a7859665940, from 138fe4e069798d9aa948a5402ff15e58f483ee4e before b388e185bfad32bfed6a97a6817f74ca00a4318f, from 138fe4e069798d9aa948a5402ff15e58f483ee4e before 9bfa80c8aa4e06dff55a953c3fffbfc68a3a3b1c, from 138fe4e069798d9aa948a5402ff15e58f483ee4e before 2d1eef248107bdf3d5a69d0fde04c30a79a7bf5d, from 138fe4e069798d9aa948a5402ff15e58f483ee4e before b253660fac5e0e9080d2c95e3a029e1898d49afb, from 138fe4e069798d9aa948a5402ff15e58f483ee4e before c1c6e527470e5eab0b2d57bd073530fbace39eab, from 138fe4e069798d9aa948a5402ff15e58f483ee4e before 07e0d99a2f701123ad3104c0f1a1e66bce74d6e5 and 1 more
Not affected: before 2.6.26, from 5.4.292 up to 5.4.*, from 5.10.236 up to 5.10.*, from 5.15.180 up to 5.15.*, from 6.1.132 up to 6.1.*, from 6.6.84 up to 6.6.*
CVE List
linux linux_kernelbefore 6.1.132, from 6.2 before 6.6.84, from 6.7 before 6.12.20, from 6.13 before 6.13.8, 6.14NVD

All scores

CISA-ADP7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
NVD7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Classification

CWE-125

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: iscsi_ibft: Se corrige la advertencia de desplazamiento fuera de los límites de UBSAN en ibft_attr_show_nic(). Al realizar un arranque iSCSI con IPv6, iscsistart sigue leyendo la entrada /sys/firmware/ibft/ethernetX/subnet-mask. Dado que la longitud del prefijo IPv6 es 64, esto hace que el exponente de desplazamiento sea negativo, lo que activa una advertencia de UBSAN. Dado que el concepto de máscara de subred no se aplica a IPv6, el valor se establece en ~0 para suprimir el mensaje de advertencia.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-21993 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-21993 changed 2026-06-17Public domain