CVE-2024-50041
MediumIn the Linux kernel, the following vulnerability has been resolved: i40e: Fix macvlan leak by synchronizing access to mac_filter_hash This patch addresses a macvlan leak issue in the i40e driver caused by concurrent access to vsi->mac_filter_hash. The leak occurs when multiple threads attempt to modify the mac_filter_hash simultaneously, leading to inconsistent state and potential memory leaks. To fix this, we now wrap the 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, we add lockdep_assert_held(&vsi->mac_filter_hash_lock) in i40e_add_mac_filter() to help catch similar issues in the future. Reproduction steps: 1. Spawn VFs and configure port vlan on them. 2. Trigger concurrent macvlan operations (e.g., adding and deleting portvlan and/or mac filters). 3. Observe the potential memory leak and inconsistent state in the mac_filter_hash. This synchronization ensures the integrity of the mac_filter_hash and prevents the described leak.
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness type
CWE-401CVE-2024-50041 is a Memory Leak vulnerability
What is Memory Leak?
The product does not release memory after use, causing gradual resource exhaustion. Learn more on MITRE CWE
Affected versions
Linux kernel versions
5.15.54,
5.18.11,
5.19
and later are affected. Fixed in
5.15.168,
6.1.113,
6.6.57,
6.11.4,
6.12
and their respective stable series.
References
The following references provide additional information about CVE-2024-50041 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
-
PatchKernel patch commithttps://git.kernel.org/stable/c/703c4d820b31bcadf465288d5746c53445f02a55
-
PatchKernel patch commithttps://git.kernel.org/stable/c/8831abff1bd5b6bc8224f0c0671f46fbd702b5b2
-
PatchKernel patch commithttps://git.kernel.org/stable/c/9a9747288ba0a9ad4f5c9877f18dd245770ad64e
Frequently asked questions
-
What is CVE-2024-50041?
CVE-2024-50041 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 , classified as a Memory Leak flaw (CWE-401) . It affects Linux kernel versions from 5.15.54 onward and has been patched in 5.15.168, 6.1.113, 6.6.57 and others. CVE-2024-50041 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2024-50041?
CVE-2024-50041 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2024-50041?
Yes — CVE-2024-50041 has been patched. Fixed versions include 5.15.168, 6.1.113, 6.6.57 and others. If you are running Linux kernel 5.15.54 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2024-50041 actively exploited?
No — CVE-2024-50041 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
-
What is Memory Leak (CWE-401)?
The product does not release memory after use, causing gradual resource exhaustion. View CWE-401 on MITRE CWE →