# CVE-2024-40907: ionic: fix kernel panic in XDP\_TX action

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.71% (percentile 49, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-07-12T12:20:47.151Z
- **Modified:** 2026-08-05T11:33:55.631Z

## Who should check

- Anyone running Linux \>= 8eeed8373e1cca836799bf8e4a05cffa8e444908, \< 8812aa35f3e930f61074b9c1ecea26f354992c21; \>= 8eeed8373e1cca836799bf8e4a05cffa8e444908, \< 491aee894a08bc9b8bb52e7363b9d4bc6403f363
- Anyone running Linux 6.9

## Description

In the Linux kernel, the following vulnerability has been resolved:

ionic: fix kernel panic in XDP\_TX action

In the XDP\_TX path, ionic driver sends a packet to the TX path with rx
page and corresponding dma address.
After tx is done, ionic\_tx\_clean() frees that page.
But RX ring buffer isn't reset to NULL.
So, it uses a freed page, which causes kernel panic.

BUG: unable to handle page fault for address: ffff8881576c110c
PGD 773801067 P4D 773801067 PUD 87f086067 PMD 87efca067 PTE 800ffffea893e060
Oops: Oops: 0000 \[\#1\] PREEMPT SMP DEBUG\_PAGEALLOC KASAN NOPTI
CPU: 1 PID: 25 Comm: ksoftirqd/1 Not tainted 6.9.0+ \#11
Hardware name: ASUS System Product Name/PRIME Z690-P D4, BIOS 0603 11/01/2021
RIP: 0010:bpf\_prog\_f0b8caeac1068a55\_balancer\_ingress+0x3b/0x44f
Code: 00 53 41 55 41 56 41 57 b8 01 00 00 00 48 8b 5f 08 4c 8b 77 00 4c 89 f7 48 83 c7 0e 48 39 d8
RSP: 0018:ffff888104e6fa28 EFLAGS: 00010283
RAX: 0000000000000002 RBX: ffff8881576c1140 RCX: 0000000000000002
RDX: ffffffffc0051f64 RSI: ffffc90002d33048 RDI: ffff8881576c110e
RBP: ffff888104e6fa88 R08: 0000000000000000 R09: ffffed1027a04a23
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8881b03a21a8
R13: ffff8881589f800f R14: ffff8881576c1100 R15: 00000001576c1100
FS: 0000000000000000(0000) GS:ffff88881ae00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff8881576c110c CR3: 0000000767a90000 CR4: 00000000007506f0
PKRU: 55555554
Call Trace:
\<TASK\>
? \_\_die+0x20/0x70
? page\_fault\_oops+0x254/0x790
? \_\_pfx\_page\_fault\_oops+0x10/0x10
? \_\_pfx\_is\_prefetch.constprop.0+0x10/0x10
? search\_bpf\_extables+0x165/0x260
? fixup\_exception+0x4a/0x970
? exc\_page\_fault+0xcb/0xe0
? asm\_exc\_page\_fault+0x22/0x30
? 0xffffffffc0051f64
? bpf\_prog\_f0b8caeac1068a55\_balancer\_ingress+0x3b/0x44f
? do\_raw\_spin\_unlock+0x54/0x220
ionic\_rx\_service+0x11ab/0x3010 \[ionic 9180c3001ab627d82bbc5f3ebe8a0decaf6bb864\]
? ionic\_tx\_clean+0x29b/0xc60 \[ionic 9180c3001ab627d82bbc5f3ebe8a0decaf6bb864\]
? \_\_pfx\_ionic\_tx\_clean+0x10/0x10 \[ionic 9180c3001ab627d82bbc5f3ebe8a0decaf6bb864\]
? \_\_pfx\_ionic\_rx\_service+0x10/0x10 \[ionic 9180c3001ab627d82bbc5f3ebe8a0decaf6bb864\]
? ionic\_tx\_cq\_service+0x25d/0xa00 \[ionic 9180c3001ab627d82bbc5f3ebe8a0decaf6bb864\]
? \_\_pfx\_ionic\_rx\_service+0x10/0x10 \[ionic 9180c3001ab627d82bbc5f3ebe8a0decaf6bb864\]
ionic\_cq\_service+0x69/0x150 \[ionic 9180c3001ab627d82bbc5f3ebe8a0decaf6bb864\]
ionic\_txrx\_napi+0x11a/0x540 \[ionic 9180c3001ab627d82bbc5f3ebe8a0decaf6bb864\]
\_\_napi\_poll.constprop.0+0xa0/0x440
net\_rx\_action+0x7e7/0xc30
? \_\_pfx\_net\_rx\_action+0x10/0x10

## Affected and fixed versions

- Linux: \>= 8eeed8373e1cca836799bf8e4a05cffa8e444908, \< 8812aa35f3e930f61074b9c1ecea26f354992c21; \>= 8eeed8373e1cca836799bf8e4a05cffa8e444908, \< 491aee894a08bc9b8bb52e7363b9d4bc6403f363 (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- Upgrade Linux to 491aee894a08bc9b8bb52e7363b9d4bc6403f363 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-40907. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-40907.md
Affected: Linux >= 8eeed8373e1cca836799bf8e4a05cffa8e444908, < 8812aa35f3e930f61074b9c1ecea26f354992c21; >= 8eeed8373e1cca836799bf8e4a05cffa8e444908, < 491aee894a08bc9b8bb52e7363b9d4bc6403f363; Linux 6.9
Fixed in: Linux 8812aa35f3e930f61074b9c1ecea26f354992c21, Linux 491aee894a08bc9b8bb52e7363b9d4bc6403f363

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-40907 being exploited?

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

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

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 8eeed8373e1cca836799bf8e4a05cffa8e444908, \< 8812aa35f3e930f61074b9c1ecea26f354992c21; \>= 8eeed8373e1cca836799bf8e4a05cffa8e444908, \< 491aee894a08bc9b8bb52e7363b9d4bc6403f363; Linux 6.9.

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

Yes. Fixed in Linux 8812aa35f3e930f61074b9c1ecea26f354992c21, Linux 491aee894a08bc9b8bb52e7363b9d4bc6403f363. Upgrade Linux to 491aee894a08bc9b8bb52e7363b9d4bc6403f363 or later.

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

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/8812aa35f3e930f61074b9c1ecea26f354992c21>
- patch: <https://git.kernel.org/stable/c/491aee894a08bc9b8bb52e7363b9d4bc6403f363>

## 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-40907>

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