CVE-2021-47224
published high CVSS 3.1 · 7.8net: ll_temac: Make sure to free skb when it is completely used
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux92744989533cbe85e8057935d230e128810168ce to < 6d120ab4dc39a543c6b63361e1d0541c382900a3 · 92744989533cbe85e8057935d230e128810168ce to < 019ab7d044d0ebf97e1236bb8935b7809be92358 · 92744989533cbe85e8057935d230e128810168ce to < e8afe05bd359ebe12a61dbdc94c06c00ea3e8d4b · 92744989533cbe85e8057935d230e128810168ce to < 6aa32217a9a446275440ee8724b1ecaf1838df47 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.31 (affected) · 0 to < 2.6.31 (unaffected · semver) · 5.4.128 through 5.4.* (unaffected · semver) · 5.10.46 through 5.10.* (unaffected · semver) · 5.12.13 through 5.12.* (unaffected · semver) · 5.13 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: net: ll_temac: Make sure to free skb when it is completely used With the skb pointer piggy-backed on the TX BD, we have a simple and efficient way to free the skb buffer when the frame has been transmitted. But in order to avoid freeing the skb while there are still fragments from the skb in use, we need to piggy-back on the TX BD of the skb, not the first. Without this, we are doing use-after-free on the DMA side, when the first BD of a multi TX BD packet is seen as completed in xmit_done, and the remaining BDs are still being processed.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is in the ll_temac TX path (temac_start_xmit → TX IRQ → temac_start_xmit_done), reached when a local process transmits multi-fragment skbs on a Xilinx LL TEMAC interface with NETIF_F_SG; it is not triggered by parsing remotely injected RX frames. AC:L - Any multi-fragment transmit (nr_frags > 0) deterministically stores the skb on the first BD and frees it in xmit_done before remaining fragment BDs are unmapped, so an attacker who sends large/SG traffic reliably hits the DMA use-after-free with no uncontrollable race. PR:L - An unprivileged local user can open sockets and send traffic out an already-up TEMAC interface without CAP_NET_ADMIN or init-namespace root, matching other NIC TX-path UAF scores. UI:N - Exploitation requires only attacker-generated transmit traffic; no separate victim action such as mounting a filesystem or opening a crafted file is needed. S:U - Impact stays within the host kernel's networking/DMA authority (premature skb free and DMA-after-free of TX fragments) and does not cross a VM, IOMMU isolation, or other security boundary. C:H - Freeing the skb while fragment pages remain DMA-mapped lets the engine read recycled page contents and can disclose them on the wire; per UAF guidance this is High confidentiality impact. I:H - Premature free/unmap of an in-flight multi-BD skb is a reclaimable DMA/heap use-after-free under attacker-driven TX; per UAF guidance this class enables heap corruption and control-flow hijack primitives. A:H - DMA-after-free of still-mapped TX fragments can IOMMU-fault or oops the kernel, and any use-after-free scores Availability High even when not fully turned into code execution.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.2 | medium | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 92744989533cbe85e8057935d230e128810168ce to < 6d120ab4dc39a543c6b63361e1d0541c382900a3 (affected · git)92744989533cbe85e8057935d230e128810168ce to < 019ab7d044d0ebf97e1236bb8935b7809be92358 (affected · git)92744989533cbe85e8057935d230e128810168ce to < e8afe05bd359ebe12a61dbdc94c06c00ea3e8d4b (affected · git)92744989533cbe85e8057935d230e128810168ce to < 6aa32217a9a446275440ee8724b1ecaf1838df47 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.31 (affected)0 to < 2.6.31 (unaffected · semver)5.4.128 through 5.4.* (unaffected · semver)5.10.46 through 5.10.* (unaffected · semver)5.12.13 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-noinfo Not enough information
References
4Provider assertions
3Linux · cna
net: ll_temac: Make sure to free skb when it is completely used
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- fc95b5f9e11e039d5c6ab7939461b40017ee10b6a2fb0c5c05a849f58bebde3e
- Ingested
- 23 Sep 2026, 07:57:04 UTC
- Source record
- Official CVE record