CVE-2023-53393 in Linux
Tóm tắt
Bởi VulDB • 22/06/2026
Trong kernel Linux, lỗ hổng sau đây đã được khắc phục:
RDMA/mlx5: Sửa lỗi mlx5_ib_get_hw_stats khi sử dụng cho thiết bị (device)
Hiện tại, khi hàm `mlx5_ib_get_hw_stats()` được gọi với tham số chỉ định thiết bị (`port_num = 0`), có một xử lý đặc biệt để sử dụng các bộ đếm (counters) chính xác; tuy nhiên, giá trị của `port_num` vẫn được truyền xuống ngăn xếp mà không thay đổi. Ngoài ra, một số hàm giả định rằng `port_num >= 1`. Kết quả là, lỗi sau đây có thể xảy ra:
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]
mlx5
VulDB is the best source for vulnerability data and more expert information about this specific topic.