CVE-2021-47013: net:emac/emac-mac: Fix a use after free in emac_mac_tx_buf_send

Published Feb 28, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net:emac/emac-mac: Fix a use after free in emacmactxbufsend

In emacmactxbufsend, it calls emactxfilltpd(..,skb,..). If some error happens in emactxfilltpd(), the skb will be freed via devkfreeskb(skb) in error branch of emactxfilltpd(). But the freed skb is still used via skb->len by netdevsentqueue(,skb->len).

As i observed that emactxfilltpd() 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.

Other sources

In the Linux kernel, the following vulnerability has been resolved:

net:emac/emac-mac: Fix a use after free in emacmactxbufsend

The Linux kernel CVE team has assigned CVE-2021-47013 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024022831-CVE-2021-47013-034a@gregkh/T/#u

Red Hat

Linux Kernel could allow a local authenticated attacker to obtain sensitive information, caused by a use-after-free flaw in the emacmactxbufsend function. By sending a specially crafted request, an attacker could exploit this vulnerability to obtain sensitive information or cause a denial of service condition.

IBM

Affected Software

19 affected componentsFixes available
redhat/kernel<4.9.269
4.9.269
redhat/kernel<4.14.233
4.14.233
redhat/kernel<4.19.191
4.19.191
redhat/kernel<5.4.119
5.4.119
redhat/kernel<5.10.37
5.10.37
redhat/kernel<5.11.21
5.11.21
redhat/kernel<5.12.4
5.12.4
redhat/kernel<5.13
5.13
Linux Linux kernel>=4.9<4.9.269
Linux Linux kernel>=4.10<4.14.233
Linux Linux kernel>=4.15<4.19.191
Linux Linux kernel>=4.20<5.4.119
Linux Linux kernel>=5.5<5.10.37
Linux Linux kernel>=5.11<5.11.21
Linux Linux kernel>=5.12<5.12.4
IBM Security Verify Governance<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Software Stack<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Virtual Appliance<=ISVG 10.0.2
IBM Security Verify Governance Identity Manager Container<=ISVG 10.0.2

Event History

Feb 28, 2024
CVE Published
via MITRE·08:13 AM
Data Sourced
via MITRE·08:13 AM
Description
Feb 29, 2024
Data Sourced
via Red Hat·07:25 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-47013?

CVE-2021-47013 is classified as a medium severity vulnerability affecting the Linux kernel.

2

How do I fix CVE-2021-47013?

To resolve CVE-2021-47013, upgrade to kernel version 4.9.269, 4.14.233, 4.19.191, 5.4.119, 5.10.37, 5.11.21, 5.12.4 or 5.13.

3

Which systems are affected by CVE-2021-47013?

CVE-2021-47013 affects various versions of the Linux kernel prior to specified fixed versions.

4

Is CVE-2021-47013 a remote code execution vulnerability?

CVE-2021-47013 is related to a use-after-free vulnerability that could potentially lead to system instability.

5

What components does CVE-2021-47013 involve?

CVE-2021-47013 involves components of the Linux kernel's network protocol stack, specifically the emac driver.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203