PT-2024-29226 · Linux+5 · Linux Kernel+5

Published

2024-07-08

·

Updated

2025-03-27

·

CVE-2024-41047

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 (affected versions not specified)
Description The vulnerability is related to the i40e driver in the Linux kernel. It occurs when the XDP program is being unloaded while the driver is being removed. The commit 6533e558c650 introduced a new PF state " I40E IN REMOVE" to block modifying the XDP program while the driver is being removed. However, this change is only useful if the ".ndo bpf()" callback was called out of the rmmod context. The driver is expected to unload the XDP program without reporting any errors when the rmmod context is used. Otherwise, a kernel warning with a call stack is printed to dmesg.
To fix this issue, it is recommended to check if the XDP program is being loaded or unloaded and block only loading a new program while " I40E IN REMOVE" is set. Additionally, move testing the " I40E IN REMOVE" flag to the beginning of the XDP SETUP callback to avoid unnecessary operations and checks.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Improper Locking

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

Weakness Enumeration

Related Identifiers

BDU:2025-01322
CVE-2024-41047
DLA-4008-1
MGASA-2024-0277
MGASA-2024-0278
OESA-2024-2076
OPENSUSE-SU-2024_3984-1
OPENSUSE-SU-2024_3986-1
OPENSUSE-SU-2025_0556-1
OPENSUSE-SU-2025_0577-1
SUSE-SU-2024:3984-1
SUSE-SU-2024:3986-1
SUSE-SU-2024:4318-1
SUSE-SU-2024:4387-1
SUSE-SU-2025:0556-1
SUSE-SU-2025:0577-1
SUSE-SU-2025:0577-2
SUSE-SU-2025:20163-1
SUSE-SU-2025:20164-1
SUSE-SU-2025:20246-1
SUSE-SU-2025:20247-1
SUSE-SU-2025_0577-1
SUSE-SU-2025_0577-2
USN-7007-1
USN-7007-2
USN-7007-3
USN-7009-1
USN-7009-2
USN-7019-1
USN-7089-1
USN-7089-2
USN-7089-3
USN-7089-4
USN-7089-5
USN-7089-6
USN-7089-7
USN-7090-1
USN-7095-1
USN-7156-1

Affected Products

Astra Linux
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu