# CVE-2023-53034: ntb\_hw\_switchtec: Fix shift-out-of-bounds in switchtec\_ntb\_mw\_set\_trans

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.39% (percentile 25, 2026-11-28)
- **CWE:** CWE-125
- **Published:** 2025-04-16T14:11:41.985Z
- **Modified:** 2026-08-05T09:12:28.373Z

## Who should check

- Anyone running Linux \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< f56951f211f181410a383d305e8d370993e45294; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< 5b6857bb3bfb0dae17fab1e42c1e82c204a508b1; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< 2429bdf26a0f3950fdd996861e9c1a3873af1dbe; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< 7ed22f8d8be26225a78cf5e85b2036421a6bf2d5; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< c61a3f2df162ba424be0141649a9ef5f28eaccc1; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< cb153bdc1812a3375639ed6ca5f147eaefb65349; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< 36d32cfb00d42e865396424bb5d340fc0a28870d; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< 0df2e03e4620548b41891b4e0d1bd9d2e0d8a39a; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< de203da734fae00e75be50220ba5391e7beecdf9
- Anyone running Linux 4.16

## 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 and fixed versions

- Linux: \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< f56951f211f181410a383d305e8d370993e45294; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< 5b6857bb3bfb0dae17fab1e42c1e82c204a508b1; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< 2429bdf26a0f3950fdd996861e9c1a3873af1dbe; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< 7ed22f8d8be26225a78cf5e85b2036421a6bf2d5; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< c61a3f2df162ba424be0141649a9ef5f28eaccc1; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< cb153bdc1812a3375639ed6ca5f147eaefb65349; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< 36d32cfb00d42e865396424bb5d340fc0a28870d; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< 0df2e03e4620548b41891b4e0d1bd9d2e0d8a39a; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< de203da734fae00e75be50220ba5391e7beecdf9 (cvelist)
- Linux: 4.16 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53034. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53034.md
Affected: Linux >= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, < f56951f211f181410a383d305e8d370993e45294; >= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, < 5b6857bb3bfb0dae17fab1e42c1e82c204a508b1; >= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, < 2429bdf26a0f3950fdd996861e9c1a3873af1dbe; >= 1e2fd202f8593985cdadca3…
Fixed in: Linux 5b6857bb3bfb0dae17fab1e42c1e82c204a508b1, Linux 2429bdf26a0f3950fdd996861e9c1a3873af1dbe, Linux 7ed22f8d8be26225a78cf5e85b2036421a6bf2d5, Linux 36d32cfb00d42e865396424bb5d340fc0a28870d, Linux 0df2e03e4620548b41891b4e0d1bd9d2e0d8a39a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53034 being exploited?

There is no confirmed exploitation: CVE-2023-53034 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.39% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2023-53034?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53034?

Linux \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< f56951f211f181410a383d305e8d370993e45294; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< 5b6857bb3bfb0dae17fab1e42c1e82c204a508b1; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< 2429bdf26a0f3950fdd996861e9c1a3873af1dbe; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< 7ed22f8d8be26225a78cf5e85b2036421a6bf2d5; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< c61a3f2df162ba424be0141649a9ef5f28eaccc1; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< cb153bdc1812a3375639ed6ca5f147eaefb65349; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< 36d32cfb00d42e865396424bb5d340fc0a28870d; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< 0df2e03e4620548b41891b4e0d1bd9d2e0d8a39a; \>= 1e2fd202f8593985cdadca32e0c322f98e7fe7cb, \< de203da734fae00e75be50220ba5391e7beecdf9; Linux 4.16.

### Is there a fix for CVE-2023-53034?

Yes. Fixed in Linux 5b6857bb3bfb0dae17fab1e42c1e82c204a508b1, Linux 2429bdf26a0f3950fdd996861e9c1a3873af1dbe, Linux 7ed22f8d8be26225a78cf5e85b2036421a6bf2d5, Linux 36d32cfb00d42e865396424bb5d340fc0a28870d, Linux 0df2e03e4620548b41891b4e0d1bd9d2e0d8a39a. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-53034?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53034>

HTML: <https://flawdb.com/CVE-2023-53034> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53034>
