# CVE-2021-47555: net: vlan: fix underflow for the real\_dev refcnt

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-191
- **Published:** 2024-05-24T15:09:57.302Z
- **Modified:** 2026-08-05T08:48:23.118Z

## Who should check

- Anyone running Linux \>= 700602b662d7eaa816b1a3cb0abe7a85de358fd4, \< 5e44178864b38dd70b877985abd7d86fdb95f27d; \>= e04a7a84bb77f9cdf4475340fe931389bc72331c, \< 6e800ee43218a56acc93676bbb3d93b74779e555; \>= 21032425c36ff85f16e72ca92193a8c401e4acd5, \< f7fc72a508cf115c273a7a29350069def1041890; \>= 563bcbae3ba233c275c244bfce2efe12938f5363, \< 01d9cc2dea3fde3bad6d27f464eff463496e2b00; fca96b3f852a1b369b7b2844ce357cd689879934; \>= 5.14.19, \< 5.15
- Anyone running Linux \>= 5.4.160, \< 5.4.163; \>= 5.10.80, \< 5.10.83; \>= 5.15.3, \< 5.15.6

## 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 the call-back of
ndo\_init(). That makes dev\_hold() and dev\_put() for vlan's real\_dev
symmetrical.

## Affected and fixed versions

- Linux: \>= 700602b662d7eaa816b1a3cb0abe7a85de358fd4, \< 5e44178864b38dd70b877985abd7d86fdb95f27d; \>= e04a7a84bb77f9cdf4475340fe931389bc72331c, \< 6e800ee43218a56acc93676bbb3d93b74779e555; \>= 21032425c36ff85f16e72ca92193a8c401e4acd5, \< f7fc72a508cf115c273a7a29350069def1041890; \>= 563bcbae3ba233c275c244bfce2efe12938f5363, \< 01d9cc2dea3fde3bad6d27f464eff463496e2b00; fca96b3f852a1b369b7b2844ce357cd689879934; \>= 5.14.19, \< 5.15 (cvelist)
- Linux: \>= 5.4.160, \< 5.4.163; \>= 5.10.80, \< 5.10.83; \>= 5.15.3, \< 5.15.6 (cvelist)

## Mitigation

- Upgrade Linux to 5.15 or later.
- Upgrade Linux to 5.15.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47555. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47555.md
Affected: Linux >= 700602b662d7eaa816b1a3cb0abe7a85de358fd4, < 5e44178864b38dd70b877985abd7d86fdb95f27d; >= e04a7a84bb77f9cdf4475340fe931389bc72331c, < 6e800ee43218a56acc93676bbb3d93b74779e555; >= 21032425c36ff85f16e72ca92193a8c401e4acd5, < f7fc72a508cf115c273a7a29350069def1041890; >= 563bcbae3ba233c275c244b…
Fixed in: Linux 5e44178864b38dd70b877985abd7d86fdb95f27d, Linux 6e800ee43218a56acc93676bbb3d93b74779e555, Linux 01d9cc2dea3fde3bad6d27f464eff463496e2b00, Linux 5.15, Linux 5.4.163, Linux 5.10.83, Linux 5.15.6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47555 being exploited?

There is no confirmed exploitation: CVE-2021-47555 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47555?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47555?

Linux \>= 700602b662d7eaa816b1a3cb0abe7a85de358fd4, \< 5e44178864b38dd70b877985abd7d86fdb95f27d; \>= e04a7a84bb77f9cdf4475340fe931389bc72331c, \< 6e800ee43218a56acc93676bbb3d93b74779e555; \>= 21032425c36ff85f16e72ca92193a8c401e4acd5, \< f7fc72a508cf115c273a7a29350069def1041890; \>= 563bcbae3ba233c275c244bfce2efe12938f5363, \< 01d9cc2dea3fde3bad6d27f464eff463496e2b00; fca96b3f852a1b369b7b2844ce357cd689879934; \>= 5.14.19, \< 5.15; Linux \>= 5.4.160, \< 5.4.163; \>= 5.10.80, \< 5.10.83; \>= 5.15.3, \< 5.15.6.

### Is there a fix for CVE-2021-47555?

Yes. Fixed in Linux 5e44178864b38dd70b877985abd7d86fdb95f27d, Linux 6e800ee43218a56acc93676bbb3d93b74779e555, Linux 01d9cc2dea3fde3bad6d27f464eff463496e2b00, Linux 5.15, Linux 5.4.163, Linux 5.10.83, Linux 5.15.6. Upgrade Linux to 5.15 or later. Upgrade Linux to 5.15.6 or later.

### How do I check if I'm affected by CVE-2021-47555?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/5e44178864b38dd70b877985abd7d86fdb95f27d>
- patch: <https://git.kernel.org/stable/c/6e800ee43218a56acc93676bbb3d93b74779e555>
- patch: <https://git.kernel.org/stable/c/f7fc72a508cf115c273a7a29350069def1041890>
- patch: <https://git.kernel.org/stable/c/01d9cc2dea3fde3bad6d27f464eff463496e2b00>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47555>

HTML: <https://flawdb.com/CVE-2021-47555> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47555>
