---
title: "CVE-2021-47013"
canonical_url: "https://pkgseek.com/security/CVE-2021-47013"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2021-47013

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-&gt;len by netdev_sent_queue(,skb-&gt;len). As i observed that emac_tx_fill_tpd() haven't modified the value of skb-&gt;len, thus my patch assigns skb-&gt;len to 'len' before the possible free and use 'len' instead of skb-&gt;len later.

CVE-2021-47013 is rated MEDIUM, with 99 indexed affected package builds across 2 distributions.

- **Severity / Score**: MEDIUM
- **Affected builds**: 99
- **Affected distros**: 2
- **Distros with fixed_in**: Oracle Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Oracle Linux | 8 | bpftool | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | kernel | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | kernel-abi-stablelists | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | kernel-core | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | kernel-cross-headers | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | kernel-debug | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | kernel-debug-core | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | kernel-debug-devel | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | kernel-debug-modules | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | kernel-debug-modules-extra | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | kernel-devel | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | kernel-doc | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | kernel-headers | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | kernel-modules | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | kernel-modules-extra | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | kernel-tools | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | kernel-tools-libs | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | perf | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Oracle Linux | 8 | python3-perf | 4.18.0-553.el8_10 | 4.18.0-553.5.1.el8_10 |
| Ubuntu | focal | linux-aws-headers-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-aws-tools-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-azure-cloud-tools-5.4.0-1010 | 5.4.0-1010.10 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-azure-headers-5.4.0-1010 | 5.4.0-1010.10 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-azure-tools-5.4.0-1010 | 5.4.0-1010.10 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-buildinfo-5.4.0-1009-aws | 5.4.0-1009.9 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-buildinfo-5.4.0-1009-gcp | 5.4.0-1009.9 | 5.4.0-1046.49 |
| Ubuntu | focal | linux-buildinfo-5.4.0-1009-kvm | 5.4.0-1009.9 | 5.4.0-1041.42 |
| Ubuntu | focal | linux-buildinfo-5.4.0-1009-oracle | 5.4.0-1009.9 | 5.4.0-1048.52 |
| Ubuntu | focal | linux-buildinfo-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-buildinfo-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-buildinfo-5.4.0-26-lowlatency | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-buildinfo-5.6.0-1007-oem | 5.6.0-1007.7 | — |
| Ubuntu | focal | linux-cloud-tools-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-cloud-tools-5.4.0-26 | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-cloud-tools-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-cloud-tools-5.4.0-26-lowlatency | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-cloud-tools-common | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-doc | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-gcp-headers-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1046.49 |
| Ubuntu | focal | linux-gcp-tools-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1046.49 |
| Ubuntu | focal | linux-headers-5.4.0-1009-aws | 5.4.0-1009.9 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-headers-5.4.0-1009-gcp | 5.4.0-1009.9 | 5.4.0-1046.49 |
| Ubuntu | focal | linux-headers-5.4.0-1009-kvm | 5.4.0-1009.9 | 5.4.0-1041.42 |
| Ubuntu | focal | linux-headers-5.4.0-1009-oracle | 5.4.0-1009.9 | 5.4.0-1048.52 |
| Ubuntu | focal | linux-headers-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-headers-5.4.0-26 | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-headers-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-headers-5.4.0-26-lowlatency | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-headers-5.6.0-1007-oem | 5.6.0-1007.7 | — |
| Ubuntu | focal | linux-image-5.4.0-1009-aws | 5.4.0-1009.9 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-image-5.4.0-1009-kvm | 5.4.0-1009.9 | 5.4.0-1041.42 |
| Ubuntu | focal | linux-image-unsigned-5.4.0-1009-gcp | 5.4.0-1009.9 | 5.4.0-1046.49 |
| Ubuntu | focal | linux-image-unsigned-5.4.0-1009-oracle | 5.4.0-1009.9 | 5.4.0-1048.52 |
| Ubuntu | focal | linux-image-unsigned-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-image-unsigned-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-image-unsigned-5.4.0-26-lowlatency | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-image-unsigned-5.6.0-1007-oem | 5.6.0-1007.7 | — |
| Ubuntu | focal | linux-kvm-headers-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1041.42 |
| Ubuntu | focal | linux-kvm-tools-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1041.42 |
| Ubuntu | focal | linux-libc-dev | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-modules-5.4.0-1009-aws | 5.4.0-1009.9 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-modules-5.4.0-1009-gcp | 5.4.0-1009.9 | 5.4.0-1046.49 |
| Ubuntu | focal | linux-modules-5.4.0-1009-kvm | 5.4.0-1009.9 | 5.4.0-1041.42 |
| Ubuntu | focal | linux-modules-5.4.0-1009-oracle | 5.4.0-1009.9 | 5.4.0-1048.52 |
| Ubuntu | focal | linux-modules-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-modules-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-modules-5.4.0-26-lowlatency | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-modules-5.6.0-1007-oem | 5.6.0-1007.7 | — |
| Ubuntu | focal | linux-modules-extra-5.4.0-1009-aws | 5.4.0-1009.9 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-modules-extra-5.4.0-1009-gcp | 5.4.0-1009.9 | 5.4.0-1046.49 |
| Ubuntu | focal | linux-modules-extra-5.4.0-1009-oracle | 5.4.0-1009.9 | 5.4.0-1048.52 |
| Ubuntu | focal | linux-modules-extra-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-modules-extra-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-oem-5.6-headers-5.6.0-1007 | 5.6.0-1007.7 | — |
| Ubuntu | focal | linux-oem-5.6-tools-5.6.0-1007 | 5.6.0-1007.7 | — |
| Ubuntu | focal | linux-oem-5.6-tools-common | 5.6.0-1007.7 | — |
| Ubuntu | focal | linux-oem-5.6-tools-host | 5.6.0-1007.7 | — |
| Ubuntu | focal | linux-oracle-headers-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1048.52 |
| Ubuntu | focal | linux-oracle-tools-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1048.52 |
| Ubuntu | focal | linux-source-5.4.0 | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-tools-5.4.0-1009-aws | 5.4.0-1009.9 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-tools-5.4.0-1009-gcp | 5.4.0-1009.9 | 5.4.0-1046.49 |
| Ubuntu | focal | linux-tools-5.4.0-1009-kvm | 5.4.0-1009.9 | 5.4.0-1041.42 |
| Ubuntu | focal | linux-tools-5.4.0-1009-oracle | 5.4.0-1009.9 | 5.4.0-1048.52 |
| Ubuntu | focal | linux-tools-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1051.53 |
| Ubuntu | focal | linux-tools-5.4.0-26 | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-tools-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-tools-5.4.0-26-lowlatency | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-tools-5.6.0-1007-oem | 5.6.0-1007.7 | — |
| Ubuntu | focal | linux-tools-common | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | focal | linux-tools-host | 5.4.0-26.30 | 5.4.0-77.86 |
| Ubuntu | jammy | linux-buildinfo-5.17.0-1003-oem | 5.17.0-1003.3 | — |
| Ubuntu | jammy | linux-headers-5.17.0-1003-oem | 5.17.0-1003.3 | — |
| Ubuntu | jammy | linux-image-unsigned-5.17.0-1003-oem | 5.17.0-1003.3 | — |
| Ubuntu | jammy | linux-modules-5.17.0-1003-oem | 5.17.0-1003.3 | — |
| Ubuntu | jammy | linux-oem-5.17-headers-5.17.0-1003 | 5.17.0-1003.3 | — |
| Ubuntu | jammy | linux-oem-5.17-tools-5.17.0-1003 | 5.17.0-1003.3 | — |
| Ubuntu | jammy | linux-oem-5.17-tools-host | 5.17.0-1003.3 | — |
| Ubuntu | jammy | linux-tools-5.17.0-1003-oem | 5.17.0-1003.3 | — |
