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
| Vector | AV: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 👾
Related Identifiers
Affected Products
Astra Linux
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu