PT-2022-7444 · Linux+3 · Linux Kernel+3

Ivan Vecera

·

Published

2022-09-02

·

Updated

2025-01-24

·

CVE-2022-48688

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 5.19.0
Description The vulnerability is related to the i40e driver in the Linux kernel. It causes a kernel crash during module removal due to the incorrect freeing of a client instance. This happens when two offline tests are performed consecutively, leading to an IRDMA driver failure, which is then indicated back to the i40e client subtask() function. This function calls i40e client del instance() to free the client instance, setting the pointer to NULL. However, during module removal, i40e remove() calls i40e lan del device(), which dereferences the NULL pointer, resulting in a crash.
To mitigate this issue, it is recommended to avoid removing the client instance when client open callbacks fail and instead clear the I40E CLIENT INSTANCE OPENED bit. Additionally, the driver should handle the situation where the network device is up and the client is not opened in the i40e notify client of netdev close() function, calling the client close callback only when I40E CLIENT INSTANCE OPENED is set.
Recommendations To resolve this issue, update the Linux kernel to a version that includes the fix for this vulnerability. If an update is not available, consider temporarily disabling the i40e driver or restricting its use to minimize the risk of exploitation.

Exploit

Fix

NULL Pointer Dereference

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

Weakness Enumeration

Related Identifiers

BDU:2024-06342
CVE-2022-48688
OESA-2024-2257
OPENSUSE-SU-2024_1644-1
OPENSUSE-SU-2024_1659-1
OPENSUSE-SU-2024_1663-1
OPENSUSE-SU-2024_2189-1
SUSE-SU-2024:1643-1
SUSE-SU-2024:1644-1
SUSE-SU-2024:1646-1
SUSE-SU-2024:1659-1
SUSE-SU-2024:1663-1
SUSE-SU-2024:1870-1
SUSE-SU-2024:2011-1
SUSE-SU-2024:2189-1
SUSE-SU-2025:0231-1

Affected Products

Astra Linux
Linux Kernel
Red Os
Suse