CVE & CISA-KEV Catalog

CVE-2024-38557

MEDIUM
5.5
CVSS v3
NVD

Description

In the Linux kernel, the following vulnerability has been resolved: net/mlx5: Reload only IB representors upon lag disable/enable On lag disable, the bond IB device along with all of its representors are destroyed, and then the slaves' representors get reloaded. In case the slave IB representor load fails, the eswitch error flow unloads all representors, including ethernet representors, where the netdevs get detached and removed from lag bond. Such flow is inaccurate as the lag driver is not responsible for loading/unloading ethernet representors. Furthermore, the flow described above begins by holding lag lock to prevent bond changes during disable flow. However, when reaching the ethernet representors detachment from lag, the lag lock is required again, triggering the following deadlock: Call trace: __switch_to+0xf4/0x148 __schedule+0x2c8/0x7d0 schedule+0x50/0xe0 schedule_preempt_disabled+0x18/0x28 __mutex_lock.isra.13+0x2b8/0x570 __mutex_lock_slowpath+0x1c/0x28 mutex_lock+0x4c/0x68 mlx5_lag_remove_netdev+0x3c/0x1a0 [mlx5_core] mlx5e_uplink_rep_disable+0x70/0xa0 [mlx5_core] mlx5e_detach_netdev+0x6c/0xb0 [mlx5_core] mlx5e_netdev_change_profile+0x44/0x138 [mlx5_core] mlx5e_netdev_attach_nic_profile+0x28/0x38 [mlx5_core] mlx5e_vport_rep_unload+0x184/0x1b8 [mlx5_core] mlx5_esw_offloads_rep_load+0xd8/0xe0 [mlx5_core] mlx5_eswitch_reload_reps+0x74/0xd0 [mlx5_core] mlx5_disable_lag+0x130/0x138 [mlx5_core] mlx5_lag_disable_change+0x6c/0x70 [mlx5_core] // hold ldev->lock mlx5_devlink_eswitch_mode_set+0xc0/0x410 [mlx5_core] devlink_nl_cmd_eswitch_set_doit+0xdc/0x180 genl_family_rcv_msg_doit.isra.17+0xe8/0x138 genl_rcv_msg+0xe4/0x220 netlink_rcv_skb+0x44/0x108 genl_rcv+0x40/0x58 netlink_unicast+0x198/0x268 netlink_sendmsg+0x1d4/0x418 sock_sendmsg+0x54/0x60 __sys_sendto+0xf4/0x120 __arm64_sys_sendto+0x30/0x40 el0_svc_common+0x8c/0x120 do_el0_svc+0x30/0xa0 el0_svc+0x20/0x30 el0_sync_handler+0x90/0xb8 el0_sync+0x160/0x180 Thus, upon lag enable/disable, load and unload only the IB representors of the slaves preventing the deadlock mentioned above. While at it, refactor the mlx5_esw_offloads_rep_load() function to have a static helper method for its internal logic, in symmetry with the representor unload design.

How to fix

