# CVE-2026-74560: xsk: fix buffer leak in xsk\_drop\_skb() for AF\_XDP multi-buffer Tx

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-08-15T12:28:03.912Z
- **Modified:** 2026-10-21T13:19:47.207Z

## Who should check

- Anyone running Linux \>= cf24f5a5feeaae34c1a34d1e04f8ac697290427a, \< c24b3379c0ff00101b9ede54d36f7138d8a02c43; \>= cf24f5a5feeaae34c1a34d1e04f8ac697290427a, \< 05e283466b86e0b25a5209a3eafe87aa9886064a; \>= cf24f5a5feeaae34c1a34d1e04f8ac697290427a, \< a0528ab6af62bf57153caaf8ea28e5fcb0e18fd4; \>= cf24f5a5feeaae34c1a34d1e04f8ac697290427a, \< a3c8382ebce4780c6b3ace2c09bc342313ac0186
- Anyone running Linux 6.6

## Description

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

xsk: fix buffer leak in xsk\_drop\_skb() for AF\_XDP multi-buffer Tx

This patch is inspired by the check\[1\] from sashiko. It says when
overflow happens, the address of cq to be published is invalid.
Actually the severer thing is the whole process of publishing the
address of cq in this particular case is not right: it should truely
publish the address and advance the cached\_prod in cq as long as it
reads descriptors from txq.

The following is the full analysis.
xsk\_drop\_skb() is called in three places, which all discard a partially
built multi-buffer skb:
1) xsk\_build\_skb() -EOVERFLOW error path: packet exceeds MAX\_SKB\_FRAGS
2) \_\_xsk\_generic\_xmit() post-loop cleanup: an invalid descriptor in
   the TX ring prevents the partial packet from completing
3) xsk\_release(): socket close while xs-\>skb holds an incomplete packet

In all three cases, the TX descriptors for the already-processed frags
have been consumed from the TX ring (xskq\_cons\_release), and CQ slots
have been reserved. However, xsk\_drop\_skb() calls xsk\_consume\_skb()
which cancels the CQ reservations via xsk\_cq\_cancel\_locked(). Since
the buffer addresses never appear in the completion queue, userspace
permanently loses track of these buffers.

Fix this by letting consume\_skb() trigger the existing xsk\_destruct\_skb
destructor, which already submits buffer addresses to the CQ via
xsk\_cq\_submit\_addr\_locked().

Note that cancelling the descriptors back to the TX ring (via
xskq\_cons\_cancel\_n) is not a appropriate option because an oversized
packet that always exceeds MAX\_SKB\_FRAGS would be retried indefinitely,
which is an obviously deadlock bug in the TX path.

Also move the desc-\>addr assignment in xsk\_build\_skb() above the
overflow check so that the current descriptor's address is recorded
before a potential -EOVERFLOW jump to free\_err, consistent with the
zerocopy path in xsk\_build\_skb\_zerocopy().

\[1\]: https://lore.kernel.org/all/20260425041726.85FB3C2BCB2@smtp.kernel.org/

## Affected and fixed versions

- Linux: \>= cf24f5a5feeaae34c1a34d1e04f8ac697290427a, \< c24b3379c0ff00101b9ede54d36f7138d8a02c43; \>= cf24f5a5feeaae34c1a34d1e04f8ac697290427a, \< 05e283466b86e0b25a5209a3eafe87aa9886064a; \>= cf24f5a5feeaae34c1a34d1e04f8ac697290427a, \< a0528ab6af62bf57153caaf8ea28e5fcb0e18fd4; \>= cf24f5a5feeaae34c1a34d1e04f8ac697290427a, \< a3c8382ebce4780c6b3ace2c09bc342313ac0186 (cvelist)
- Linux: 6.6 (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-2026-74560. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-74560.md
Affected: Linux >= cf24f5a5feeaae34c1a34d1e04f8ac697290427a, < c24b3379c0ff00101b9ede54d36f7138d8a02c43; >= cf24f5a5feeaae34c1a34d1e04f8ac697290427a, < 05e283466b86e0b25a5209a3eafe87aa9886064a; >= cf24f5a5feeaae34c1a34d1e04f8ac697290427a, < a0528ab6af62bf57153caaf8ea28e5fcb0e18fd4; >= cf24f5a5feeaae34c1a34d1…
Fixed in: Linux 05e283466b86e0b25a5209a3eafe87aa9886064a

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-2026-74560 being exploited?

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

### How serious is CVE-2026-74560?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-74560?

Linux \>= cf24f5a5feeaae34c1a34d1e04f8ac697290427a, \< c24b3379c0ff00101b9ede54d36f7138d8a02c43; \>= cf24f5a5feeaae34c1a34d1e04f8ac697290427a, \< 05e283466b86e0b25a5209a3eafe87aa9886064a; \>= cf24f5a5feeaae34c1a34d1e04f8ac697290427a, \< a0528ab6af62bf57153caaf8ea28e5fcb0e18fd4; \>= cf24f5a5feeaae34c1a34d1e04f8ac697290427a, \< a3c8382ebce4780c6b3ace2c09bc342313ac0186; Linux 6.6.

### Is there a fix for CVE-2026-74560?

Yes. Fixed in Linux 05e283466b86e0b25a5209a3eafe87aa9886064a. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-74560?

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

- other: <https://git.kernel.org/stable/c/c24b3379c0ff00101b9ede54d36f7138d8a02c43>
- other: <https://git.kernel.org/stable/c/05e283466b86e0b25a5209a3eafe87aa9886064a>
- other: <https://git.kernel.org/stable/c/a0528ab6af62bf57153caaf8ea28e5fcb0e18fd4>
- other: <https://git.kernel.org/stable/c/a3c8382ebce4780c6b3ace2c09bc342313ac0186>

## 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-2026-74560>

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