7.1high
ntb_hw_switchtec: Fix shift-out-of-bounds in switchtec_ntb_mw_set_trans
- Severity
- 7.1high CVSS:3.1 by Linux
- Exploit likelihood
- 0.30% (higher than 24% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ntb_hw_switchtec: Fix shift-out-of-bounds in switchtec_ntb_mw_set_trans There is a kernel API ntb_mw_clear_trans() would pass 0 to both addr and size. This would make xlate_pos negative. [ 23.734156] switchtec switchtec0: MW 0: part 0 addr 0x0000000000000000 size 0x0000000000000000 [ 23.734158] ================================================================================ [ 23.734172] UBSAN: shift-out-of-bounds in drivers/ntb/hw/mscc/ntb_hw_switchtec.c:293:7 [ 23.734418] shift exponent -1 is negative Ensuring xlate_pos is a positive or zero before BIT.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 1e2fd202f8593985cdadca32e0c322f98e7fe7cb before f56951f211f181410a383d305e8d370993e45294, from 1e2fd202f8593985cdadca32e0c322f98e7fe7cb before 5b6857bb3bfb0dae17fab1e42c1e82c204a508b1, from 1e2fd202f8593985cdadca32e0c322f98e7fe7cb before 2429bdf26a0f3950fdd996861e9c1a3873af1dbe, from 1e2fd202f8593985cdadca32e0c322f98e7fe7cb before 7ed22f8d8be26225a78cf5e85b2036421a6bf2d5, from 1e2fd202f8593985cdadca32e0c322f98e7fe7cb before c61a3f2df162ba424be0141649a9ef5f28eaccc1, from 1e2fd202f8593985cdadca32e0c322f98e7fe7cb before cb153bdc1812a3375639ed6ca5f147eaefb65349, from 1e2fd202f8593985cdadca32e0c322f98e7fe7cb before 36d32cfb00d42e865396424bb5d340fc0a28870d, from 1e2fd202f8593985cdadca32e0c322f98e7fe7cb before 0df2e03e4620548b41891b4e0d1bd9d2e0d8a39a and 2 more Not affected: before 4.16, 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.134 up to 6.1.*, from 6.6.87 up to 6.6.* | CVE List |
| linux linux_kernel | from 4.16 before 5.4.292, from 5.5 before 5.10.236, from 5.11 before 5.15.180, from 5.16 before 6.1.134, from 6.2 before 6.6.87, from 6.7 before 6.12.23, from 6.13 before 6.13.11, from 6.14 before 6.14.2 | NVD |
All scores
| Linux | 7.1high CVSS:3.1 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
| NVD | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Classification
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: ntb_hw_switchtec: Fix shift-out-of-bounds in switchtec_ntb_mw_set_trans There is a kernel API ntb_mw_clear_trans() would pass 0 to both addr and size. This would make xlate_pos negative. [ 23.734156] switchtec switchtec0: MW 0: part 0 addr 0x0000000000000000 size 0x0000000000000000 [ 23.734158] ================================================================================ [ 23.734172] UBSAN: shift-out-of-bounds in drivers/ntb/hw/mscc/ntb_hw_switchtec.c:293:7 [ 23.734418] shift exponent -1 is negative Ensuring xlate_pos is a positive or zero before BIT.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ntb_hw_switchtec: Se corrige el desplazamiento fuera de los límites en switchtec_ntb_mw_set_trans. Existe una API del kernel ntb_mw_clear_trans() que pasaría 0 tanto a addr como a size. Esto haría que xlate_pos fuera negativo. [ 23.734156] switchtec switchtec0: MW 0: parte 0 addr 0x0000000000000000 tamaño 0x0000000000000000 [ 23.734158] ======================================================================================== [ 23.734172] UBSAN: desplazamiento fuera de los límites en drivers/ntb/hw/mscc/ntb_hw_switchtec.c:293:7 [ 23.734418] el exponente de desplazamiento -1 es negativo. Se garantiza que xlate_pos sea positivo o cero antes de BIT.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-53034 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2023-53034 changed 2026-08-04 | Public domain |