net/mlx5e: Fix netif state handling
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 14 fixed, 2 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-476.
Summary
In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Fix netif state handling mlx5e_suspend cleans resources only if netif_device_present() returns true. However, mlx5e_resume changes the state of netif, via mlx5e_nic_enable, only if reg_state == NETREG_REGISTERED. In the below case, the above leads to NULL-ptr Oops[1] and memory leaks: mlx5e_probe _mlx5e_resume mlx5e_attach_netdev mlx5e_nic_enable <-- netdev not reg, not calling netif_device_attach() register_netdev <-- failed for some reason. ERROR_FLOW: _mlx5e_suspend <-- netif_device_present return false, resources aren't freed :( Hence, clean resources in this case as well. [1] BUG: kernel NULL pointer dereference, address: 0000000000000000 PGD 0 P4D 0 Oops: 0010 [#1] SMP CPU: 2 PID: 9345 Comm: test-ovs-ct-gen Not tainted 6.5.0_for_upstream_min_debug_2023_09_05_16_01 #1 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014 RIP: 0010:0x0 Code: Unable to access opcode bytes at0xffffffffffffffd6. RSP: 0018:ffff888178aaf758 EFLAGS: 00010246 Call Trace: <TASK> ? __die+0x20/0x60 ? page_fault_oops+0x14c/0x3c0 ? exc_page_fault+0x75/0x140 ? asm_exc_page_fault+0x22/0x30 notifier_call_chain+0x35/0xb0 blocking_notifier_call_chain+0x3d/0x60 mlx5_blocking_notifier_call_chain+0x22/0x30 [mlx5_core] mlx5_core_uplink_netdev_event_replay+0x3e/0x60 [mlx5_core] mlx5_mdev_netdev_track+0x53/0x60 [mlx5_ib] mlx5_ib_roce_init+0xc3/0x340 [mlx5_ib] __mlx5_ib_add+0x34/0xd0 [mlx5_ib] mlx5r_probe+0xe1/0x210 [mlx5_ib] ? auxiliary_match_id+0x6a/0x90 auxiliary_bus_probe+0x38/0x80 ? driver_sysfs_add+0x51/0x80 really_probe+0xc9/0x3e0 ? driver_probe_device+0x90/0x90 __driver_probe_device+0x80/0x160 driver_probe_device+0x1e/0x90 __device_attach_driver+0x7d/0x100 bus_for_each_drv+0x80/0xd0 __device_attach+0xbc/0x1f0 bus_probe_device+0x86/0xa0 device_add+0x637/0x840 __auxiliary_device_add+0x3b/0xa0 add_adev+0xc9/0x140 [mlx5_core] mlx5_rescan_drivers_locked+0x22a/0x310 [mlx5_core] mlx5_register_device+0x53/0xa0 [mlx5_core] mlx5_init_one_devl_locked+0x5c4/0x9c0 [mlx5_core] mlx5_init_one+0x3b/0x60 [mlx5_core] probe_one+0x44c/0x730 [mlx5_core] local_pci_probe+0x3e/0x90 pci_device_probe+0xbf/0x210 ? kernfs_create_link+0x5d/0xa0 ? sysfs_do_create_link_sd+0x60/0xc0 really_probe+0xc9/0x3e0 ? driver_probe_device+0x90/0x90 __driver_probe_device+0x80/0x160 driver_probe_device+0x1e/0x90 __device_attach_driver+0x7d/0x100 bus_for_each_drv+0x80/0xd0 __device_attach+0xbc/0x1f0 pci_bus_add_device+0x54/0x80 pci_iov_add_virtfn+0x2e6/0x320 sriov_enable+0x208/0x420 mlx5_core_sriov_configure+0x9e/0x200 [mlx5_core] sriov_numvfs_store+0xae/0x1a0 kernfs_fop_write_iter+0x10c/0x1a0 vfs_write+0x291/0x3c0 ksys_write+0x5f/0xe0 do_syscall_64+0x3d/0x90 entry_SYSCALL_64_after_hwframe+0x46/0xb0 CR2: 0000000000000000 ---[ end trace 0000000000000000 ]---
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA Linux (Linux) Fixed in 6.1.191, 6.6.160, 6.9.3, 6.10
Red Hat 5 advisories
- RHSA-2024:8856 Released 2024-11-05 · Red Hat rating Moderatekernel security update
- Red Hat Enterprise Linux BaseOS (v. 8) bpftool-4.18.0-553.27.1.el8_10, kernel-4.18.0-553.27.1.el8_10, kernel-abi-stablelists-4.18.0-553.27.1.el8_10 +19
- Red Hat Enterprise Linux CRB (v. 8) kernel-tools-libs-devel-4.18.0-553.27.1.el8_10
- RHSA-2024:8870 Released 2024-11-05 · Red Hat rating Moderatekernel-rt security update
- Red Hat Enterprise Linux NFV (v. 8) kernel-rt-4.18.0-553.27.1.rt7.368.el8_10, kernel-rt-core-4.18.0-553.27.1.rt7.368.el8_10, kernel-rt-debug-4.18.0-553.27.1.rt7.368.el8_10 +9
- Red Hat Enterprise Linux RT (v. 8) kernel-rt-4.18.0-553.27.1.rt7.368.el8_10, kernel-rt-core-4.18.0-553.27.1.rt7.368.el8_10, kernel-rt-debug-4.18.0-553.27.1.rt7.368.el8_10 +7
- RHSA-2024:5928 Released 2024-08-28 · Red Hat rating Importantkernel security update
- Red Hat Enterprise Linux AppStream (v. 9) kernel-64k-debug-devel-5.14.0-427.33.1.el9_4, kernel-64k-debug-devel-matched-5.14.0-427.33.1.el9_4, kernel-64k-devel-5.14.0-427.33.1.el9_4 +11
- Red Hat Enterprise Linux BaseOS (v. 9) bpftool-7.3.0-427.33.1.el9_4, kernel-5.14.0-427.33.1.el9_4, kernel-64k-5.14.0-427.33.1.el9_4 +29
- Red Hat Enterprise Linux CRB (v. 9) kernel-tools-libs-devel-5.14.0-427.33.1.el9_4, libperf-5.14.0-427.33.1.el9_4
- Red Hat Enterprise Linux NFV (v. 9) kernel-rt-5.14.0-427.33.1.el9_4, kernel-rt-core-5.14.0-427.33.1.el9_4, kernel-rt-debug-5.14.0-427.33.1.el9_4 +11
- Red Hat Enterprise Linux RT (v. 9) kernel-rt-5.14.0-427.33.1.el9_4, kernel-rt-core-5.14.0-427.33.1.el9_4, kernel-rt-debug-5.14.0-427.33.1.el9_4 +9
Show 2 more Red Hat advisories
- RHSA-2024:5672 Released 2024-08-21 · Red Hat rating Importantkernel security update
- Red Hat CodeReady Linux Builder EUS (v.9.2) kernel-tools-libs-devel-5.14.0-284.80.1.el9_2
- Red Hat Enterprise Linux AppStream EUS (v.9.2) kernel-64k-debug-devel-5.14.0-284.80.1.el9_2, kernel-64k-debug-devel-matched-5.14.0-284.80.1.el9_2, kernel-64k-devel-5.14.0-284.80.1.el9_2 +9
- Red Hat Enterprise Linux BaseOS EUS (v.9.2) bpftool-7.0.0-284.80.1.el9_2, kernel-5.14.0-284.80.1.el9_2, kernel-64k-5.14.0-284.80.1.el9_2 +29
- RHSA-2024:5673 Released 2024-08-21 · Red Hat rating Importantkernel-rt security update
- Red Hat Enterprise Linux Real Time EUS (v.9.2) kernel-rt-5.14.0-284.80.1.rt14.365.el9_2, kernel-rt-core-5.14.0-284.80.1.rt14.365.el9_2, kernel-rt-debug-5.14.0-284.80.1.rt14.365.el9_2 +9
- Red Hat Enterprise Linux Real Time for NFV EUS (v.9.2) kernel-rt-5.14.0-284.80.1.rt14.365.el9_2, kernel-rt-core-5.14.0-284.80.1.rt14.365.el9_2, kernel-rt-debug-5.14.0-284.80.1.rt14.365.el9_2 +11
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 9 | Affected | No fix yet |
| Red Hat CodeReady Linux Builder EUS (v.9.2) | Fixed | RHSA-2024:5672 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2024:5928 |
| Red Hat Enterprise Linux AppStream EUS (v.9.2) | Fixed | RHSA-2024:5672 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2024:8856 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2024:5928 |
| Red Hat Enterprise Linux BaseOS EUS (v.9.2) | Fixed | RHSA-2024:5672 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2024:8856 |
| Red Hat Enterprise Linux CRB (v. 9) | Fixed | RHSA-2024:5928 |
| Red Hat Enterprise Linux NFV (v. 8) | Fixed | RHSA-2024:8870 |
| Red Hat Enterprise Linux NFV (v. 9) | Fixed | RHSA-2024:5928 |
| Red Hat Enterprise Linux RT (v. 8) | Fixed | RHSA-2024:8870 |
| Red Hat Enterprise Linux RT (v. 9) | Fixed | RHSA-2024:5928 |
| Red Hat Enterprise Linux Real Time EUS (v.9.2) | Fixed | RHSA-2024:5673 |
| Red Hat Enterprise Linux Real Time for NFV EUS (v.9.2) | Fixed | RHSA-2024:5673 |
Not affected: 2 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux AppStream EUS (v.9.2)
Timeline
- 2026-10-02 Threatist record created from CVE-2024-38608
- 2026-10-03 Alias added: GHSA-rh54-rh9r-p3ph
- 2026-10-21 Fix available: Linux/[email protected], Linux/Linux@70eca80d98a44f47cd1633d0c20bda8ae546b4d1 · CNA
- 2026-10-21 1 new reference · CNA
- 2026-10-30 Fix available: Linux/[email protected], Linux/Linux@96e3eeccea9b55ca9c6a18a5a59ee3d6f12e0fb3 · CNA
- 2026-10-30 1 new reference · CNA
References
Patch 2
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2024-38608 · CVE Program
- CVE-2024-38608 · NVD
- FIRST EPSS
- GHSA-rh54-rh9r-p3ph · GitHub Advisory Database · CC BY 4.0
- CVE-2024-38608 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences