
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-38608 affects the Linux kernel's network driver component, specifically in the net/mlx5e subsystem. The vulnerability was discovered in the netif state handling where mlx5e_suspend only cleans resources if netif_device_present() returns true, while mlx5e_resume changes the state of netif via mlx5e_nic_enable only if reg_state == NETREG_REGISTERED. This inconsistency was identified in June 2024 and affects Linux kernel versions from 4.12 up to (excluding) 6.9.3 (NVD).
The vulnerability stems from a mismatch in state handling conditions between suspend and resume operations in the mlx5e network driver. When mlx5e_probe is called followed by _mlx5e_resume and mlx5e_attach_netdev, the mlx5e_nic_enable function doesn't call netif_device_attach() when the netdev is not registered. If register_netdev subsequently fails, _mlx5e_suspend won't free resources because netif_device_present returns false, leading to both a NULL pointer dereference and memory leaks. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD, Kernel Patch).
The vulnerability can result in a NULL pointer dereference causing kernel crashes and memory leaks. This primarily affects system stability and availability, with no direct impact on confidentiality or integrity. The issue occurs during device initialization and can be triggered during system operations involving the affected network driver (NVD).
The vulnerability requires local access with low privileges to exploit. It can be triggered through normal system operations involving the mlx5e network driver, particularly during device initialization or when manipulating network interfaces. The vulnerability has been confirmed to be exploitable in real-world scenarios, as demonstrated by the provided crash dump in the original report (Kernel Patch).
The vulnerability has been fixed in the Linux kernel through a patch that modifies the _mlx5e_suspend function to handle resource cleanup properly in all cases. The fix introduces a new parameter 'pre_netdev_reg' to ensure resources are cleaned up regardless of the netif_device_present state. Users are advised to update their Linux kernel to version 6.9.3 or later, or apply the relevant backported patches (Kernel Patch).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."