# CVE-2023-53034: ntb_hw_switchtec: Fix shift-out-of-bounds in switchtec_ntb_mw_set_trans

- Severity: High 7.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2025-04-16T14:11:41.985Z
- Modified: 2026-08-05T09:12:28.373Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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; from 1e2fd202f8593985cdadca32e0c322f98e7fe7cb before de203da734fae00e75be50220ba5391e7beecdf9; 4.16 (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.*; from 6.12.23 up to 6.12.*; from 6.13.11 up to 6.13.*; from 6.14.2 up to 6.14.*; from 6.15 up to *)
- 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

## Every score

- Linux: CVSS:3.1 7.1 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/f56951f211f181410a383d305e8d370993e45294> (patch)
- <https://git.kernel.org/stable/c/5b6857bb3bfb0dae17fab1e42c1e82c204a508b1> (patch)
- <https://git.kernel.org/stable/c/2429bdf26a0f3950fdd996861e9c1a3873af1dbe> (patch)
- <https://git.kernel.org/stable/c/7ed22f8d8be26225a78cf5e85b2036421a6bf2d5> (patch)
- <https://git.kernel.org/stable/c/c61a3f2df162ba424be0141649a9ef5f28eaccc1> (patch)
- <https://git.kernel.org/stable/c/cb153bdc1812a3375639ed6ca5f147eaefb65349> (patch)
- <https://git.kernel.org/stable/c/36d32cfb00d42e865396424bb5d340fc0a28870d> (patch)
- <https://git.kernel.org/stable/c/0df2e03e4620548b41891b4e0d1bd9d2e0d8a39a> (patch)
- <https://git.kernel.org/stable/c/de203da734fae00e75be50220ba5391e7beecdf9> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Sources

- CVE List: [CVE-2023-53034](https://www.cve.org/CVERecord?id=CVE-2023-53034), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-53034](https://nvd.nist.gov/vuln/detail/CVE-2023-53034), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2023-53034 · Whole record: https://cve.day/CVE-2023-53034.json · Rebuilt by cve.day 2026-11-25T22:58:34.622Z
