igc: avoid returning frame twice in XDP_REDIRECT
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 16 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-787 and the CVSS impact.
Summary
In the Linux kernel, the following vulnerability has been resolved: igc: avoid returning frame twice in XDP_REDIRECT When a frame can not be transmitted in XDP_REDIRECT (e.g. due to a full queue), it is necessary to free it by calling xdp_return_frame_rx_napi. However, this is the responsibility of the caller of the ndo_xdp_xmit (see for example bq_xmit_all in kernel/bpf/devmap.c) and thus calling it inside igc_xdp_xmit (which is the ndo_xdp_xmit of the igc driver) as well will lead to memory corruption. In fact, bq_xmit_all expects that it can return all frames after the last successfully transmitted one. Therefore, break for the first not transmitted frame, but do not call xdp_return_frame_rx_napi in igc_xdp_xmit. This is equally implemented in other Intel drivers such as the igb. There are two alternatives to this that were rejected: 1. Return num_frames as all the frames would have been transmitted and release them inside igc_xdp_xmit. While it might work technically, it is not what the return value is meant to represent (i.e. the number of SUCCESSFULLY transmitted packets). 2. Rework kernel/bpf/devmap.c and all drivers to support non-consecutively dropped packets. Besides being complex, it likely has a negative performance impact without a significant gain since it is anyway unlikely that the next frame can be transmitted if the previous one was dropped. The memory corruption can be reproduced with the following script which leads to a kernel panic after a few seconds. It basically generates more traffic than a i225 NIC can transmit and pushes it via XDP_REDIRECT from a virtual interface to the physical interface where frames get dropped. #!/bin/bash INTERFACE=enp4s0 INTERFACE_IDX=`cat /sys/class/net/$INTERFACE/ifindex` sudo ip link add dev veth1 type veth peer name veth2 sudo ip link set up $INTERFACE sudo ip link set up veth1 sudo ip link set up veth2 cat << EOF > redirect.bpf.c SEC("prog") int redirect(struct xdp_md *ctx) { return bpf_redirect($INTERFACE_IDX, 0); } char _license[] SEC("license") = "GPL"; EOF clang -O2 -g -Wall -target bpf -c redirect.bpf.c -o redirect.bpf.o sudo ip link set veth2 xdp obj redirect.bpf.o cat << EOF > pass.bpf.c SEC("prog") int pass(struct xdp_md *ctx) { return XDP_PASS; } char _license[] SEC("license") = "GPL"; EOF clang -O2 -g -Wall -target bpf -c pass.bpf.c -o pass.bpf.o sudo ip link set $INTERFACE xdp obj pass.bpf.o cat << EOF > trafgen.cfg { /* Ethernet Header */ 0xe8, 0x6a, 0x64, 0x41, 0xbf, 0x46, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, const16(ETH_P_IP), /* IPv4 Header */ 0b01000101, 0, # IPv4 version, IHL, TOS const16(1028), # IPv4 total length (UDP length + 20 bytes (IP header)) const16(2), # IPv4 ident 0b01000000, 0, # IPv4 flags, fragmentation off 64, # IPv4 TTL 17, # Protocol UDP csumip(14, 33), # IPv4 checksum /* UDP Header */ 10, 0, 1, 1, # IP Src - adapt as needed 10, 0, 1, 2, # IP Dest - adapt as needed const16(6666), # UDP Src Port const16(6666), # UDP Dest Port const16(1008), # UDP length (UDP header 8 bytes + payload length) csumudp(14, 34), # UDP checksum /* Payload */ fill('W', 1000), } EOF sudo trafgen -i trafgen.cfg -b3000MB -o veth1 --cpp
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.13 and later | 6.1.82, 6.6.22, 6.7.10, 6.8 | Patch available | CNA |
- Linux VendorLinux Affected 5.13 and later Fixed in 6.1.82, 6.6.22, 6.7.10, 6.8 Patch available CNA
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.13 to before 6.1.82; 6.2 to before 6.6.22; 6.7 to before 6.7.10 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:* | 6.8 rc1 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.8:rc2:*:*:*:*:*:* | 6.8 rc2 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.8:rc3:*:*:*:*:*:* | 6.8 rc3 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.8:rc4:*:*:*:*:*:* | 6.8 rc4 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.8:rc5:*:*:*:*:*:* | 6.8 rc5 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.8:rc6:*:*:*:*:*:* | 6.8 rc6 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 5.13 to before 6.1.82; 6.2 to before 6.6.22; 6.7 to before 6.7.10 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:* Versions 6.8 rc1 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.8:rc2:*:*:*:*:*:* Versions 6.8 rc2 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.8:rc3:*:*:*:*:*:* Versions 6.8 rc3 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.8:rc4:*:*:*:*:*:* Versions 6.8 rc4 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.8:rc5:*:*:*:*:*:* Versions 6.8 rc5 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.8:rc6:*:*:*:*:*:* Versions 6.8 rc6 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 6.1.82, 6.6.22, 6.7.10, 6.8
Red Hat 6 advisories
- RHSA-2024:6206 Released 2024-09-03 · Red Hat rating Importantkernel security update
- Red Hat CodeReady Linux Builder EUS (v.8.8) kernel-tools-libs-devel-4.18.0-477.70.1.el8_8
- Red Hat Enterprise Linux BaseOS EUS (v.8.8) bpftool-4.18.0-477.70.1.el8_8, kernel-4.18.0-477.70.1.el8_8, kernel-abi-stablelists-4.18.0-477.70.1.el8_8 +19
- RHSA-2024:5672 Released 2024-08-21 · Red Hat rating Importantkernel security update
- Red Hat CodeReady Linux Builder EUS (v.9.2) kernel-tools-libs-devel-5.14.0-284.80.1.el9_2
- Red Hat Enterprise Linux AppStream EUS (v.9.2) kernel-64k-debug-devel-5.14.0-284.80.1.el9_2, kernel-64k-debug-devel-matched-5.14.0-284.80.1.el9_2, kernel-64k-devel-5.14.0-284.80.1.el9_2 +9
- Red Hat Enterprise Linux BaseOS EUS (v.9.2) bpftool-7.0.0-284.80.1.el9_2, kernel-5.14.0-284.80.1.el9_2, kernel-64k-5.14.0-284.80.1.el9_2 +29
- RHSA-2024:5673 Released 2024-08-21 · Red Hat rating Importantkernel-rt security update
- Red Hat Enterprise Linux Real Time EUS (v.9.2) kernel-rt-5.14.0-284.80.1.rt14.365.el9_2, kernel-rt-core-5.14.0-284.80.1.rt14.365.el9_2, kernel-rt-debug-5.14.0-284.80.1.rt14.365.el9_2 +9
- Red Hat Enterprise Linux Real Time for NFV EUS (v.9.2) kernel-rt-5.14.0-284.80.1.rt14.365.el9_2, kernel-rt-core-5.14.0-284.80.1.rt14.365.el9_2, kernel-rt-debug-5.14.0-284.80.1.rt14.365.el9_2 +11
Show 3 more Red Hat advisories
- RHSA-2024:5363 Released 2024-08-15 · Red Hat rating Importantkernel security update
- Red Hat Enterprise Linux AppStream (v. 9) kernel-64k-debug-devel-5.14.0-427.31.1.el9_4, kernel-64k-debug-devel-matched-5.14.0-427.31.1.el9_4, kernel-64k-devel-5.14.0-427.31.1.el9_4 +11
- Red Hat Enterprise Linux BaseOS (v. 9) bpftool-7.3.0-427.31.1.el9_4, kernel-5.14.0-427.31.1.el9_4, kernel-64k-5.14.0-427.31.1.el9_4 +29
- Red Hat Enterprise Linux CRB (v. 9) kernel-tools-libs-devel-5.14.0-427.31.1.el9_4, libperf-5.14.0-427.31.1.el9_4
- Red Hat Enterprise Linux NFV (v. 9) kernel-rt-5.14.0-427.31.1.el9_4, kernel-rt-core-5.14.0-427.31.1.el9_4, kernel-rt-debug-5.14.0-427.31.1.el9_4 +11
- Red Hat Enterprise Linux RT (v. 9) kernel-rt-5.14.0-427.31.1.el9_4, kernel-rt-core-5.14.0-427.31.1.el9_4, kernel-rt-debug-5.14.0-427.31.1.el9_4 +9
- RHSA-2024:5101 Released 2024-08-08 · Red Hat rating Importantkernel security update
- Red Hat Enterprise Linux BaseOS (v. 8) bpftool-4.18.0-553.16.1.el8_10, kernel-4.18.0-553.16.1.el8_10, kernel-abi-stablelists-4.18.0-553.16.1.el8_10 +19
- Red Hat Enterprise Linux CRB (v. 8) kernel-tools-libs-devel-4.18.0-553.16.1.el8_10
- RHSA-2024:5102 Released 2024-08-08 · Red Hat rating Importantkernel-rt security update
- Red Hat Enterprise Linux NFV (v. 8) kernel-rt-4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-core-4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-debug-4.18.0-553.16.1.rt7.357.el8_10 +9
- Red Hat Enterprise Linux RT (v. 8) kernel-rt-4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-core-4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-debug-4.18.0-553.16.1.rt7.357.el8_10 +7
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 9 | Affected | No fix yet |
| Red Hat CodeReady Linux Builder EUS (v.8.8) | Fixed | RHSA-2024:6206 |
| Red Hat CodeReady Linux Builder EUS (v.9.2) | Fixed | RHSA-2024:5672 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2024:5363 |
| Red Hat Enterprise Linux AppStream EUS (v.9.2) | Fixed | RHSA-2024:5672 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2024:5101 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2024:5363 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.8) | Fixed | RHSA-2024:6206 |
| Red Hat Enterprise Linux BaseOS EUS (v.9.2) | Fixed | RHSA-2024:5672 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2024:5101 |
| Red Hat Enterprise Linux CRB (v. 9) | Fixed | RHSA-2024:5363 |
| Red Hat Enterprise Linux NFV (v. 8) | Fixed | RHSA-2024:5102 |
| Red Hat Enterprise Linux NFV (v. 9) | Fixed | RHSA-2024:5363 |
| Red Hat Enterprise Linux RT (v. 8) | Fixed | RHSA-2024:5102 |
| Red Hat Enterprise Linux RT (v. 9) | Fixed | RHSA-2024:5363 |
| Red Hat Enterprise Linux Real Time EUS (v.9.2) | Fixed | RHSA-2024:5673 |
| Red Hat Enterprise Linux Real Time for NFV EUS (v.9.2) | Fixed | RHSA-2024:5673 |
Not affected: 4 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux AppStream (v. 9)
- Red Hat Enterprise Linux AppStream EUS (v.9.2)
- Red Hat Enterprise Linux CRB (v. 9)
Timeline
- 2026-10-02 Threatist record created from CVE-2024-26853
- 2026-10-03 Alias added: GHSA-xh88-4pfp-fhr6
- 2026-10-27 EPSS moved to the 50th–90th percentile
References
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2024-26853 · CVE Program
- CVE-2024-26853 · NVD
- FIRST EPSS
- GHSA-xh88-4pfp-fhr6 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-26853 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences