PT-2021-8031

CVE-2021-46936

·

Published

2021-12-29

·

Updated

2026-10-21

Description by

CVSS 3.1
7.8
High
MetricsAV: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.4
Description A use-after-free vulnerability has been identified in the Linux kernel. The issue arises when the ipv4 mib exit net function is called before tcp sk exit batch during the destruction of a net namespace, resulting in a use-after-free condition on net->mib.net statistics in the tw timer handler function. This vulnerability can lead to a real-world panic issue, as demonstrated in Linux 5.4. The bug was introduced by commit 61a7e26028b9, which put net statistics on the struct net and freed it when the net namespace was destroyed.
Recommendations To resolve this issue, move init ipv4 mibs() to the front of tcp init() and replace pr crit() with panic() since continuing is meaningless when init ipv4 mibs() fails. As a temporary workaround, consider disabling the tw timer handler function until a patch is available. Restrict access to the vulnerable net->mib.net statistics to minimize the risk of exploitation.
Exploitability
Fix
Impacts
Researchers
Vendors
Affected products
Weakness enumeration
Related identifiers
CLSA-2024-1720468480
CLSA-2025-1742322442
OESA-2024-1567
OPENSUSE-SU-2024_1321-1
OPENSUSE-SU-2024_1322-1
OPENSUSE-SU-2024_1322-2
OPENSUSE-SU-2024_1332-1
OPENSUSE-SU-2024_1332-2
OPENSUSE-SU-2024_1466-1
OPENSUSE-SU-2024_1480-1
OPENSUSE-SU-2024_1490-1
SUSE-SU-2024:1320-1
SUSE-SU-2024:1321-1
SUSE-SU-2024:1466-1
SUSE-SU-2024:1480-1
SUSE-SU-2024:1490-1
SUSE-SU-2024:4100-1
SUSE-SU-2024_4100-1
SUSE-SU-2025:0034-1
SUSE-SU-2025_0034-1
USN-6739-1
Found an issue in the description? Have something to add? Feel free to write us 👾