CVE-2023-53393 json
RDMA/mlx5: Fix mlx5_ib_get_hw_stats when used for device
published 2025-09-18 13 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-29959
- cvss
- 5.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 4%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
RDMA/mlx5: Fix mlx5_ib_get_hw_stats when used for device
Currently, when mlx5_ib_get_hw_stats() is used for device (port_num = 0), there is a special handling in order to use the correct counters, but, port_num is being passed down the stack without any change. Also, some functions assume that port_num >=1. As a result, the following oops can occur.
BUG: unable to handle page fault for address: ffff89510294f1a8 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 0 P4D 0 Oops: 0002 [#1] SMP CPU: 8 PID: 1382 Comm: devlink Tainted: G W 6.1.0-rc4_for_upstream_base_2022_11_10_16_12 #1 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014 RIP: 0010:_raw_spin_lock+0xc/0x20 Call Trace: <TASK> mlx5_ib_get_native_port_mdev+0x73/0xe0 [mlx5_ib] do_get_hw_stats.constprop.0+0x109/0x160 [mlx5_ib] mlx5_ib_get_hw_stats+0xad/0x180 [mlx5_ib] ib_setup_device_attrs+0xf0/0x290 [ib_core] ib_register_device+0x3bb/0x510 [ib_core] ? atomic_notifier_chain_register+0x67/0x80 __mlx5_ib_add+0x2b/0x80 [mlx5_ib] mlx5r_probe+0xb8/0x150 [mlx5_ib] ? auxiliary_match_id+0x6a/0x90 auxiliary_bus_probe+0x3c/0x70 ? driver_sysfs_add+0x6b/0x90 really_probe+0xcd/0x380 __driver_probe_device+0x80/0x170 driver_probe_device+0x1e/0x90 __device_attach_driver+0x7d/0x100 ? driver_allows_async_probing+0x60/0x60 ? driver_allows_async_probing+0x60/0x60 bus_for_each_drv+0x7b/0xc0 __device_attach+0xbc/0x200 bus_probe_device+0x87/0xa0 device_add+0x404/0x940 ? dev_set_name+0x53/0x70 __auxiliary_device_add+0x43/0x60 add_adev+0x99/0xe0 [mlx5_core] mlx5_attach_device+0xc8/0x120 [mlx5_core] mlx5_load_one_devl_locked+0xb2/0xe0 [mlx5_core] devlink_reload+0x133/0x250 devlink_nl_cmd_reload+0x480/0x570 ? devlink_nl_pre_doit+0x44/0x2b0 genl_family_rcv_msg_doit.isra.0+0xc2/0x110 genl_rcv_msg+0x180/0x2b0 ? devlink_nl_cmd_region_read_dumpit+0x540/0x540 ? devlink_reload+0x250/0x250 ? devlink_put+0x50/0x50 ? genl_family_rcv_msg_doit.isra.0+0x110/0x110 netlink_rcv_skb+0x54/0x100 genl_rcv+0x24/0x40 netlink_unicast+0x1f6/0x2c0 netlink_sendmsg+0x237/0x490 sock_sendmsg+0x33/0x40 __sys_sendto+0x103/0x160 ? handle_mm_fault+0x10e/0x290 ? do_user_addr_fault+0x1c0/0x5f0 __x64_sys_sendto+0x25/0x30 do_syscall_64+0x3d/0x90 entry_SYSCALL_64_after_hwframe+0x46/0xb0
Fix it by setting port_num to 1 in order to get device status and remove unused variable.
Patch / fix
- Linux Linux 5.15.87, 6.0.19, 6.1.5, 6.2
- linux Debian 14, Debian 13, Debian 12 6.1.7-1
debian advisories DEBIAN-CVE-2023-53393
- linux Ubuntu 22.04 LTS 5.15.0-69.76
- linux-aws Ubuntu 22.04 LTS 5.15.0-1033.37
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1031.38
- linux-gke Ubuntu 22.04 LTS 5.15.0-1030.35
- linux-ibm Ubuntu 22.04 LTS 5.15.0-1027.30
- linux-kvm Ubuntu 22.04 LTS 5.15.0-1030.35
- linux-azure Ubuntu 22.04 LTS 5.15.0-1035.42
- linux-gkeop Ubuntu 22.04 LTS 5.15.0-1017.22
ubuntu advisories UBUNTU-CVE-2023-53393
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel RHEL 9 5.14.0-284.11.1.el9_2
- perf RHEL 9 5.14.0-284.11.1.el9_2
- rtla RHEL 9 5.14.0-284.11.1.el9_2
- bpftool RHEL 9 7.0.0-284.11.1.el9_2
- kernel-64k RHEL 9 5.14.0-284.11.1.el9_2
- kernel-core RHEL 9 5.14.0-284.11.1.el9_2
- kernel-tools RHEL 9 5.14.0-284.11.1.el9_2
- python3-perf RHEL 9 5.14.0-284.11.1.el9_2
red hat advisories RHSA-2025:23463RHSA-2025:23445RHSA-2025:22087RHSA-2025:22066RHSA-2025:22006RHSA-2023:2458
- kernel-rt SLE Micro 5.5 5.14.21-150500.13.109.1
- kernel-source-rt SLE Micro 5.5 5.14.21-150500.13.109.1
- kernel-rt SLE Micro 5.4, SLE Micro 5.3 5.14.21-150400.15.133.1
- kernel-source-rt SLE Micro 5.4, SLE Micro 5.3 5.14.21-150400.15.133.1
- kernel-64kb SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS, SLE High Performance Computing 15 SP4-ESPOS 5.14.21-150400.24.179.1
- kernel-syms SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +3 more 5.14.21-150400.24.179.1
- kernel-source SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +3 more 5.14.21-150400.24.179.1
- kernel-default SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Micro 5.4 +7 more 5.14.21-150400.24.179.1
suse advisories SUSE-SU-2025:3761-1SUSE-SU-2025:3716-1SUSE-SU-2025:03628-1SUSE-SU-2025:03615-1SUSE-SU-2025:03614-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-53393 updated cvss 4.4
kernel: RDMA/mlx5: Fix mlx5_ib_get_hw_stats when used for device
-
Red Hat Enterprise Linux 8 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +6 more Red Hat Enterprise Linux 9 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +12 moreaffected: workaround, no fix available
-
Red Hat Enterprise Linux AppStream (v. 9) perf 5.14.0-284.11.1.el9_2, rtla 5.14.0-284.11.1.el9_2, kernel-devel-matched 5.14.0-284.11.1.el9_2, kernel-64k-devel-matched 5.14.0-284.11.1.el9_2, kernel-debug-devel-matched 5.14.0-284.11.1.el9_2, kernel-debuginfo-common-s390x 5.14.0-284.11.1.el9_2, +5 morefixed: vendor fix RHSA-2023:2458
-
Red Hat Enterprise Linux AppStream E4S (v.9.0) perf 5.14.0-70.155.1.el9_0, kernel-devel-matched 5.14.0-70.155.1.el9_0, kernel-debug-devel-matched 5.14.0-70.155.1.el9_0, kernel-debuginfo-common-s390x 5.14.0-70.155.1.el9_0, kernel-zfcpdump-devel-matched 5.14.0-70.155.1.el9_0, kernel-debuginfo-common-x86_64 5.14.0-70.155.1.el9_0, +2 morefixed: vendor fix RHSA-2025:22066
-
Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-477.10.1.el8_8, kernel 4.18.0-477.10.1.el8_8, bpftool 4.18.0-477.10.1.el8_8, kernel-core 4.18.0-477.10.1.el8_8, kernel-tools 4.18.0-477.10.1.el8_8, python3-perf 4.18.0-477.10.1.el8_8, +15 morefixed: vendor fix RHSA-2023:2951
-
Red Hat Enterprise Linux BaseOS (v. 9) bpftool 7.0.0-284.11.1.el9_2, kernel 5.14.0-284.11.1.el9_2, kernel-64k 5.14.0-284.11.1.el9_2, kernel-core 5.14.0-284.11.1.el9_2, kernel-tools 5.14.0-284.11.1.el9_2, python3-perf 5.14.0-284.11.1.el9_2, +28 morefixed: vendor fix RHSA-2023:2458
-
Red Hat Enterprise Linux BaseOS AUS (v. 8.2) perf 4.18.0-193.178.1.el8_2, kernel 4.18.0-193.178.1.el8_2, bpftool 4.18.0-193.178.1.el8_2, kernel-core 4.18.0-193.178.1.el8_2, kernel-tools 4.18.0-193.178.1.el8_2, python3-perf 4.18.0-193.178.1.el8_2, +8 morefixed: vendor fix RHSA-2025:23445
-
Red Hat Enterprise Linux BaseOS AUS (v.8.4) perf 4.18.0-305.182.1.el8_4, kernel 4.18.0-305.182.1.el8_4, bpftool 4.18.0-305.182.1.el8_4, kernel-core 4.18.0-305.182.1.el8_4, kernel-tools 4.18.0-305.182.1.el8_4, python3-perf 4.18.0-305.182.1.el8_4, +8 morefixed: vendor fix RHSA-2025:23463
-
Red Hat Enterprise Linux BaseOS AUS (v.8.6) perf 4.18.0-372.170.1.el8_6, kernel 4.18.0-372.170.1.el8_6, bpftool 4.18.0-372.170.1.el8_6, kernel-core 4.18.0-372.170.1.el8_6, kernel-tools 4.18.0-372.170.1.el8_6, python3-perf 4.18.0-372.170.1.el8_6, +8 more Red Hat Enterprise Linux BaseOS E4S (v.8.6) perf 4.18.0-372.170.1.el8_6, kernel 4.18.0-372.170.1.el8_6, bpftool 4.18.0-372.170.1.el8_6, kernel-core 4.18.0-372.170.1.el8_6, kernel-tools 4.18.0-372.170.1.el8_6, python3-perf 4.18.0-372.170.1.el8_6, +15 morefixed: vendor fix RHSA-2025:22006
show 7 moreshow fewer
-
Red Hat Enterprise Linux BaseOS E4S (v.9.0) kernel 5.14.0-70.155.1.el9_0, bpftool 5.14.0-70.155.1.el9_0, kernel-core 5.14.0-70.155.1.el9_0, kernel-tools 5.14.0-70.155.1.el9_0, python3-perf 5.14.0-70.155.1.el9_0, kernel-modules 5.14.0-70.155.1.el9_0, +14 morefixed: vendor fix RHSA-2025:22066
-
Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) perf 4.18.0-305.182.1.el8_4, kernel 4.18.0-305.182.1.el8_4, bpftool 4.18.0-305.182.1.el8_4, kernel-core 4.18.0-305.182.1.el8_4, kernel-tools 4.18.0-305.182.1.el8_4, python3-perf 4.18.0-305.182.1.el8_4, +8 morefixed: vendor fix RHSA-2025:23463
-
Red Hat Enterprise Linux BaseOS TUS (v.8.6) perf 4.18.0-372.170.1.el8_6, kernel 4.18.0-372.170.1.el8_6, bpftool 4.18.0-372.170.1.el8_6, kernel-core 4.18.0-372.170.1.el8_6, kernel-tools 4.18.0-372.170.1.el8_6, python3-perf 4.18.0-372.170.1.el8_6, +8 morefixed: vendor fix RHSA-2025:22006
-
Red Hat Enterprise Linux CRB (v. 8) kernel-debuginfo-common-x86_64 4.18.0-477.10.1.el8_8, kernel-debuginfo-common-aarch64 4.18.0-477.10.1.el8_8, kernel-debuginfo-common-ppc64le 4.18.0-477.10.1.el8_8fixed: vendor fix RHSA-2023:2951
-
Red Hat Enterprise Linux CRB (v. 9) kernel-debuginfo-common-s390x 5.14.0-284.11.1.el9_2, kernel-debuginfo-common-x86_64 5.14.0-284.11.1.el9_2, kernel-debuginfo-common-aarch64 5.14.0-284.11.1.el9_2, kernel-debuginfo-common-ppc64le 5.14.0-284.11.1.el9_2fixed: vendor fix RHSA-2023:2458
-
Red Hat Enterprise Linux NFV E4S (v.9.0) kernel-rt 5.14.0-70.155.1.rt21.227.el9_0, kernel-rt-kvm 5.14.0-70.155.1.rt21.227.el9_0, kernel-rt-core 5.14.0-70.155.1.rt21.227.el9_0, kernel-rt-modules 5.14.0-70.155.1.rt21.227.el9_0, kernel-rt-debug-kvm 5.14.0-70.155.1.rt21.227.el9_0, kernel-rt-debug-core 5.14.0-70.155.1.rt21.227.el9_0, +4 more Red Hat Enterprise Linux Real Time E4S (v.9.0) kernel-rt 5.14.0-70.155.1.rt21.227.el9_0, kernel-rt-core 5.14.0-70.155.1.rt21.227.el9_0, kernel-rt-modules 5.14.0-70.155.1.rt21.227.el9_0, kernel-rt-debug-core 5.14.0-70.155.1.rt21.227.el9_0, kernel-rt-debug-modules 5.14.0-70.155.1.rt21.227.el9_0, kernel-rt-modules-extra 5.14.0-70.155.1.rt21.227.el9_0, +2 morefixed: vendor fix RHSA-2025:22087
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 9 mo ago
Exploit prediction
0.15% chance of exploitation in the next 30 days, higher than 4% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Technology feeds
References
Sources
- CVE List CVE-2023-53393
- NVD CVE-2023-53393
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.