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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-05-21T14:19:28.882Z
- Modified: 2026-06-17T04:16:56.590Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 11538d039ac6efcf4f1a6c536e1b87cd3668a9fd before ad7feefe7164892db424c45687472db803d87f79; from 11538d039ac6efcf4f1a6c536e1b87cd3668a9fd before 24a6e55f17aa123bc1fc54b7d3c410b41bc16530; from 11538d039ac6efcf4f1a6c536e1b87cd3668a9fd before a2241e62f6b4a774d8a92048fdf59c45f6c2fe5c; from 11538d039ac6efcf4f1a6c536e1b87cd3668a9fd before fe0448a3fad365a747283a00a1d1ad5e8d6675b7; from 11538d039ac6efcf4f1a6c536e1b87cd3668a9fd before abb02e05cb1c0a30dd873a29f33bc092067dc35d; from 11538d039ac6efcf4f1a6c536e1b87cd3668a9fd before 58e2071742e38f29f051b709a5cca014ba51166f; 4.11 (not affected: before 4.11; from 4.14.238 up to 4.14.*; from 4.19.196 up to 4.19.*; from 5.4.128 up to 5.4.*; from 5.10.46 up to 5.10.*; from 5.12.13 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 4.11 before 4.14.238; from 4.15 before 4.19.196; from 4.20 before 5.4.128; from 5.5 before 5.10.46; from 5.11 before 5.12.13; 5.13

## References

- <https://git.kernel.org/stable/c/ad7feefe7164892db424c45687472db803d87f79> (patch)
- <https://git.kernel.org/stable/c/24a6e55f17aa123bc1fc54b7d3c410b41bc16530> (patch)
- <https://git.kernel.org/stable/c/a2241e62f6b4a774d8a92048fdf59c45f6c2fe5c> (patch)
- <https://git.kernel.org/stable/c/fe0448a3fad365a747283a00a1d1ad5e8d6675b7> (patch)
- <https://git.kernel.org/stable/c/abb02e05cb1c0a30dd873a29f33bc092067dc35d> (patch)
- <https://git.kernel.org/stable/c/58e2071742e38f29f051b709a5cca014ba51166f> (patch)

## Sources

- CVE List: [CVE-2021-47223](https://www.cve.org/CVERecord?id=CVE-2021-47223), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47223](https://nvd.nist.gov/vuln/detail/CVE-2021-47223), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47223 · Whole record: https://cve.day/CVE-2021-47223.json · Rebuilt by cve.day 2026-11-25T22:58:08.741Z