Remediation Available
linuxDebian
Fixed in:6.8.12-1CVE-2024-38557
Fixed in:6.8.12-1CVE-2024-38557
linuxUbuntu
Fixed in:6.8.0-40.40USN-6949-1
linux-awsUbuntu
Fixed in:6.8.0-1013.14USN-6949-1
linux-gcpUbuntu
Fixed in:6.8.0-1012.13USN-6949-1
linux-gkeUbuntu
Fixed in:6.8.0-1008.11USN-6949-1
linux-ibmUbuntu
Fixed in:6.8.0-1010.10USN-6949-1
linux-image-6.8.0-1008-gkeUbuntu
Fixed in:6.8.0-1008.11USN-6949-1
linux-image-6.8.0-1009-raspiUbuntu
Fixed in:6.8.0-1009.10USN-6949-2
linux-image-6.8.0-1010-ibmUbuntu
Fixed in:6.8.0-1010.10USN-6949-1
linux-image-6.8.0-1010-oemUbuntu
Fixed in:6.8.0-1010.10USN-6955-1
linux-image-6.8.0-1010-oracleUbuntu
Fixed in:6.8.0-1010.10USN-6952-1
linux-image-6.8.0-1010-oracle-64kUbuntu
Fixed in:6.8.0-1010.10USN-6952-1
linux-image-6.8.0-1011-nvidiaUbuntu
Fixed in:6.8.0-1011.11~22.04.1USN-6949-1
Fixed in:6.8.0-1011.11USN-6949-1
linux-image-6.8.0-1011-nvidia-64kUbuntu
Fixed in:6.8.0-1011.11~22.04.1USN-6949-1
Fixed in:6.8.0-1011.11USN-6949-1
linux-image-6.8.0-1011-nvidia-lowlatencyUbuntu
Fixed in:6.8.0-1011.11.1USN-6952-1
linux-image-6.8.0-1011-nvidia-lowlatency-64kUbuntu
Fixed in:6.8.0-1011.11.1USN-6952-1
linux-image-6.8.0-1012-gcpUbuntu
Fixed in:6.8.0-1012.13USN-6949-1
linux-image-6.8.0-1013-awsUbuntu
Fixed in:6.8.0-1013.14USN-6949-1
linux-image-6.8.0-40-genericUbuntu
Fixed in:6.8.0-40.40USN-6949-1
linux-image-6.8.0-40-generic-64kUbuntu
Fixed in:6.8.0-40.40USN-6949-1
linux-image-6.8.0-40-lowlatencyUbuntu
Fixed in:6.8.0-40.40.1USN-6949-2
linux-image-6.8.0-40-lowlatency-64kUbuntu
Fixed in:6.8.0-40.40.1USN-6949-2
linux-image-awsUbuntu
Fixed in:6.8.0-1013.14USN-6949-1
linux-image-gcpUbuntu
Fixed in:6.8.0-1012.13USN-6949-1
linux-image-genericUbuntu
Fixed in:6.8.0-40.40USN-6949-1
linux-image-generic-64kUbuntu
Fixed in:6.8.0-40.40USN-6949-1
linux-image-generic-64k-hwe-24.04Ubuntu
Fixed in:6.8.0-40.40USN-6949-1
linux-image-generic-hwe-24.04Ubuntu
Fixed in:6.8.0-40.40USN-6949-1
linux-image-generic-lpaeUbuntu
Fixed in:6.8.0-40.40USN-6949-1
linux-image-gkeUbuntu
Fixed in:6.8.0-1008.11USN-6949-1
linux-image-ibmUbuntu
Fixed in:6.8.0-1010.10USN-6949-1
linux-image-ibm-classicUbuntu
Fixed in:6.8.0-1010.10USN-6949-1
linux-image-ibm-lts-24.04Ubuntu
Fixed in:6.8.0-1010.10USN-6949-1
linux-image-kvmUbuntu
Fixed in:6.8.0-40.40USN-6949-1
linux-image-lowlatencyUbuntu
Fixed in:6.8.0-40.40.1USN-6949-2
linux-image-lowlatency-64kUbuntu
Fixed in:6.8.0-40.40.1USN-6949-2
linux-image-nvidiaUbuntu
Fixed in:6.8.0-1011.11USN-6949-1
linux-image-nvidia-6.8Ubuntu
Fixed in:6.8.0-1011.11~22.04.1USN-6949-1
linux-image-nvidia-64kUbuntu
Fixed in:6.8.0-1011.11USN-6949-1
linux-image-nvidia-64k-6.8Ubuntu
Fixed in:6.8.0-1011.11~22.04.1USN-6949-1
linux-image-nvidia-lowlatencyUbuntu
Fixed in:6.8.0-1011.11.1USN-6952-1
linux-image-nvidia-lowlatency-64kUbuntu
Fixed in:6.8.0-1011.11.1USN-6952-1
linux-image-oem-24.04Ubuntu
Fixed in:6.8.0-1010.10USN-6955-1
linux-image-oem-24.04aUbuntu
Fixed in:6.8.0-1010.10USN-6955-1
linux-image-oracleUbuntu
Fixed in:6.8.0-1010.10USN-6952-1
linux-image-oracle-64kUbuntu
Fixed in:6.8.0-1010.10USN-6952-1
linux-image-raspiUbuntu
Fixed in:6.8.0-1009.10USN-6949-2
linux-image-virtualUbuntu
Fixed in:6.8.0-40.40USN-6949-1
linux-image-virtual-hwe-24.04Ubuntu
Fixed in:6.8.0-40.40USN-6949-1
linux-lowlatencyUbuntu
Fixed in:6.8.0-40.40.1USN-6949-2
linux-nvidiaUbuntu
Fixed in:6.8.0-1011.11USN-6949-1
linux-nvidia-6.8Ubuntu
Fixed in:6.8.0-1011.11~22.04.1USN-6949-1
linux-nvidia-lowlatencyUbuntu
Fixed in:6.8.0-1011.11.1USN-6952-1
linux-oem-6.8Ubuntu
Fixed in:6.8.0-1010.10USN-6955-1
linux-oracleUbuntu
Fixed in:6.8.0-1010.10USN-6952-1
linux-raspiUbuntu
Fixed in:6.8.0-1009.10USN-6949-2

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

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

Exploit Intelligence

0.18%probability of exploitation in 30 days
8thpercentile

Low risk: more likely to be exploited than 8% of all known CVEs.

References

Related Vulnerabilities

Other CWE-667 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2019-10072High7.573%-Fix
CVE-2002-1850High7.517%-Fix
CVE-2009-2699High7.514%-Fix
CVE-2004-0174High7.512%--
CVE-2009-4272High7.511%--
CVE-2020-24606High8.65.2%-Fix
Embed a live status badge for CVE-2024-38557
CVE-2024-38557 severity badge

Markdown

[![CVE-2024-38557](https://tridentstack.com/cve/badge/CVE-2024-38557.svg)](https://tridentstack.com/cve/CVE-2024-38557)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-38557"><img src="https://tridentstack.com/cve/badge/CVE-2024-38557.svg" alt="CVE-2024-38557"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.