cve.bz

CVE-2024-38608 linux linux kernel: NULL Pointer Dereference

5.5 mediumEPSS 0.3%Fix available

Medium (5.5) in linux linux kernel. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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 ]---

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 18th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-06-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-38608 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-38608?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-38608?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-38608 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux4.12 and later

Fixed in

ProductRelease lineFixed in
Linux6.16.1.191
Linux6.66.6.160
Linux6.96.9.3
Linuxlater releases6.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12linux6.1.192-1DEBIAN-CVE-2024-38608
Debian13, 14linux6.9.7-1DEBIAN-CVE-2024-38608
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2024-38608
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2024-38608
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2024-38608
Ubuntu22.04:LTSlinux, linux-aws, linux-gcp and 47 moreno fix listedUBUNTU-CVE-2024-38608
Ubuntu22.04:LTSlinux-aws-6.86.8.0-1029.31~22.04.1UBUNTU-CVE-2024-38608 USN-7513-1
Ubuntu22.04:LTSlinux-azure-6.86.8.0-1029.34~22.04.1UBUNTU-CVE-2024-38608 USN-7513-3
Ubuntu22.04:LTSlinux-gcp-6.86.8.0-1030.32~22.04.1UBUNTU-CVE-2024-38608 USN-7515-2
Ubuntu22.04:LTSlinux-hwe-6.86.8.0-60.63~22.04.1UBUNTU-CVE-2024-38608 USN-7513-4
Ubuntu22.04:LTSlinux-ibm-6.86.8.0-1026.26~22.04.1UBUNTU-CVE-2024-38608
Ubuntu22.04:LTSlinux-lowlatency-hwe-6.86.8.0-60.63.1~22.04.1UBUNTU-CVE-2024-38608 USN-7513-1
Ubuntu22.04:LTSlinux-nvidia-6.86.8.0-1028.31~22.04.1UBUNTU-CVE-2024-38608 USN-7514-1
Ubuntu22.04:LTSlinux-oracle-6.86.8.0-1026.27~22.04.1UBUNTU-CVE-2024-38608 USN-7513-5
29 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-553.27.1.el8_10RHSA-2024:8856
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-553.27.1.el8_10RHSA-2024:8856
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-553.27.1.rt7.368.el8_10RHSA-2024:8870
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-553.27.1.rt7.368.el8_10RHSA-2024:8870
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 26 more0:5.14.0-427.33.1.el9_4RHSA-2024:5928
Red Hatenterprise_linux:9::appstream, enterprise_linux:9::crb, enterprise_linux:9::nfv and 1 morebpftool-debuginfo0:7.3.0-427.33.1.el9_4RHSA-2024:5928
Red Hatenterprise_linux:9::baseosbpftool, bpftool-debuginfo0:7.3.0-427.33.1.el9_4RHSA-2024:5928
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 43 more0:5.14.0-427.33.1.el9_4RHSA-2024:5928
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 14 more0:5.14.0-427.33.1.el9_4RHSA-2024:5928
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-427.33.1.el9_4RHSA-2024:5928
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-427.33.1.el9_4RHSA-2024:5928
Red Hatrhel_eus:9.2::appstreamperf, rtla, kernel-devel and 21 more0:5.14.0-284.80.1.el9_2RHSA-2024:5672
6 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Live Patching 12 SP5, Linux Enterprise Workstation Extension 12 SP5kernel-default4.12.14-122.222.1SUSE-SU-2024:2561-1
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise Live Patching 15 SP5, Linux Enterprise Micro 5.5 and 2 morekernel-default5.14.21-150500.55.73.1SUSE-SU-2024:2939-1
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6, Linux Enterprise Module for Legacy 15 SP6 and 1 morekernel-default6.4.0-150600.23.14.2SUSE-SU-2024:2571-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_581-8.3.1SUSE-SU-2024:2561-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5-RT_Update_171-150500.11.3.1SUSE-SU-2024:2394-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_171-150500.11.3.1SUSE-SU-2024:2939-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_11-150600.1.5.1SUSE-SU-2024:2973-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6_Update_21-150600.13.3.2SUSE-SU-2024:2571-1
SUSELinux Enterprise Micro 5.5kernel-rt, kernel-source-rt5.14.21-150500.13.61.1SUSE-SU-2024:2394-1
SUSELinux Enterprise Micro 5.5, Linux Enterprise Module for Basesystem 15 SP5kernel-default-base5.14.21-150500.55.73.1.150500.6.33.8SUSE-SU-2024:2939-1
SUSELinux Enterprise Module for Basesystem 15 SP5kernel-64kb, kernel-source, kernel-default and 1 more5.14.21-150500.55.73.1SUSE-SU-2024:2939-1
SUSELinux Enterprise Module for Basesystem 15 SP6kernel-64kb6.4.0-150600.23.14.1SUSE-SU-2024:2571-1
17 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5dtb-aarch64, kernel-64kb, kernel-syms and 7 more5.14.21-150500.55.73.1SUSE-SU-2024:2939-1
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.60.1SUSE-SU-2024:2372-1
openSUSELeap 15.5kernel-docs5.14.21-150500.55.73.2SUSE-SU-2024:2939-1
openSUSELeap 15.5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.61.1SUSE-SU-2024:2394-1
openSUSELeap 15.5, Leap Micro 5.5kernel-default-base5.14.21-150500.55.73.1.150500.6.33.8SUSE-SU-2024:2939-1
openSUSELeap 15.6dtb-aarch64, kernel-64kb6.4.0-150600.23.14.1SUSE-SU-2024:2571-1
openSUSELeap 15.6kernel-azure, kernel-source-azure6.4.0-150600.8.8.2SUSE-SU-2024:2896-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.14.2.150600.12.4.3SUSE-SU-2024:2571-1
openSUSELeap 15.6kernel-docs, kernel-syms, kernel-debug and 6 more6.4.0-150600.23.14.2SUSE-SU-2024:2571-1
openSUSELeap 15.6kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more6.4.0-150600.10.5.1SUSE-SU-2024:2973-1
openSUSELeap 15.6kernel-syms-azure6.4.0-150600.8.8.1SUSE-SU-2024:2896-1
openSUSELeap Micro 5.5kernel-default5.14.21-150500.55.73.1SUSE-SU-2024:2939-1
AlmaLinux8kernel-rt, kernel-rt-core, kernel-rt-debug and 7 more4.18.0-553.27.1.rt7.368.el8_10ALSA-2024:8870
AlmaLinux8perf, kernel, bpftool and 22 more4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux9bpftool7.3.0-427.33.1.el9_4ALSA-2024:5928
AlmaLinux9rv, perf, rtla and 58 more5.14.0-427.33.1.el9_4ALSA-2024:5928
Rocky Linux8kernel0:4.18.0-553.27.1.el8_10RLSA-2024:8856
Rocky Linux8kernel-rt0:4.18.0-553.27.1.rt7.368.el8_10RLSA-2024:8870
Azure Linux2kernelno fix listedAZL-48285
Azure Linux3kernelno fix listedAZL-48210
Alpaquita23linux-lts6.1.191-r0BELL-CVE-2024-38608
Alpaquita25, streamlinux-lts6.12.41-r0BELL-CVE-2024-38608

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This vulnerability is rated as low severity, as it requires specific conditions in network interface setup and does not compromise confidentiality or integrity. Its impact is restricted to potential stability issues under rare circumstances.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-553.27.1.rt7.368.el8_10Fixed 2024-11-05RHSA-2024:8870
Red Hat Enterprise Linux 8kernel-0:4.18.0-553.27.1.el8_10Fixed 2024-11-05RHSA-2024:8856
Red Hat Enterprise Linux 9kernel-0:5.14.0-427.33.1.el9_4Fixed 2024-08-28RHSA-2024:5928
Red Hat Enterprise Linux 9.2 Extended Update Supportkernel-0:5.14.0-284.80.1.el9_2Fixed 2024-08-21RHSA-2024:5672
Red Hat Enterprise Linux 9.2 Extended Update Supportkernel-rt-0:5.14.0-284.80.1.rt14.365.el9_2Fixed 2024-08-21RHSA-2024:5673
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelOut of support scope
Red Hat Enterprise Linux 7kernel-rtOut of support scope
Red Hat Enterprise Linux 9kernel-rtAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-38608.

References

Check your stackJSON