CVE-2024-35958

medium
Published 2024-07-17 · Modified 2024-11-03
CVSS v3
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4 NEW
not yet in upstream
VIR risk
5.5

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.

Predictions

Exploit likelihood
55%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

Mitigation details

Source: Red Hat Errata — Red Hat Inc. · View original ↗ · Open-Errata-API

Description kernel: net: ena: Fix incorrect descriptor free behavior CVSS v3: 5.5 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) Errata / fixed releases ProductPackageAdvisoryReleased Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-553.8.1.rt7.349.el8_10RHSA-2024:43522024-07-08T00:00:00Z Red Hat Enterprise Linux 8kernel-0:4.18.0-553.8.1.el8_10RHSA-2024:42112024-07-02T00:00:00Z Red Hat Enterprise…

Description

kernel: net: ena: Fix incorrect descriptor free behavior

CVSS v3: 5.5 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)

Errata / fixed releases

ProductPackageAdvisoryReleased
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-553.8.1.rt7.349.el8_10RHSA-2024:43522024-07-08T00:00:00Z
Red Hat Enterprise Linux 8kernel-0:4.18.0-553.8.1.el8_10RHSA-2024:42112024-07-02T00:00:00Z
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportkernel-0:4.18.0-372.111.1.el8_6RHSA-2024:44472024-07-10T00:00:00Z
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicekernel-0:4.18.0-372.111.1.el8_6RHSA-2024:44472024-07-10T00:00:00Z
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionskernel-0:4.18.0-372.111.1.el8_6RHSA-2024:44472024-07-10T00:00:00Z
Red Hat Enterprise Linux 8.8 Extended Update Supportkernel-0:4.18.0-477.64.1.el8_8RHSA-2024:47402024-07-23T00:00:00Z
Red Hat Enterprise Linux 9kernel-0:5.14.0-427.26.1.el9_4RHSA-2024:45832024-07-17T00:00:00Z
Red Hat Enterprise Linux 9kernel-0:5.14.0-427.26.1.el9_4RHSA-2024:45832024-07-17T00:00:00Z
Red Hat Enterprise Linux 9.2 Extended Update Supportkernel-0:5.14.0-284.71.1.el9_2RHSA-2024:41082024-06-26T00:00:00Z
Red Hat Enterprise Linux 9.2 Extended Update Supportkernel-rt-0:5.14.0-284.71.1.rt14.356.el9_2RHSA-2024:41062024-06-26T00:00:00Z

Package state

ProductPackageState
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelOut of support scope
Red Hat Enterprise Linux 7kernel-rtOut of support scope
Red Hat Enterprise Linux 9kernel-rtAffected

Apply commands

bash fix
Apply RHSA-2024:4352 for Red Hat Enterprise Linux 8
yum update -y kernel-rt
# or:
dnf upgrade -y kernel-rt

Affected

VendorProductVersion
redhatRed Hat Enterprise Linux 6Not affected
redhatRed Hat Enterprise Linux 9Affected

OS impact

OSVersionStatusFixed in
redhat rhel9fixed
rockylinux rocky8fixed
suse slesaffected
rockylinux rocky9fixed
debian debianbookwormfixed6.1.90-1
debian debianbullseyefixed5.10.216-1
debian debianforkyfixed6.8.9-1
debian debiansidfixed6.8.9-1
debian debiantrixiefixed6.8.9-1
debian debian10.0affected
linux linux-kernelaffected5.10.216
linux linux-kernel6.9affected
almalinux almalinux8fixedkernel-abi-stablelists-4.18.0-553.8.1.el8_10.noarch.rpm
almalinux almalinux9fixedkernel-headers-5.14.0-427.26.1.el9_4.aarch64.rpm

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.