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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-05-20T09:41:50.585Z
- Modified: 2026-10-15T01:17:55.397Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 548c4940b9f1f527f81509468dd60b61418880b6 before b26aa765f7437e1bbe8db4c1641b12bd5dd378f0; from 548c4940b9f1f527f81509468dd60b61418880b6 before fdfbf54d128ab6ab255db138488f9650485795a2; from 548c4940b9f1f527f81509468dd60b61418880b6 before 19ff8fed3338898b70b2aad831386c78564912e1; from 548c4940b9f1f527f81509468dd60b61418880b6 before 5c7f2240d9835a7823d87f7460d8eae9f4e504c7; from 548c4940b9f1f527f81509468dd60b61418880b6 before c31baa07f01307b7ae05f3ce32b89d8e2ba0cc1d; from 548c4940b9f1f527f81509468dd60b61418880b6 before bf02d9fe00632d22fa91d34749c7aacf397b6cde; 5.6 (not affected: before 5.6; from 5.10.216 up to 5.10.*; from 5.15.156 up to 5.15.*; from 6.1.87 up to 6.1.*; from 6.6.28 up to 6.6.*; from 6.8.7 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 5.6 before 5.10.216; from 5.11 before 5.15.156; from 5.16 before 6.1.87; from 6.2 before 6.6.28; from 6.7 before 6.8.7; 6.9
- debian debian_linux: 10.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/b26aa765f7437e1bbe8db4c1641b12bd5dd378f0> (patch)
- <https://git.kernel.org/stable/c/fdfbf54d128ab6ab255db138488f9650485795a2> (patch)
- <https://git.kernel.org/stable/c/19ff8fed3338898b70b2aad831386c78564912e1> (patch)
- <https://git.kernel.org/stable/c/5c7f2240d9835a7823d87f7460d8eae9f4e504c7> (patch)
- <https://git.kernel.org/stable/c/c31baa07f01307b7ae05f3ce32b89d8e2ba0cc1d> (patch)
- <https://git.kernel.org/stable/c/bf02d9fe00632d22fa91d34749c7aacf397b6cde> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (mailing-list, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>

## Sources

- CVE List: [CVE-2024-35958](https://www.cve.org/CVERecord?id=CVE-2024-35958), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-35958](https://nvd.nist.gov/vuln/detail/CVE-2024-35958), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-35958 · Whole record: https://cve.day/CVE-2024-35958.json · Rebuilt by cve.day 2026-11-25T22:58:40.636Z
