# CVE-2024-39502: ionic: fix use after netif\_napi\_del()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-07-12T12:20:35.635Z
- **Modified:** 2026-10-15T01:18:34.700Z

## Who should check

- Anyone running Linux \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< 0d19267cb150e8f76ade210e16ee820a77f684e7; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< ff9c2a9426ecf5b9631e9fd74993b357262387d6; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< 8edd18dab443863e9e48f084e7f123fca3065e4e; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< 60cd714871cd5a683353a355cbb17a685245cf84; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< 183ebc167a8a19e916b885d4bb61a3491991bfa5; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< a87d72b37b9ec2c1e18fe36b09241d8b30334a2e; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< 79f18a41dd056115d685f3b0a419c7cd40055e13
- Anyone running Linux 5.4

## 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 and fixed versions

- Linux: \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< 0d19267cb150e8f76ade210e16ee820a77f684e7; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< ff9c2a9426ecf5b9631e9fd74993b357262387d6; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< 8edd18dab443863e9e48f084e7f123fca3065e4e; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< 60cd714871cd5a683353a355cbb17a685245cf84; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< 183ebc167a8a19e916b885d4bb61a3491991bfa5; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< a87d72b37b9ec2c1e18fe36b09241d8b30334a2e; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< 79f18a41dd056115d685f3b0a419c7cd40055e13 (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

- Upgrade Linux to 79f18a41dd056115d685f3b0a419c7cd40055e13 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-39502. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-39502.md
Affected: Linux >= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, < 0d19267cb150e8f76ade210e16ee820a77f684e7; >= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, < ff9c2a9426ecf5b9631e9fd74993b357262387d6; >= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, < 8edd18dab443863e9e48f084e7f123fca3065e4e; >= 0f3154e6bcb354968cc04f7…
Fixed in: Linux 0d19267cb150e8f76ade210e16ee820a77f684e7, Linux 8edd18dab443863e9e48f084e7f123fca3065e4e, Linux 60cd714871cd5a683353a355cbb17a685245cf84, Linux 183ebc167a8a19e916b885d4bb61a3491991bfa5, Linux 79f18a41dd056115d685f3b0a419c7cd40055e13

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-39502 being exploited?

There is no confirmed exploitation: CVE-2024-39502 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-39502?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-39502?

Linux \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< 0d19267cb150e8f76ade210e16ee820a77f684e7; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< ff9c2a9426ecf5b9631e9fd74993b357262387d6; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< 8edd18dab443863e9e48f084e7f123fca3065e4e; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< 60cd714871cd5a683353a355cbb17a685245cf84; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< 183ebc167a8a19e916b885d4bb61a3491991bfa5; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< a87d72b37b9ec2c1e18fe36b09241d8b30334a2e; \>= 0f3154e6bcb354968cc04f7cd86ce466f7b9a814, \< 79f18a41dd056115d685f3b0a419c7cd40055e13; Linux 5.4.

### Is there a fix for CVE-2024-39502?

Yes. Fixed in Linux 0d19267cb150e8f76ade210e16ee820a77f684e7, Linux 8edd18dab443863e9e48f084e7f123fca3065e4e, Linux 60cd714871cd5a683353a355cbb17a685245cf84, Linux 183ebc167a8a19e916b885d4bb61a3491991bfa5, Linux 79f18a41dd056115d685f3b0a419c7cd40055e13. Upgrade Linux to 79f18a41dd056115d685f3b0a419c7cd40055e13 or later.

### How do I check if I'm affected by CVE-2024-39502?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/0d19267cb150e8f76ade210e16ee820a77f684e7>
- patch: <https://git.kernel.org/stable/c/ff9c2a9426ecf5b9631e9fd74993b357262387d6>
- patch: <https://git.kernel.org/stable/c/8edd18dab443863e9e48f084e7f123fca3065e4e>
- patch: <https://git.kernel.org/stable/c/60cd714871cd5a683353a355cbb17a685245cf84>
- patch: <https://git.kernel.org/stable/c/183ebc167a8a19e916b885d4bb61a3491991bfa5>
- patch: <https://git.kernel.org/stable/c/a87d72b37b9ec2c1e18fe36b09241d8b30334a2e>
- patch: <https://git.kernel.org/stable/c/79f18a41dd056115d685f3b0a419c7cd40055e13>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-39502>

HTML: <https://flawdb.com/CVE-2024-39502> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-39502>
