# CVE-2024-26853: igc: avoid returning frame twice in XDP\_REDIRECT

> 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.89% (percentile 57, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-04-17T10:17:16.571Z
- **Modified:** 2026-08-05T11:27:49.221Z

## Who should check

- Anyone running Linux \>= 4ff3203610928cac82d5627ce803559e78d61b91, \< 63a3c1f3c9ecc654d851e7906d05334cd0c236e2; \>= 4ff3203610928cac82d5627ce803559e78d61b91, \< 8df393af9e7e8dfd62e9c41dbaa4d2ff53bf794a; \>= 4ff3203610928cac82d5627ce803559e78d61b91, \< 1b3b8231386a572bac8cd5b6fd7e944b84f9bb1f; \>= 4ff3203610928cac82d5627ce803559e78d61b91, \< ef27f655b438bed4c83680e4f01e1cde2739854b
- Anyone running Linux 5.13

## Description

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

## Affected and fixed versions

- Linux: \>= 4ff3203610928cac82d5627ce803559e78d61b91, \< 63a3c1f3c9ecc654d851e7906d05334cd0c236e2; \>= 4ff3203610928cac82d5627ce803559e78d61b91, \< 8df393af9e7e8dfd62e9c41dbaa4d2ff53bf794a; \>= 4ff3203610928cac82d5627ce803559e78d61b91, \< 1b3b8231386a572bac8cd5b6fd7e944b84f9bb1f; \>= 4ff3203610928cac82d5627ce803559e78d61b91, \< ef27f655b438bed4c83680e4f01e1cde2739854b (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-26853.md
Affected: Linux >= 4ff3203610928cac82d5627ce803559e78d61b91, < 63a3c1f3c9ecc654d851e7906d05334cd0c236e2; >= 4ff3203610928cac82d5627ce803559e78d61b91, < 8df393af9e7e8dfd62e9c41dbaa4d2ff53bf794a; >= 4ff3203610928cac82d5627ce803559e78d61b91, < 1b3b8231386a572bac8cd5b6fd7e944b84f9bb1f; >= 4ff3203610928cac82d5627…
Fixed in: Linux 63a3c1f3c9ecc654d851e7906d05334cd0c236e2, Linux 8df393af9e7e8dfd62e9c41dbaa4d2ff53bf794a, Linux 1b3b8231386a572bac8cd5b6fd7e944b84f9bb1f

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

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

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

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

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

Linux \>= 4ff3203610928cac82d5627ce803559e78d61b91, \< 63a3c1f3c9ecc654d851e7906d05334cd0c236e2; \>= 4ff3203610928cac82d5627ce803559e78d61b91, \< 8df393af9e7e8dfd62e9c41dbaa4d2ff53bf794a; \>= 4ff3203610928cac82d5627ce803559e78d61b91, \< 1b3b8231386a572bac8cd5b6fd7e944b84f9bb1f; \>= 4ff3203610928cac82d5627ce803559e78d61b91, \< ef27f655b438bed4c83680e4f01e1cde2739854b; Linux 5.13.

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

Yes. Fixed in Linux 63a3c1f3c9ecc654d851e7906d05334cd0c236e2, Linux 8df393af9e7e8dfd62e9c41dbaa4d2ff53bf794a, Linux 1b3b8231386a572bac8cd5b6fd7e944b84f9bb1f. No fix listed yet: follow the vendor advisory.

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

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/63a3c1f3c9ecc654d851e7906d05334cd0c236e2>
- patch: <https://git.kernel.org/stable/c/8df393af9e7e8dfd62e9c41dbaa4d2ff53bf794a>
- patch: <https://git.kernel.org/stable/c/1b3b8231386a572bac8cd5b6fd7e944b84f9bb1f>
- patch: <https://git.kernel.org/stable/c/ef27f655b438bed4c83680e4f01e1cde2739854b>

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

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