CVE-2021-47013
HIGHLinux Kernel 4.9-4.9.269 - Use-After-Free in emac_mac_tx_buf_send
Title source: llmDescription
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.
References (8)
Core 8
Core References
Scores
CVSS v3
7.8
EPSS
0.0026
EPSS Percentile
17.2%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-416
Status
published
Products (19)
Linux/Linux
< 4.9
Linux/Linux
4.14.233 - 4.14.*
Linux/Linux
4.19.191 - 4.19.*
Linux/Linux
4.9
Linux/Linux
4.9.269 - 4.9.*
Linux/Linux
5.10.37 - 5.10.*
Linux/Linux
5.11.21 - 5.11.*
Linux/Linux
5.12.4 - 5.12.*
Linux/Linux
5.13
Linux/Linux
5.4.119 - 5.4.*
... and 9 more
Published
Feb 28, 2024
Tracked Since
Feb 18, 2026