Menu

Star on GitHub · 3.2k

CVE-2021-47555

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: net: vlan: fix underflow for the real_dev refcnt Inject error before dev_hold(real_dev) in register_vlan_dev(), and execute the…

Published May 24, 2024CWE-191EPSS 0.22%

Overview

CVE-2021-47555 is a high-severity vulnerability. It was published on May 24, 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:

net: vlan: fix underflow for the real_dev refcnt

Inject error before dev_hold(real_dev) in register_vlan_dev(),

and execute the following testcase:

ip link add dev dummy1 type dummy

ip link add name dummy1.100 link dummy1 type vlan id 100

ip link del dev dummy1

When the dummy netdevice is removed, we will get a WARNING as following:

=======================================================================

refcount_t: decrement hit 0; leaking memory.

WARNING: CPU: 2 PID: 0 at lib/refcount.c:31 refcount_warn_saturate+0xbf/0x1e0

and an endless loop of:

=======================================================================

unregister_netdevice: waiting for dummy1 to become free. Usage count = -1073741824

That is because dev_put(real_dev) in vlan_dev_free() be called without

dev_hold(real_dev) in register_vlan_dev(). It makes the refcnt of real_dev

underflow.

Move the dev_hold(real_dev) to vlan_dev_init() which is t

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-47555?

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

How severe is CVE-2021-47555?

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-47555?

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-47555?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2021-47555 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