# CVE-2021-47223: net: bridge: fix vlan tunnel dst null pointer dereference

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-05-21 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2021-47223, DEBIAN-CVE-2021-47223
- Record: https://cvemate.com/vulnerability/CVE-2021-47223 · JSON: https://cvemate.com/vulnerability/CVE-2021-47223/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.236%, percentile 15.597%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 89)

- debian linux (Debian): \< 5.10.46-1
- ubuntu linux (Ubuntu): \< 4.15.0-156.163 \| \< 5.4.0-81.91
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 4.15.0-1111.118 \| \< 5.4.0-1055.58
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1055.58~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 4.15.0-2053.55 \| All versions (No fix recorded) \| \< 5.4.0-1069.73+fips2
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1111.118~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1123.136~14.04.1 \| \< 4.15.0-1123.136~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1056.58
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1123.136
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/ad7feefe7164892db424c45687472db803d87f79>
- <https://git.kernel.org/stable/c/24a6e55f17aa123bc1fc54b7d3c410b41bc16530>
- <https://git.kernel.org/stable/c/a2241e62f6b4a774d8a92048fdf59c45f6c2fe5c>
- <https://git.kernel.org/stable/c/fe0448a3fad365a747283a00a1d1ad5e8d6675b7>
- <https://git.kernel.org/stable/c/abb02e05cb1c0a30dd873a29f33bc092067dc35d>
- <https://git.kernel.org/stable/c/58e2071742e38f29f051b709a5cca014ba51166f>
- <https://ubuntu.com/security/CVE-2021-47223>
- <https://www.cve.org/CVERecord?id=CVE-2021-47223>
- <https://git.kernel.org/linus/58e2071742e38f29f051b709a5cca014ba51166f>
- <https://security-tracker.debian.org/tracker/CVE-2021-47223>

---

Data as of 2026-12-06T05:50:52.205Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
