CVE-2024-35958: net: ena: Fix incorrect descriptor free behavior
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
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-35958?
CVE-2024-35958 is considered a medium-severity vulnerability in the Linux kernel.
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.
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.
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.
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.