CVE-2024-50158 RDMA/bnxt_re: Fix out of bound check
A missing bounds check in the Linux kernel RDMA driver allows out-of-bounds writes, potentially causing system crashes or instability.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-50158?
CVE-2024-50158 is a high-severity memory corruption vulnerability in Linux kernel, published on 7 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
RDMA/bnxt_re: Fix out of bound check
Driver exports pacing stats only on GenP5 and P7 adapters. But while parsing the pacing stats, driver has a check for "rdev->dbr_pacing". This caused a trace when KASAN is enabled.
BUG: KASAN: slab-out-of-bounds in bnxt_re_get_hw_stats+0x2b6a/0x2e00 [bnxt_re] Write of size 8 at addr ffff8885942a6340 by task modprobe/4809
Weakness: CWE-125
Which versions are affected by CVE-2024-50158?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50158?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-50158 being exploited?
There is no known exploitation of CVE-2024-50158 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-53498, BELL-CVE-2024-50158, DEBIAN-CVE-2024-50158, GHSA-8wfj-5m7p-h89v, UBUNTU-CVE-2024-50158.