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

Published May 20, 2024
·
Updated

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 XDPREDIRECT or XDPTX instructions

The enafreetxbufs() 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 napiconsumeskb() 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.

Other sources

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

net: ena: Fix incorrect descriptor free behavior

The Linux kernel CVE team has assigned CVE-2024-35958 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024052019-CVE-2024-35958-18a7@gregkh/T

Red Hat

Affected Software

20 affected componentsFixes available
IBM Security Verify Governance<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Software Stack<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Virtual Appliance<=ISVG 10.0.2
IBM Security Verify Governance Identity Manager Container<=ISVG 10.0.2
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.27-1
redhat/kernel<5.10.216
5.10.216
redhat/kernel<5.15.156
5.15.156
redhat/kernel<6.1.87
6.1.87
redhat/kernel<6.6.28
6.6.28
redhat/kernel<6.8.7
6.8.7
redhat/kernel<6.9
6.9
Linux Linux kernel>=5.6<5.10.216
Linux Linux kernel>=5.11<5.15.156
Linux Linux kernel>=5.16<6.1.87
Linux Linux kernel>=6.2<6.6.28
Linux Linux kernel>=6.7<6.8.7
Linux Linux kernel=6.9-rc1
Linux Linux kernel=6.9-rc2
Linux Linux kernel=6.9-rc3
Debian Debian Linux=10.0

Event History

May 20, 2024
CVE Published
via MITRE·09:41 AM
Data Sourced
via MITRE·09:41 AM
Description
Data Sourced
via NVD·10:15 AM
DescriptionSeverity
Data Sourced
via NVD·10:15 AM
RemedyAffected Software
Data Sourced
via Red Hat·05:08 PM
DescriptionSeverityAffected Software
Jul 11, 2024
Data Sourced
via Launchpad·07:47 PM
Description
May 17, 2025
Data Sourced
via Ubuntu·12:27 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-35958?

CVE-2024-35958 is considered a medium-severity vulnerability in the Linux kernel.

2

How do I fix CVE-2024-35958?

To fix CVE-2024-35958, update the Linux kernel to versions 5.10.216, 5.15.156, 6.1.87, 6.6.28, 6.8.7, or 6.9 as applicable.

3

Which systems are affected by CVE-2024-35958?

CVE-2024-35958 affects systems running specific versions of the Linux kernel, including those from Red Hat and Debian.

4

Is CVE-2024-35958 related to any specific components in the Linux kernel?

Yes, CVE-2024-35958 is related to the ENA driver and involves incorrect descriptor free behavior.

5

What should I do if I cannot update to a patched version for CVE-2024-35958?

If you cannot update, consider applying any available mitigations or configurations to limit exposure until a patch can be applied.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203