CVE-2023-53034

Source
https://cve.org/CVERecord?id=CVE-2023-53034
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53034.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-53034
Downstream
Related
Published
2025-04-16T14:11:41.985Z
Modified
2026-03-12T03:27:55.853656Z
Summary
ntb_hw_switchtec: Fix shift-out-of-bounds in switchtec_ntb_mw_set_trans
Details

In the Linux kernel, the following vulnerability has been resolved:

ntbhwswitchtec: Fix shift-out-of-bounds in switchtecntbmwsettrans

There is a kernel API ntbmwcleartrans() would pass 0 to both addr and size. This would make xlatepos 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/ntbhwswitchtec.c:293:7 [ 23.734418] shift exponent -1 is negative

Ensuring xlate_pos is a positive or zero before BIT.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53034.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1e2fd202f8593985cdadca32e0c322f98e7fe7cb
Fixed
f56951f211f181410a383d305e8d370993e45294
Fixed
5b6857bb3bfb0dae17fab1e42c1e82c204a508b1
Fixed
2429bdf26a0f3950fdd996861e9c1a3873af1dbe
Fixed
7ed22f8d8be26225a78cf5e85b2036421a6bf2d5
Fixed
c61a3f2df162ba424be0141649a9ef5f28eaccc1
Fixed
cb153bdc1812a3375639ed6ca5f147eaefb65349
Fixed
36d32cfb00d42e865396424bb5d340fc0a28870d
Fixed
0df2e03e4620548b41891b4e0d1bd9d2e0d8a39a
Fixed
de203da734fae00e75be50220ba5391e7beecdf9

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53034.json"