CVE & CISA-KEV Catalog

CVE-2021-47587

MEDIUM
5.5
CVSS v3
NVD

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.

How to fix

Remediation Available
linuxDebian
Fixed in:5.10.92-1CVE-2021-47587
Fixed in:5.15.15-1CVE-2021-47587
Fixed in:5.15.15-1CVE-2021-47587
Fixed in:5.15.15-1CVE-2021-47587
linuxUbuntu
Fixed in:4.4.0-268.302USN-7506-1
linux-awsUbuntu
Fixed in:4.4.0-1143.149USN-7506-2
Fixed in:4.4.0-1181.196USN-7506-1
linux-fipsUbuntu
Fixed in:4.4.0-1113.120USN-7506-3
linux-image-4.4.0-1113-fipsUbuntu
Fixed in:4.4.0-1113.120USN-7506-3
linux-image-4.4.0-1143-awsUbuntu
Fixed in:4.4.0-1143.149USN-7506-2
linux-image-4.4.0-1144-kvmUbuntu
Fixed in:4.4.0-1144.155USN-7506-1
linux-image-4.4.0-1181-awsUbuntu
Fixed in:4.4.0-1181.196USN-7506-1
linux-image-4.4.0-268-genericUbuntu
Fixed in:4.4.0-268.302~14.04.1USN-7506-4
Fixed in:4.4.0-268.302USN-7506-1
linux-image-4.4.0-268-lowlatencyUbuntu
Fixed in:4.4.0-268.302~14.04.1USN-7506-4
Fixed in:4.4.0-268.302USN-7506-1
linux-image-awsUbuntu
Fixed in:4.4.0.1143.140USN-7506-2
Fixed in:4.4.0.1181.185USN-7506-1
linux-image-fipsUbuntu
Fixed in:4.4.0.1113.114USN-7506-3
linux-image-genericUbuntu
Fixed in:4.4.0.268.274USN-7506-1
linux-image-generic-lts-xenialUbuntu
Fixed in:4.4.0.268.302~14.04.1USN-7506-4
Fixed in:4.4.0.268.274USN-7506-1
linux-image-kvmUbuntu
Fixed in:4.4.0.1144.141USN-7506-1
linux-image-lowlatencyUbuntu
Fixed in:4.4.0.268.274USN-7506-1
linux-image-lowlatency-lts-xenialUbuntu
Fixed in:4.4.0.268.302~14.04.1USN-7506-4
Fixed in:4.4.0.268.274USN-7506-1
linux-image-virtualUbuntu
Fixed in:4.4.0.268.274USN-7506-1
linux-image-virtual-lts-xenialUbuntu
Fixed in:4.4.0.268.302~14.04.1USN-7506-4
Fixed in:4.4.0.268.274USN-7506-1
linux-kvmUbuntu
Fixed in:4.4.0-1144.155USN-7506-1
linux-lts-xenialUbuntu
Fixed in:4.4.0-268.302~14.04.1USN-7506-4

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

0.18%probability of exploitation in 30 days
8thpercentile

Low risk: more likely to be exploited than 8% of all known CVEs.

References

Related Vulnerabilities

Other CWE-667 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2019-10072High7.573%-Fix
CVE-2002-1850High7.517%-Fix
CVE-2009-2699High7.514%-Fix
CVE-2004-0174High7.512%--
CVE-2009-4272High7.511%--
CVE-2020-24606High8.65.2%-Fix
Embed a live status badge for CVE-2021-47587
CVE-2021-47587 severity badge

Markdown

[![CVE-2021-47587](https://tridentstack.com/cve/badge/CVE-2021-47587.svg)](https://tridentstack.com/cve/CVE-2021-47587)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-47587"><img src="https://tridentstack.com/cve/badge/CVE-2021-47587.svg" alt="CVE-2021-47587"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.