CVE-2021-47587

net: systemport: Add global locking for descriptor lifecycle

9.8 critical EPSS 0.55%

Published 19 Jun 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2021-47587

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-47587 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: systemport: Add global locking for descriptor lifecycle

The descriptor list is a shared resource across all of the transmit queues, and the locking mechanism used today only protects concurrency across a given transmit queue between the transmit and reclaiming. This creates an opportunity for the SYSTEMPORT hardware to work on corrupted descriptors if we have multiple producers at once which is the case when using multiple transmit queues.

This was particularly noticeable when using multiple flows/transmit queues and it showed up in interesting ways in that UDP packets would get a correct UDP header checksum being calculated over an incorrect packet length. Similarly TCP packets would get an equally correct checksum computed by the hardware over an incorrect packet length.

The SYSTEMPORT hardware maintains an internal descriptor list that it re-arranges when the driver produces a new descriptor anytime it writes to the WRITE_PORT_{HI,LO} registers, there is however some delay in the hardware to re-organize its descriptors and it is possible that concurrent TX queues eventually break this internal allocation scheme to the point where the length/status part of the descriptor gets used for an incorrect data buffer.

The fix is to impose a global serialization for all TX queues in the short section where we are writing to the WRITE_PORT_{HI,LO} registers which solves the corruption even with multiple concurrent TX queues being used.

Severity (CVSS)

9.8 critical CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

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

The assessment of CISA (SSVC, 10 Sep 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 80105befdb4b8cea924711b40b2462b87df65b62, before 8ed2f5d08d6e59f8c78b2869bfb95d0be32c094c
affected from 80105befdb4b8cea924711b40b2462b87df65b62, before de57f62f76450b934de8203711bdc4f7953c3421
affected from 80105befdb4b8cea924711b40b2462b87df65b62, before f3fde37d3f0d429f0fcce214cb52588a9e21260e
affected from 80105befdb4b8cea924711b40b2462b87df65b62, before 595a684fa6f23b21958379a18cfa83862c73c2e1
affected from 80105befdb4b8cea924711b40b2462b87df65b62, before c675256a7f131f5ba3f331efb715e8f31ea0e392
affected from 80105befdb4b8cea924711b40b2462b87df65b62, before 6e1011cd183faae8daff275c72444edcdfe0d473
affected from 80105befdb4b8cea924711b40b2462b87df65b62, before eb4687c7442942e115420a30185f8d83faf37696
affected from 80105befdb4b8cea924711b40b2462b87df65b62, before 8b8e6e782456f1ce02a7ae914bbd5b1053f0b034
Other versions: unaffected
Linux
affected 3.16
unaffected before 3.16
unaffected from 4.4.296 up to and including 4.4.*
unaffected from 4.9.294 up to and including 4.9.*
unaffected from 4.14.259 up to and including 4.14.*
unaffected from 4.19.222 up to and including 4.19.*
unaffected from 5.4.168 up to and including 5.4.*
unaffected from 5.10.88 up to and including 5.10.*
unaffected from 5.15.11 up to and including 5.15.*
unaffected 5.16 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-47587 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47587

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-47587
trivy image --scanners vuln IMAGE | grep CVE-2021-47587

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