CVE-2021-47223

net: bridge: fix vlan tunnel dst null pointer dereference

No CVSS score yet EPSS 0.24%

Published 21 May 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2021-47223

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47223 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.6% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 23 May 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 11538d039ac6efcf4f1a6c536e1b87cd3668a9fd, before ad7feefe7164892db424c45687472db803d87f79
affected from 11538d039ac6efcf4f1a6c536e1b87cd3668a9fd, before 24a6e55f17aa123bc1fc54b7d3c410b41bc16530
affected from 11538d039ac6efcf4f1a6c536e1b87cd3668a9fd, before a2241e62f6b4a774d8a92048fdf59c45f6c2fe5c
affected from 11538d039ac6efcf4f1a6c536e1b87cd3668a9fd, before fe0448a3fad365a747283a00a1d1ad5e8d6675b7
affected from 11538d039ac6efcf4f1a6c536e1b87cd3668a9fd, before abb02e05cb1c0a30dd873a29f33bc092067dc35d
affected from 11538d039ac6efcf4f1a6c536e1b87cd3668a9fd, before 58e2071742e38f29f051b709a5cca014ba51166f
Other versions: unaffected
Linux
affected 4.11
unaffected before 4.11
unaffected from 4.14.238 up to and including 4.14.*
unaffected from 4.19.196 up to and including 4.19.*
unaffected from 5.4.128 up to and including 5.4.*
unaffected from 5.10.46 up to and including 5.10.*
unaffected from 5.12.13 up to and including 5.12.*
unaffected 5.13 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47223 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47223

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2021-47223
trivy image --scanners vuln IMAGE | grep CVE-2021-47223

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2021-47223 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.