CVE-2021-47223

net: bridge: fix vlan tunnel dst null pointer dereference

MEDIUM
5.5
CVSS Score
Published: May 21, 2024 at 02:19 PM UTC
Updated: June 17, 2026 at 04:16 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: net: bridge: fix vlan tunnel dst null pointer dereference This patch fixes a tunnel_dst null pointer dereference due to lockless access in the tunnel egress path. When deleting a vlan tunnel the tunnel_dst pointer is set to NULL without waiting a grace period (i.e. while it's still usable) and packets egressing are dereferencing it without checking. Use READ/WRITE_ONCE to annotate the lockless use of tunnel_id, use RCU for accessing tunnel_dst and make sure it is read only once and checked in the egress path. The dst is already properly RCU protected so we don't need to do anything fancy than to make sure tunnel_id and tunnel_dst are read only once and checked in the egress path.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.11 ≤ v < 4.14.2384.11 ≤ v < 4.19.1964.11 ≤ v < 5.10.464.11 ≤ v < 5.12.134.11 ≤ v < 5.134.11 ≤ v < 5.4.1284.15 ≤ v < 4.19.1964.20 ≤ v < 5.4.1285.11 ≤ v < 5.12.135.5 ≤ v < 5.10.4611538d039ac6efcf4f1a6c536e1b87cd3668a9fd5.13 rc15.13 rc25.13 rc35.13 rc45.13 rc55.13 rc6
Vendor states this is fixed in 24a6e55f17aa123bc1fc54b7d3c410b41bc16530 (fixed)
Vendor states this is fixed in 58e2071742e38f29f051b709a5cca014ba51166f (fixed)
Vendor states this is fixed in a2241e62f6b4a774d8a92048fdf59c45f6c2fe5c (fixed)
Vendor states this is fixed in abb02e05cb1c0a30dd873a29f33bc092067dc35d (fixed)
Vendor states this is fixed in ad7feefe7164892db424c45687472db803d87f79 (fixed)
Vendor states this is fixed in fe0448a3fad365a747283a00a1d1ad5e8d6675b7 (fixed)
Vendor states this is fixed in 4.11 (unaffected)
Vendor states this is fixed in 4.14.238 (unaffected)
Vendor states this is fixed in 4.19.196 (unaffected)
Vendor states this is fixed in 5.10.46 (unaffected)
Vendor states this is fixed in 5.12.13 (unaffected)
Vendor states this is fixed in 5.13 (unaffected)
Vendor states this is fixed in 5.4.128 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/24a6e55f17aa123bc1fc54b7d3c410b41bc16530
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/58e2071742e38f29f051b709a5cca014ba51166f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a2241e62f6b4a774d8a92048fdf59c45f6c2fe5c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/abb02e05cb1c0a30dd873a29f33bc092067dc35d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ad7feefe7164892db424c45687472db803d87f79
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fe0448a3fad365a747283a00a1d1ad5e8d6675b7

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card