{"id":"CVE-2023-53034","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:\n\nntb_hw_switchtec: Fix shift-out-of-bounds in switchtec_ntb_mw_set_trans\n\nThere is a kernel API ntb_mw_clear_trans() would pass 0 to both addr and\nsize. This would make xlate_pos negative.\n\n[   23.734156] switchtec switchtec0: MW 0: part 0 addr 0x0000000000000000 size 0x0000000000000000\n[   23.734158] ================================================================================\n[   23.734172] UBSAN: shift-out-of-bounds in drivers/ntb/hw/mscc/ntb_hw_switchtec.c:293:7\n[   23.734418] shift exponent -1 is negative\n\nEnsuring xlate_pos is a positive or zero before BIT.","modified":"2026-04-11T12:46:40.046244Z","published":"2025-04-16T14:11:41.985Z","related":["ALSA-2026:2721","ALSA-2026:2722","MGASA-2025-0142","MGASA-2025-0146","SUSE-SU-2025:01614-1","SUSE-SU-2025:01707-1","SUSE-SU-2025:01919-1","SUSE-SU-2025:01951-1","SUSE-SU-2025:01964-1","SUSE-SU-2025:01967-1","SUSE-SU-2025:01972-1","SUSE-SU-2025:20343-1","SUSE-SU-2025:20344-1","SUSE-SU-2025:20354-1","SUSE-SU-2025:20355-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53034.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0df2e03e4620548b41891b4e0d1bd9d2e0d8a39a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2429bdf26a0f3950fdd996861e9c1a3873af1dbe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/36d32cfb00d42e865396424bb5d340fc0a28870d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5b6857bb3bfb0dae17fab1e42c1e82c204a508b1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7ed22f8d8be26225a78cf5e85b2036421a6bf2d5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c61a3f2df162ba424be0141649a9ef5f28eaccc1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cb153bdc1812a3375639ed6ca5f147eaefb65349"},{"type":"WEB","url":"https://git.kernel.org/stable/c/de203da734fae00e75be50220ba5391e7beecdf9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f56951f211f181410a383d305e8d370993e45294"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53034.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53034"},{"type":"PACKAGE","url":"https://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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.16.0"},{"fixed":"5.4.292"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.236"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.180"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.134"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.87"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.23"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.13.11"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.14.0"},{"fixed":"6.14.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53034.json"}}],"schema_version":"1.7.5"}