Menu

Star on GitHub · 3.2k

CVE-2021-47082

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: tun: avoid double free in tun_free_netdev Avoid double free in tun_free_netdev() by moving the dev->tstats and tun->security al…

Published Mar 4, 2024CWE-415EPSS 0.25%

Overview

CVE-2021-47082 is a high-severity vulnerability. It was published on March 4, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

tun: avoid double free in tun_free_netdev

Avoid double free in tun_free_netdev() by moving the

dev->tstats and tun->security allocs to a new ndo_init routine

(tun_net_init()) that will be called by register_netdevice().

ndo_init is paired with the desctructor (tun_free_netdev()),

so if there's an error in register_netdevice() the destructor

will handle the frees.

BUG: KASAN: double-free or invalid-free in selinux_tun_dev_free_security+0x1a/0x20 security/selinux/hooks.c:5605

CPU: 0 PID: 25750 Comm: syz-executor416 Not tainted 5.16.0-rc2-syzk #1

Hardware name: Red Hat KVM, BIOS

Call Trace:

<TASK>

__dump_stack lib/dump_stack.c:88 [inline]

dump_stack_lvl+0x89/0xb5 lib/dump_stack.c:106

print_address_description.constprop.9+0x28/0x160 mm/kasan/report.c:247

kasan_report_invalid_free+0x55/0x80 mm/kasan/report.c:372

____kasan_slab_free mm/kasan/common.c:346 [inline]

__kasan_slab_free+0x107/0x120 mm/kasan/common.c:374

kasan_

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2021-47082?

CVE-2021-47082 is a high-severity vulnerability. It was published on March 4, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2021-47082?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-47082?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-47082?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2021-47082 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2021

View all