Vulnerability · Published Jul 12, 2024 · Assigned by Linux

CVE-2024-39502ionic: fix use after netif_napi_del()

High 7.8

In plain English

A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.3%top 76.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

In the Linux kernel, the following vulnerability has been resolved: ionic: fix use after netif_napi_del() When queues are started, netif_napi_add() and napi_enable() are called. If there are 4 queues and only 3 queues are used for the current configuration, only 3 queues' napi should be registered and enabled. The ionic_qcq_enable() checks whether the .poll pointer is not NULL for enabling only the using queue' napi. Unused queues' napi will not be registered by netif_napi_add(), so the .poll pointer indicates NULL. But it couldn't distinguish whether the napi was unregistered or not because netif_napi_del() doesn't reset the .poll pointer to NULL. So, ionic_qcq_enable() calls napi_enable() for the queue, which was unregistered by netif_napi_del(). Reproducer: ethtool -L <interface name> rx 1 tx 1 combined 0 ethtool -L <interface name> rx 0 tx 0 combined 1 ethtool -L <interface name> rx 0 tx 0 combined 4 Splat looks like: kernel BUG at net/core/dev.c:6666! Oops: invalid opcode: 0000 [#1] PREEMPT SMP NOPTI CPU: 3 PID: 1057 Comm: kworker/3:3 Not tainted 6.10.0-rc2+ #16 Workqueue: events ionic_lif_deferred_work [ionic] RIP: 0010:napi_enable+0x3b/0x40 Code: 48 89 c2 48 83 e2 f6 80 b9 61 09 00 00 00 74 0d 48 83 bf 60 01 00 00 00 74 03 80 ce 01 f0 4f RSP: 0018:ffffb6ed83227d48 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff97560cda0828 RCX: 0000000000000029 RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffff97560cda0a28 RBP: ffffb6ed83227d50 R08: 0000000000000400 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000 R13: ffff97560ce3c1a0 R14: 0000000000000000 R15: ffff975613ba0a20 FS: 0000000000000000(0000) GS:ffff975d5f780000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8f734ee200 CR3: 0000000103e50000 CR4: 00000000007506f0 PKRU: 55555554 Call Trace: <TASK> ? die+0x33/0x90 ? do_trap+0xd9/0x100 ? napi_enable+0x3b/0x40 ? do_error_trap+0x83/0xb0 ? napi_enable+0x3b/0x40 ? napi_enable+0x3b/0x40 ? exc_invalid_op+0x4e/0x70 ? napi_enable+0x3b/0x40 ? asm_exc_invalid_op+0x16/0x20 ? napi_enable+0x3b/0x40 ionic_qcq_enable+0xb7/0x180 [ionic 59bdfc8a035436e1c4224ff7d10789e3f14643f8] ionic_start_queues+0xc4/0x290 [ionic 59bdfc8a035436e1c4224ff7d10789e3f14643f8] ionic_link_status_check+0x11c/0x170 [ionic 59bdfc8a035436e1c4224ff7d10789e3f14643f8] ionic_lif_deferred_work+0x129/0x280 [ionic 59bdfc8a035436e1c4224ff7d10789e3f14643f8] process_one_work+0x145/0x360 worker_thread+0x2bb/0x3d0 ? __pfx_worker_thread+0x10/0x10 kthread+0xcc/0x100 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x2d/0x50 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9bpftool7.3.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-64k5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-64k-core5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-64k-debug5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-64k-debug-core5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-64k-debug-devel5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-64k-debug-devel-matched5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-64k-debug-modules5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-64k-debug-modules-core5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-64k-debug-modules-extra5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-64k-devel5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-64k-devel-matched5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-64k-modules5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-64k-modules-core5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-64k-modules-extra5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-abi-stablelists5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-core5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-cross-headers5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-debug5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-debug-core5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-debug-devel5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-debug-devel-matched5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-debug-modules5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-debug-modules-core5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-debug-modules-extra5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-debug-uki-virt5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-devel5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-devel-matched5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-doc5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-headers5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-modules5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-modules-core5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-modules-extra5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-rt5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-rt-core5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-rt-debug5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-rt-debug-core5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-rt-debug-devel5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-rt-debug-modules5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-rt-debug-modules-core5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-rt-debug-modules-extra5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-rt-devel5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-rt-modules5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-rt-modules-core5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-rt-modules-extra5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-tools5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-tools-libs5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-tools-libs-devel5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-uki-virt5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-zfcpdump5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-zfcpdump-core5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-zfcpdump-devel5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-zfcpdump-devel-matched5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-zfcpdump-modules5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-zfcpdump-modules-core5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9kernel-zfcpdump-modules-extra5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9libperf5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9perf5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9python3-perf5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9rtla5.14.0-427.40.1.el9_4ALSA-2024:8162
AlmaLinux:9rv5.14.0-427.40.1.el9_4ALSA-2024:8162
Debian:12linux6.1.99-1DSA-5731-1
Debian:12linux6.1.99-1DEBIAN-CVE-2024-39502
Debian:13linux6.9.7-1DEBIAN-CVE-2024-39502
Debian:14linux6.9.7-1DEBIAN-CVE-2024-39502
Rocky Linux:9kernel0:5.14.0-427.40.1.el9_4RLSA-2024:8162
Ubuntu:22.04:LTSlinux5.15.0-121.131UBUNTU-CVE-2024-39502
Ubuntu:24.04:LTSlinux6.8.0-44.44UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-aws5.15.0-1069.75UBUNTU-CVE-2024-39502
Ubuntu:24.04:LTSlinux-aws6.8.0-1015.16UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-aws-6.86.8.0-1015.16~22.04.1UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-azure5.15.0-1072.81UBUNTU-CVE-2024-39502
Ubuntu:24.04:LTSlinux-azure6.8.0-1014.16UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-azure-6.5no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-azure-6.86.8.0-1014.16~22.04.1UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1072.81.1UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-gcp5.15.0-1068.76UBUNTU-CVE-2024-39502
Ubuntu:24.04:LTSlinux-gcp6.8.0-1014.16UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-gcp-6.5no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-gcp-6.86.8.0-1014.16~22.04.1UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-gke5.15.0-1066.72UBUNTU-CVE-2024-39502
Ubuntu:24.04:LTSlinux-gke6.8.0-1010.13UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1052.59UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-hwe-6.5no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-hwe-6.86.8.0-45.45~22.04.1UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-ibm5.15.0-1062.65UBUNTU-CVE-2024-39502
Ubuntu:24.04:LTSlinux-ibm6.8.0-1012.12UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-ibm-6.86.8.0-1012.12~22.04.1UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1064.70UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-kvm5.15.0-1066.71UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-121.131UBUNTU-CVE-2024-39502
Ubuntu:24.04:LTSlinux-lowlatency6.8.0-44.44.1UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.5no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.86.8.0-44.44.1~22.04.1UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1064.65UBUNTU-CVE-2024-39502
Ubuntu:24.04:LTSlinux-nvidia6.8.0-1013.14UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-nvidia-6.5no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-nvidia-6.86.8.0-1013.14~22.04.1UBUNTU-CVE-2024-39502
Ubuntu:24.04:LTSlinux-nvidia-lowlatency6.8.0-1013.14.1UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-nvidia-tegra5.15.0-1028.28UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-nvidia-tegra-igx5.15.0-1016.16UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-oem-6.5no fix listedUBUNTU-CVE-2024-39502
Ubuntu:24.04:LTSlinux-oem-6.86.8.0-1012.12UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-oracle5.15.0-1067.73UBUNTU-CVE-2024-39502
Ubuntu:24.04:LTSlinux-oracle6.8.0-1012.12UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-oracle-6.5no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-oracle-6.86.8.0-1012.12~22.04.1UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-raspi5.15.0-1062.65UBUNTU-CVE-2024-39502
Ubuntu:24.04:LTSlinux-raspi6.8.0-1011.12UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2024-39502
Ubuntu:24.04:LTSlinux-riscv6.8.0-44.44.1UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-riscv-6.5no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-riscv-6.86.8.0-44.44.1~22.04.1UBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-starfive-6.5no fix listedUBUNTU-CVE-2024-39502
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1035.39UBUNTU-CVE-2024-39502

Affected products (as reported)

VendorProductVersions
Linux Linux 0f3154e6bcb354968cc04f7cd86ce466f7b9a814 – before 0d19267cb150e8f76ade210e16ee820a77f684e70f3154e6bcb354968cc04f7cd86ce466f7b9a814 – before ff9c2a9426ecf5b9631e9fd74993b357262387d60f3154e6bcb354968cc04f7cd86ce466f7b9a814 – before 8edd18dab443863e9e48f084e7f123fca3065e4e0f3154e6bcb354968cc04f7cd86ce466f7b9a814 – before 60cd714871cd5a683353a355cbb17a685245cf840f3154e6bcb354968cc04f7cd86ce466f7b9a814 – before 183ebc167a8a19e916b885d4bb61a3491991bfa50f3154e6bcb354968cc04f7cd86ce466f7b9a814 – before a87d72b37b9ec2c1e18fe36b09241d8b30334a2e0f3154e6bcb354968cc04f7cd86ce466f7b9a814 – before 79f18a41dd056115d685f3b0a419c7cd40055e13
Linux Linux 5.4

References