PT-2024-11398 · Linux+2 · Linux Kernel+2

Vlad Buslov

·

Published

2021-09-30

·

Updated

2025-01-27

·

CVE-2021-47402

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 5.15.0-rc2+
Description The vulnerability is related to a use-after-free issue in the fl walk function of the Linux kernel's cls flower module. This issue occurs when a filter is deleted concurrently while the fl walk function is iterating over it, causing a use-after-free error. The vulnerability can be exploited by an attacker to potentially execute arbitrary code or cause a denial-of-service condition.
The fl walk function has been refactored to use idr for each entry continue ul and to obtain an RCU read lock while iterating over the filters, which should prevent the use-after-free issue. The vulnerability has been identified through a KASAN (Kernel Address Sanitizer) trace.
Recommendations To resolve this issue, update the Linux kernel to a version that includes the fix for this vulnerability. Specifically, update to a version later than 5.15.0-rc2+.
As a temporary workaround, consider disabling the fl walk function until a patch is available. However, this may have unintended consequences and should be carefully evaluated before implementation.
Note: The provided information does not specify the exact version that includes the fix, so it is recommended to update to the latest available version of the Linux kernel.

Fix

Use After Free

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

Weakness Enumeration

Related Identifiers

BDU:2025-07464
CVE-2021-47402
OPENSUSE-SU-2024:14234-1
OPENSUSE-SU-2024_2185-1
OPENSUSE-SU-2024_2189-1
OPENSUSE-SU-2024_2947-1
OPENSUSE-SU-2024_3651-1
OPENSUSE-SU-2024_3652-1
OPENSUSE-SU-2024_3685-1
OPENSUSE-SU-2024_3798-1
OPENSUSE-SU-2024_3814-1
OPENSUSE-SU-2024_3854-1
OPENSUSE-SU-2024_4180-1
OPENSUSE-SU-2024_4256-1
OPENSUSE-SU-2024_4264-1
OPENSUSE-SU-2025_0101-1
OPENSUSE-SU-2025_0106-1
OPENSUSE-SU-2025_0137-1
OPENSUSE-SU-2025_0238-1
OPENSUSE-SU-2025_0240-1
OPENSUSE-SU-2025_0244-1
SUSE-SU-2024:2008-1
SUSE-SU-2024:2010-1
SUSE-SU-2024:2011-1
SUSE-SU-2024:2019-1
SUSE-SU-2024:2183-1
SUSE-SU-2024:2185-1
SUSE-SU-2024:2189-1
SUSE-SU-2024:2190-1
SUSE-SU-2024:2894-1
SUSE-SU-2024:2947-1
SUSE-SU-2024:3023-1
SUSE-SU-2024:3030-1
SUSE-SU-2024:3034-1
SUSE-SU-2024:3039-1
SUSE-SU-2024:3041-1
SUSE-SU-2024:3043-1
SUSE-SU-2024:3044-1
SUSE-SU-2024:3048-1
SUSE-SU-2024:3642-1
SUSE-SU-2024:3649-1
SUSE-SU-2024:3651-1
SUSE-SU-2024:3652-1
SUSE-SU-2024:3685-1
SUSE-SU-2024:3796-1
SUSE-SU-2024:3798-1
SUSE-SU-2024:3803-1
SUSE-SU-2024:3814-1
SUSE-SU-2024:3849-1
SUSE-SU-2024:3854-1
SUSE-SU-2024:4180-1
SUSE-SU-2024:4242-1
SUSE-SU-2024:4250-1
SUSE-SU-2024:4256-1
SUSE-SU-2024:4263-1
SUSE-SU-2024:4264-1
SUSE-SU-2025:0101-1
SUSE-SU-2025:0106-1
SUSE-SU-2025:0137-1
SUSE-SU-2025:0238-1
SUSE-SU-2025:0240-1
SUSE-SU-2025:0244-1

Affected Products

Astra Linux
Linux Kernel
Suse