PT-2024-33882 · Linux+6 · Linux Kernel+6

Published

2024-10-21

·

Updated

2025-10-03

·

CVE-2024-50041

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions: Linux kernel versions prior to 6.6.58
Description: The issue is related to a macvlan leak in the i40e driver, caused by concurrent access to vsi->mac filter hash. This leads to inconsistent state and potential memory leaks when multiple threads attempt to modify mac filter hash simultaneously. The patch addresses this by wrapping calls to i40e del mac filter() and zeroing vf->default lan addr.addr with spin lock/unlock bh(&vsi->mac filter hash lock), ensuring atomic operations and preventing concurrent access. Additionally, lockdep assert held(&vsi->mac filter hash lock) is added in i40e add mac filter() to catch similar issues in the future. The reproduction steps involve spawning VFs, configuring port vlan, triggering concurrent macvlan operations, and observing the potential memory leak and inconsistent state in mac filter hash.
Recommendations: To resolve the issue, update to Linux kernel version 6.6.58 or later. As a temporary workaround, consider disabling concurrent macvlan operations until the patch is applied. Restrict access to the i40e driver to minimize the risk of exploitation. Avoid triggering concurrent macvlan operations, such as adding and deleting portvlan and/or mac filters, until the issue is resolved.

Exploit

Fix

Memory Leak

Improper Locking

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2025_12746
ALSA-2025_12752
ALSA-2025_12753
ALSA-2025_16880
ALT-PU-2024-14268
ALT-PU-2024-14704
ALT-PU-2024-17211
ALT-PU-2025-12647
AZL-51159
AZL-51198
BDU:2025-04486
CVE-2024-50041
DLA-4008-1
MGASA-2024-0344
MGASA-2024-0345
OESA-2024-2367
OPENSUSE-SU-2024:14500-1
OPENSUSE-SU-2024_3983-1
OPENSUSE-SU-2024_3984-1
OPENSUSE-SU-2024_3985-1
OPENSUSE-SU-2024_3986-1
OPENSUSE-SU-2025:14705-1
SUSE-SU-2024:3983-1
SUSE-SU-2024:3984-1
SUSE-SU-2024:3985-1
SUSE-SU-2024:3986-1
SUSE-SU-2024:4318-1
SUSE-SU-2024:4364-1
SUSE-SU-2024:4387-1
SUSE-SU-2025:20163-1
SUSE-SU-2025:20164-1
SUSE-SU-2025:20246-1
SUSE-SU-2025:20247-1
USN-7166-1
USN-7166-2
USN-7166-3
USN-7166-4
USN-7186-1
USN-7186-2
USN-7194-1
USN-7276-1
USN-7277-1
USN-7310-1
USN-7383-1
USN-7383-2
USN-7384-1
USN-7384-2
USN-7385-1
USN-7386-1
USN-7403-1
USN-7451-1
USN-7468-1
USN-7523-1
USN-7524-1

Affected Products

Alt Linux
Astra Linux
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu