Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-39502 Overview
CVE-2024-39502 is a use-after-free vulnerability in the Linux kernel's ionic network driver, which supports Pensando Ethernet adapters. The flaw resides in the queue management path, where ionic_qcq_enable() fails to detect that a NAPI (New API) instance has been unregistered via netif_napi_del(). The function netif_napi_del() does not reset the .poll pointer to NULL, so subsequent calls to napi_enable() operate on freed state. The issue is tracked under [CWE-416] and affects Linux kernel versions through 6.10-rc3.
Critical Impact
A local user with the ability to reconfigure network queue counts via ethtool -L can trigger a kernel BUG, leading to denial of service or potential memory corruption on hosts using the ionic driver.
Affected Products
- Linux kernel stable branches prior to the fix commits
- Linux kernel 6.10-rc1, 6.10-rc2, 6.10-rc3
- Downstream distributions including Debian LTS and Siemens industrial products referenced in advisories SSA-265688, SSA-355557, and SSA-613116
Discovery Timeline
- 2024-07-12 - CVE-2024-39502 published to the National Vulnerability Database
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2024-39502
Vulnerability Analysis
The vulnerability lives in the Pensando ionic Ethernet driver and manifests during dynamic queue reconfiguration. When queues start, the driver calls netif_napi_add() followed by napi_enable() for every active queue. If the device is configured with four queues but only three are in use, only three NAPI instances are registered. The driver's ionic_qcq_enable() function tries to filter out unused queues by checking whether the .poll function pointer in the NAPI structure is non-NULL.
This heuristic breaks because netif_napi_del() does not clear the .poll pointer after unregistration. Stale .poll values from previously registered NAPIs survive the teardown. On the next queue bring-up, ionic_qcq_enable() treats the stale pointer as evidence of a valid registration and calls napi_enable() on an unregistered NAPI, triggering kernel BUG at net/core/dev.c:6666.
Root Cause
The root cause is a lifetime assumption mismatch. The ionic driver uses the .poll pointer as an implicit "is this NAPI registered?" flag, but the kernel NAPI API does not uphold that contract. After netif_napi_del(), the NAPI descriptor retains its last .poll assignment, producing use-after-free behavior when operations assume the structure is still owned by the networking core.
Attack Vector
Exploitation requires local access and the privilege to run ethtool against an interface backed by the ionic driver. The published reproducer toggles queue counts in sequence:
ethtool -L <interface> rx 1 tx 1 combined 0
ethtool -L <interface> rx 0 tx 0 combined 1
ethtool -L <interface> rx 0 tx 0 combined 4
The final reconfiguration triggers napi_enable+0x3b/0x40 on a stale NAPI, reaching the invalid opcode trap through ionic_qcq_enable, ionic_start_queues, ionic_link_status_check, and ionic_lif_deferred_work. The outcome is a kernel oops that disrupts the networking subsystem and the host.
Detection Methods for CVE-2024-39502
Indicators of Compromise
- Kernel oops entries referencing napi_enable+0x3b/0x40 with a RIP in ionic_qcq_enable or ionic_start_queues
- BUG messages at net/core/dev.c:6666 on hosts loading the ionic kernel module
- Repeated ionic_lif_deferred_work worker crashes in dmesg or journalctl -k
Detection Strategies
- Inventory Linux hosts loading the ionic module via lsmod | grep ionic and correlate with running kernel versions below the patched commits
- Alert on unauthorized invocations of ethtool -L that modify RX, TX, or combined queue counts on production interfaces
- Monitor kernel ring buffer logs for invalid opcode traps whose call traces include ionic_qcq_enable or napi_enable
Monitoring Recommendations
- Forward /var/log/kern.log and journald kernel streams to a centralized logging platform for crash signature correlation
- Baseline ethtool usage per host and flag deviations from expected network configuration workflows
- Track reboot and NIC reset frequency on Pensando-equipped servers as a proxy for driver instability
How to Mitigate CVE-2024-39502
Immediate Actions Required
- Apply the upstream kernel patches referenced below and reboot affected hosts into the fixed kernel
- Restrict CAP_NET_ADMIN and sudo access to ethtool so only authorized operators can change queue counts
- Audit configuration automation that calls ethtool -L and stage changes in maintenance windows
Patch Information
The fix clears or reinitializes the NAPI .poll state so ionic_qcq_enable() can correctly distinguish registered from unregistered queues. Backports are available in the following stable commits: Linux Kernel Commit 0d19267, Linux Kernel Commit 183ebc1, Linux Kernel Commit 60cd714, Linux Kernel Commit 79f18a4, Linux Kernel Commit 8edd18d, Linux Kernel Commit a87d72b, and Linux Kernel Commit ff9c2a9. Distribution updates are tracked in the Debian LTS Announcement January 2025 and Siemens advisories SSA-265688, SSA-355557, and SSA-613116.
Workarounds
- Avoid dynamic queue count changes on ionic interfaces until the patched kernel is deployed
- Blacklist the ionic module on hosts that do not require Pensando NIC functionality
- Enforce change control around ethtool -L through sudoers rules or role-based access to management interfaces
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

