Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-47555

HIGH 7.8EPSS 19%

net: vlan: fix underflow for the real_dev refcnt

Mitigation

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

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

Vulnerability facts

Affected
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
Fixed in
Linux 5e44178864b38dd70b877985abd7d86fdb95f27d, Linux 6e800ee43218a56acc93676bbb3d93b74779e555, Linux 01d9cc2dea3fde3bad6d27f464eff463496e2b00, Linux 5.15, Linux 5.4.163, Linux 5.10.83, Linux 5.15.6
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.33% chance of exploitation in 30 days (percentile 19, 2026-11-26)
CWE
CWE-191
Published
Modified

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

Package / productAffectedFixedSource
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

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors