CVE-2024-38608 json
net/mlx5e: Fix netif state handling
published 2024-06-19 2 y ago modified 2026-10-30 10 d ago also EUVD-2024-37471
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 17%
- public exploits
- 0
- none known
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 ]---
Patch / fix
- Linux Linux 6.1.191, 6.6.160, 6.9.3, 6.10
- linux Debian 14, Debian 13 6.9.7-1
debian advisories DEBIAN-CVE-2024-38608
- linux Ubuntu 24.04 LTS 6.8.0-60.63
- linux-aws Ubuntu 24.04 LTS 6.8.0-1029.31
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1030.32
- linux-gke Ubuntu 24.04 LTS 6.8.0-1025.29
- linux-ibm Ubuntu 24.04 LTS 6.8.0-1026.26
- linux-azure Ubuntu 24.04 LTS 6.8.0-1029.34
- linux-gkeop Ubuntu 24.04 LTS 6.8.0-1012.14
- linux-raspi Ubuntu 24.04 LTS 6.8.0-1028.32
ubuntu advisories UBUNTU-CVE-2024-38608
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-rt RHEL 8 4.18.0-553.27.1.rt7.368.el8_10
- kernel-rt-kvm RHEL 8 4.18.0-553.27.1.rt7.368.el8_10
- kernel-rt-core RHEL 8 4.18.0-553.27.1.rt7.368.el8_10
- kernel-rt-modules RHEL 8 4.18.0-553.27.1.rt7.368.el8_10
- kernel-rt-debug-kvm RHEL 8 4.18.0-553.27.1.rt7.368.el8_10
- kernel-rt-debug-core RHEL 8 4.18.0-553.27.1.rt7.368.el8_10
- kernel-rt-debug-modules RHEL 8 4.18.0-553.27.1.rt7.368.el8_10
- kernel-rt-modules-extra RHEL 8 4.18.0-553.27.1.rt7.368.el8_10
red hat advisories RHSA-2024:8870RHSA-2024:8856RHSA-2024:5928RHSA-2024:5672RHSA-2024:5673
- kernel-rt Linux Micro 6.0 6.4.0-9.1
- kernel-source-rt Linux Micro 6.0 6.4.0-9.1
- kernel-source Linux Micro 6.0 6.4.0-18.1
- kernel-default Linux Micro 6.0 6.4.0-18.1
- kernel-kvmsmall Linux Micro 6.0 6.4.0-18.1
- kernel-default-base Linux Micro 6.0 6.4.0-17.1.1.51
- kernel-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.5.1
- kernel-syms-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.5.1
suse advisories SUSE-SU-2025:20028-1SUSE-SU-2025:20008-1SUSE-SU-2024:2973-1SUSE-SU-2024:2939-1SUSE-SU-2024:2896-1SUSE-SU-2024:2571-1
- kernel AlmaLinux 8 4.18.0-553.27.1.el8_10
- perf AlmaLinux 8 4.18.0-553.27.1.el8_10
- bpftool AlmaLinux 8 4.18.0-553.27.1.el8_10
- kernel-core AlmaLinux 8 4.18.0-553.27.1.el8_10
- kernel-tools AlmaLinux 8 4.18.0-553.27.1.el8_10
- python3-perf AlmaLinux 8 4.18.0-553.27.1.el8_10
- kernel-modules AlmaLinux 8 4.18.0-553.27.1.el8_10
- kernel-zfcpdump AlmaLinux 8 4.18.0-553.27.1.el8_10
almalinux advisories ALSA-2024:8856ALSA-2024:8870ALSA-2024:5928
- kernel-rt Rocky Linux 8 4.18.0-553.27.1.rt7.368.el8_10
- kernel Rocky Linux 8 4.18.0-553.27.1.el8_10
rocky linux advisories RLSA-2024:8870RLSA-2024:8856
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-38608 updated cvss 5.5
kernel: net/mlx5e: Fix netif state handling
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 9 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +12 moreaffected: workaround, no fix available
-
Red Hat CodeReady Linux Builder EUS (v.9.2) kernel-debuginfo-common-s390x 5.14.0-284.80.1.el9_2, kernel-debuginfo-common-x86_64 5.14.0-284.80.1.el9_2, kernel-debuginfo-common-aarch64 5.14.0-284.80.1.el9_2, kernel-debuginfo-common-ppc64le 5.14.0-284.80.1.el9_2fixed: vendor fix RHSA-2024:5672
-
Red Hat Enterprise Linux AppStream (v. 9) rv 5.14.0-427.33.1.el9_4, perf 5.14.0-427.33.1.el9_4, rtla 5.14.0-427.33.1.el9_4, kernel-devel-matched 5.14.0-427.33.1.el9_4, kernel-64k-devel-matched 5.14.0-427.33.1.el9_4, kernel-debug-devel-matched 5.14.0-427.33.1.el9_4, +6 morefixed: vendor fix RHSA-2024:5928
-
Red Hat Enterprise Linux AppStream EUS (v.9.2) perf 5.14.0-284.80.1.el9_2, rtla 5.14.0-284.80.1.el9_2, kernel-devel-matched 5.14.0-284.80.1.el9_2, kernel-64k-devel-matched 5.14.0-284.80.1.el9_2, kernel-debug-devel-matched 5.14.0-284.80.1.el9_2, kernel-debuginfo-common-s390x 5.14.0-284.80.1.el9_2, +5 morefixed: vendor fix RHSA-2024:5672
-
Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-553.27.1.el8_10, kernel 4.18.0-553.27.1.el8_10, bpftool 4.18.0-553.27.1.el8_10, kernel-core 4.18.0-553.27.1.el8_10, kernel-tools 4.18.0-553.27.1.el8_10, python3-perf 4.18.0-553.27.1.el8_10, +15 morefixed: vendor fix RHSA-2024:8856
-
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, kernel-core 5.14.0-427.33.1.el9_4, kernel-tools 5.14.0-427.33.1.el9_4, python3-perf 5.14.0-427.33.1.el9_4, +28 morefixed: vendor fix RHSA-2024:5928
-
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, kernel-core 5.14.0-284.80.1.el9_2, kernel-tools 5.14.0-284.80.1.el9_2, python3-perf 5.14.0-284.80.1.el9_2, +28 morefixed: vendor fix RHSA-2024:5672
show 8 moreshow fewer
-
Red Hat Enterprise Linux CRB (v. 8) kernel-debuginfo-common-x86_64 4.18.0-553.27.1.el8_10, kernel-debuginfo-common-aarch64 4.18.0-553.27.1.el8_10, kernel-debuginfo-common-ppc64le 4.18.0-553.27.1.el8_10fixed: vendor fix RHSA-2024:8856
-
Red Hat Enterprise Linux CRB (v. 9) libperf 5.14.0-427.33.1.el9_4, kernel-debuginfo-common-s390x 5.14.0-427.33.1.el9_4, kernel-debuginfo-common-x86_64 5.14.0-427.33.1.el9_4, kernel-debuginfo-common-aarch64 5.14.0-427.33.1.el9_4, kernel-debuginfo-common-ppc64le 5.14.0-427.33.1.el9_4fixed: vendor fix RHSA-2024:5928
-
Red Hat Enterprise Linux NFV (v. 8) kernel-rt 4.18.0-553.27.1.rt7.368.el8_10, kernel-rt-kvm 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-modules 4.18.0-553.27.1.rt7.368.el8_10, kernel-rt-debug-kvm 4.18.0-553.27.1.rt7.368.el8_10, kernel-rt-debug-core 4.18.0-553.27.1.rt7.368.el8_10, +4 morefixed: vendor fix RHSA-2024:8870
-
Red Hat Enterprise Linux NFV (v. 9) kernel-rt 5.14.0-427.33.1.el9_4, kernel-rt-kvm 5.14.0-427.33.1.el9_4, kernel-rt-core 5.14.0-427.33.1.el9_4, kernel-rt-modules 5.14.0-427.33.1.el9_4, kernel-rt-debug-kvm 5.14.0-427.33.1.el9_4, kernel-rt-debug-core 5.14.0-427.33.1.el9_4, +6 morefixed: vendor fix RHSA-2024:5928
-
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-modules 5.14.0-284.80.1.rt14.365.el9_2, kernel-rt-debug-core 5.14.0-284.80.1.rt14.365.el9_2, kernel-rt-modules-core 5.14.0-284.80.1.rt14.365.el9_2, kernel-rt-debug-modules 5.14.0-284.80.1.rt14.365.el9_2, +4 more 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-kvm 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-modules 5.14.0-284.80.1.rt14.365.el9_2, kernel-rt-debug-kvm 5.14.0-284.80.1.rt14.365.el9_2, kernel-rt-debug-core 5.14.0-284.80.1.rt14.365.el9_2, +6 morefixed: vendor fix RHSA-2024:5673
-
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-modules 4.18.0-553.27.1.rt7.368.el8_10, kernel-rt-debug-core 4.18.0-553.27.1.rt7.368.el8_10, kernel-rt-debug-modules 4.18.0-553.27.1.rt7.368.el8_10, kernel-rt-modules-extra 4.18.0-553.27.1.rt7.368.el8_10, +2 morefixed: vendor fix RHSA-2024:8870
-
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-modules 5.14.0-427.33.1.el9_4, kernel-rt-debug-core 5.14.0-427.33.1.el9_4, kernel-rt-modules-core 5.14.0-427.33.1.el9_4, kernel-rt-debug-modules 5.14.0-427.33.1.el9_4, +4 morefixed: vendor fix RHSA-2024:5928
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux AppStream EUS (v.9.2) kernel-doc 5.14.0-284.80.1.el9_2not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.26% chance of exploitation in the next 30 days, higher than 17% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
- Technology feeds
References
Sources
- CVE List CVE-2024-38608
- NVD CVE-2024-38608
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.