Linux Kernel
CVE-2024-38542
HIGH
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Local kernel driver flaw exploitable by low-privilege user with no interaction; full kernel memory corruption impact warrants H/H/H; scope unchanged as no cross-VM impact identified.
Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).
CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Lifecycle Timeline
6DescriptionCVE.org
In the Linux kernel, the following vulnerability has been resolved:
RDMA/mana_ib: boundary check before installing cq callbacks
Add a boundary check inside mana_ib_install_cq_cb to prevent index overflow.
AnalysisAI
Index overflow in the Linux kernel's RDMA mana_ib driver allows a local low-privileged user to corrupt kernel memory by triggering mana_ib_install_cq_cb without a boundary check on the completion queue callback array index. The flaw (CWE-129) affects systems running the mana_ib driver - specific to Microsoft Azure MANA network adapter hardware - and carries a CVSS 7.8 with full high C/I/A impact, though real-world risk is constrained by the local-only attack vector and narrow hardware applicability. No public exploit has been identified, and EPSS at 0.25% (16th percentile) confirms low exploitation probability at time of analysis.
Technical ContextAI
The vulnerability resides in the RDMA (Remote Direct Memory Access) subsystem of the Linux kernel, specifically in the mana_ib driver, which provides InfiniBand-compatible RDMA access over Microsoft Azure's MANA (Microsoft Azure Network Adapter) hardware. CWE-129 (Improper Validation of Array Index) describes the root cause: the function mana_ib_install_cq_cb fails to verify that an index falls within valid array bounds before using it to register a completion queue (CQ) callback. An unchecked index can point to memory outside the intended array, resulting in an out-of-bounds write that corrupts adjacent kernel memory structures. Affected products per CPE cpe:2.3:o:linux:linux_kernel:* span multiple Linux kernel stable branches with no pinned version floor indicated by NVD.
RemediationAI
Apply the upstream kernel stable patches available at https://git.kernel.org/stable/c/168f6fbde0eabd71d1f4133df7d001a950b96977, https://git.kernel.org/stable/c/f12afddfb142587d786df9e3cc4862190d3e2ec8, and https://git.kernel.org/stable/c/f79edef79b6a2161f4124112f9b0c46891bb0b74; these are upstream fix commits and a specific released patched version number is not independently confirmed from available data - consult your Linux distribution's security tracker (e.g., Ubuntu USN, Red Hat RHSA, SUSE CVE) for backported packages. For systems that do not use Microsoft Azure MANA RDMA hardware, the most effective compensating control is to blacklist the mana_ib module by adding 'blacklist mana_ib' to /etc/modprobe.d/blacklist.conf and running depmod; this carries no functional penalty on non-MANA systems. On Azure VMs where MANA RDMA is in active use, unloading the module will disable RDMA functionality, so patching via a kernel update is the preferred path.
Same weakness CWE-129 – Improper Validation of Array Index
View allSame technique Buffer Overflow
View allShare
External POC / Exploit Code
Leaving vuln.today