net:emac/emac-mac: Fix a use after free in emac_mac_tx_buf_send
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 9 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-416 and the CVSS impact.
Summary
In the Linux kernel, the following vulnerability has been resolved: net:emac/emac-mac: Fix a use after free in emac_mac_tx_buf_send In emac_mac_tx_buf_send, it calls emac_tx_fill_tpd(..,skb,..). If some error happens in emac_tx_fill_tpd(), the skb will be freed via dev_kfree_skb(skb) in error branch of emac_tx_fill_tpd(). But the freed skb is still used via skb->len by netdev_sent_queue(,skb->len). As i observed that emac_tx_fill_tpd() haven't modified the value of skb->len, thus my patch assigns skb->len to 'len' before the possible free and use 'len' instead of skb->len later.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 4.9 and later | 4.9.269, 4.14.233, 4.19.191, 5.4.119, 5.10.37, 5.11.21, 5.12.4, 5.13 | Patch available | CNA |
- Linux VendorLinux Affected 4.9 and later Fixed in 4.9.269, 4.14.233, 4.19.191, 5.4.119, 5.10.37, 5.11.21, 5.12.4, 5.13 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.9 to before 4.9.269; 4.10 to before 4.14.233; 4.15 to before 4.19.191; 4.20 to before 5.4.119; 5.5 to before 5.10.37; 5.11 to before 5.11.21; 5.12 to before 5.12.4 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 4.9 to before 4.9.269; 4.10 to before 4.14.233; 4.15 to before 4.19.191; 4.20 to before 5.4.119; 5.5 to before 5.10.37; 5.11 to before 5.11.21; 5.12 to before 5.12.4 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 4.9.269, 4.14.233, 4.19.191, 5.4.119, 5.10.37, 5.11.21, 5.12.4, 5.13
Red Hat 4 advisories
- RHSA-2024:3810 Released 2024-06-11 · Red Hat rating Moderatekernel security and bug fix update
- Red Hat CodeReady Linux Builder EUS (v.8.8) kernel-tools-libs-devel-4.18.0-477.58.1.el8_8
- Red Hat Enterprise Linux BaseOS EUS (v.8.8) bpftool-4.18.0-477.58.1.el8_8, kernel-4.18.0-477.58.1.el8_8, kernel-abi-stablelists-4.18.0-477.58.1.el8_8 +19
- RHSA-2024:3627 Released 2024-06-05 · Red Hat rating Moderatekernel-rt security and bug fix update
- Red Hat Enterprise Linux NFV (v. 8) kernel-rt-4.18.0-553.5.1.rt7.346.el8_10, kernel-rt-core-4.18.0-553.5.1.rt7.346.el8_10, kernel-rt-debug-4.18.0-553.5.1.rt7.346.el8_10 +9
- Red Hat Enterprise Linux RT (v. 8) kernel-rt-4.18.0-553.5.1.rt7.346.el8_10, kernel-rt-core-4.18.0-553.5.1.rt7.346.el8_10, kernel-rt-debug-4.18.0-553.5.1.rt7.346.el8_10 +7
- RHSA-2024:3618 Released 2024-06-05 · Red Hat rating Moderatekernel update
- Red Hat Enterprise Linux BaseOS (v. 8) bpftool-4.18.0-553.5.1.el8_10, kernel-4.18.0-553.5.1.el8_10, kernel-abi-stablelists-4.18.0-553.5.1.el8_10 +19
- Red Hat Enterprise Linux CRB (v. 8) kernel-tools-libs-devel-4.18.0-553.5.1.el8_10
Show 1 more Red Hat advisories
- RHSA-2024:3462 Released 2024-05-29 · Red Hat rating Moderatekernel security and bug fix update
- Red Hat CodeReady Linux Builder EUS (v.8.6) kernel-tools-libs-devel-4.18.0-372.105.1.el8_6
- Red Hat Enterprise Linux BaseOS EUS (v.8.6) bpftool-4.18.0-372.105.1.el8_6, kernel-4.18.0-372.105.1.el8_6, kernel-abi-stablelists-4.18.0-372.105.1.el8_6 +19
- Red Hat Virtualization 4 Hypervisor for RHEL 8 kernel-devel-4.18.0-372.105.1.el8_6, perf-4.18.0-372.105.1.el8_6
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat CodeReady Linux Builder EUS (v.8.6) | Fixed | RHSA-2024:3462 |
| Red Hat CodeReady Linux Builder EUS (v.8.8) | Fixed | RHSA-2024:3810 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2024:3618 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.6) | Fixed | RHSA-2024:3462 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.8) | Fixed | RHSA-2024:3810 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2024:3618 |
| Red Hat Enterprise Linux NFV (v. 8) | Fixed | RHSA-2024:3627 |
| Red Hat Enterprise Linux RT (v. 8) | Fixed | RHSA-2024:3627 |
| Red Hat Virtualization 4 Hypervisor for RHEL 8 | Fixed | RHSA-2024:3462 |
Not affected: 1 product
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2021-47013
- 2026-10-03 Alias added: GHSA-3ch6-f277-559q
References
Patch 8
- https://git.kernel.org/stable/c/c7f75d11fe72913d2619f97b2334b083cd7bb955
- https://git.kernel.org/stable/c/dc1b438a35773d030be0ee80d9c635c3e558a322
- https://git.kernel.org/stable/c/16d8c44be52e3650917736d45f5904384a9da834
- https://git.kernel.org/stable/c/55fcdd1258faaecca74b91b88cc0921f9edd775d
- https://git.kernel.org/stable/c/9dc373f74097edd0e35f3393d6248eda8d1ba99d
- https://git.kernel.org/stable/c/8c06f34785068b87e2b560534c77c163d6c6dca7
- https://git.kernel.org/stable/c/e407495ba6788a67d1bd41714158c079e340879b
- https://git.kernel.org/stable/c/6d72e7c767acbbdd44ebc7d89c6690b405b32b57
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2021-47013 · CVE Program
- CVE-2021-47013 · NVD
- FIRST EPSS
- GHSA-3ch6-f277-559q · GitHub Advisory Database · CC BY 4.0
- CVE-2021-47013 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences