CVE-2024-35958 net: ena: Fix incorrect descriptor free behavior
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
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.
Upgrade path
13 packages: 12 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 12) | < 6.1.90-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +18 more | 6.1.90-1 | Fixed |
| debian/linux(Debian 13) | < 6.8.9-1 | 6.8.9-1 | Fixed |
| debian/linux(Debian 14) | < 6.8.9-1 | 6.8.9-1 | Fixed |
| Linux kernel | < 5.10.216; < 5.15.156; < 6.1.87; < 6.6.28 +17 more | 5.10.216, 5.15.156, 5c7f2240d9835a7823d87f7460d8eae9f4e504c7, 6.1.87, 6.6.28, 6.8.7, 6.9, 19ff8fed3338898b70b2aad831386c78564912e1, b26aa765f7437e1bbe8db4c1641b12bd5dd378f0, bf02d9fe00632d22fa91d34749c7aacf397b6cde, c31baa07f01307b7ae05f3ce32b89d8e2ba0cc1d, fdfbf54d128ab6ab255db138488f9650485795a2 | Fixed |
| Siemens RUGGEDCOM RST2428P | < V3.1 | V3.1 | Fixed |
| Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family | < V3.1 | V3.1 | Fixed |
| Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | < V1.1.1 | V1.1.1 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-116.126 | 5.15.0-116.126 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-38.38 | 6.8.0-38.38 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1062.67 | 5.15.0-1062.67 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1058.61 | 5.15.0-1058.61 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1007.7 | 6.8.0-1007.7 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | < 6.1.90-1 | 6.1.90-1 |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:13) | < 6.8.9-1 | 6.8.9-1 |
| debian/linux(Debian:14) | < 6.8.9-1 | 6.8.9-1 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-116.126 | 5.15.0-116.126 |
Show 29 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1062.67 | 5.15.0-1062.67 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1058.61 | 5.15.0-1058.61 |
| Linux kernel | >= 548c4940b9f1f527f81509468dd60b61418880b6, < b26aa765f7437e1bbe8db4c1641b12bd5dd378f0 | b26aa765f7437e1bbe8db4c1641b12bd5dd378f0 |
| Linux kernel | >= 548c4940b9f1f527f81509468dd60b61418880b6, < fdfbf54d128ab6ab255db138488f9650485795a2 | fdfbf54d128ab6ab255db138488f9650485795a2 |
| Linux kernel | >= 548c4940b9f1f527f81509468dd60b61418880b6, < 19ff8fed3338898b70b2aad831386c78564912e1 | 19ff8fed3338898b70b2aad831386c78564912e1 |
| Linux kernel | >= 548c4940b9f1f527f81509468dd60b61418880b6, < 5c7f2240d9835a7823d87f7460d8eae9f4e504c7 | 5c7f2240d9835a7823d87f7460d8eae9f4e504c7 |
| Linux kernel | >= 548c4940b9f1f527f81509468dd60b61418880b6, < c31baa07f01307b7ae05f3ce32b89d8e2ba0cc1d | c31baa07f01307b7ae05f3ce32b89d8e2ba0cc1d |
| Linux kernel | >= 548c4940b9f1f527f81509468dd60b61418880b6, < bf02d9fe00632d22fa91d34749c7aacf397b6cde | bf02d9fe00632d22fa91d34749c7aacf397b6cde |
| Linux kernel | = 5.6 | No fix listed |
| Linux kernel | < 5.10.216 | 5.10.216 |
| Linux kernel | < 5.15.156 | 5.15.156 |
| Linux kernel | < 6.1.87 | 6.1.87 |
| Linux kernel | < 6.6.28 | 6.6.28 |
| Linux kernel | < 6.8.7 | 6.8.7 |
| Linux kernel | < 6.9 | 6.9 |
| Siemens RUGGEDCOM RST2428P | < V3.1 | V3.1 |
| Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family | < V3.1 | V3.1 |
| Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | < V1.1.1 | V1.1.1 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-38.38 | 6.8.0-38.38 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1007.7 | 6.8.0-1007.7 |
| Linux kernel | >= 5.6, < 5.10.216 | 5.10.216 |
| Linux kernel | >= 5.11, < 5.15.156 | 5.15.156 |
| Linux kernel | >= 5.16, < 6.1.87 | 6.1.87 |
| Linux kernel | >= 6.2, < 6.6.28 | 6.6.28 |
| Linux kernel | >= 6.7, < 6.8.7 | 6.8.7 |
| Linux kernel | = 6.9-rc1 | No fix listed |
| Linux kernel | = 6.9-rc2 | No fix listed |
| Linux kernel | = 6.9-rc3 | No fix listed |
| debian linux | = 10.0 | No fix listed |
References
- Debian Security Tracker CVE-2024-35958 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-6893-1 vendor-advisory
- USN-6898-1 vendor-advisory
- USN-6893-2 vendor-advisory
- USN-6898-2 vendor-advisory
- USN-6898-3 vendor-advisory
- USN-6893-3 vendor-advisory
- USN-6898-4 vendor-advisory
- USN-6917-1 vendor-advisory
- USN-6919-1 vendor-advisory
- USN-6918-1 vendor-advisory
- USN-6927-1 vendor-advisory
- USN-7019-1 vendor-advisory
- USN-7461-1 vendor-advisory
- USN-7461-2 vendor-advisory
- USN-7462-1 vendor-advisory
- USN-7462-2 vendor-advisory
- USN-7463-1 vendor-advisory
- USN-7461-3 vendor-advisory
- USN-7539-1 vendor-advisory
- USN-7540-1 vendor-advisory
- www.cve.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org mailing-list third-party-advisory
- cert-portal.siemens.com
- cert-portal.siemens.com
- ENISA EUVD EUVD-2024-35676 third-party-advisory