Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

AI Predicted 6.8 Difficulty: Hard EPSS 0.26% · P17

Affected Version Matrix 18

VendorProductVersion RangeStatus
LinuxLinuxb9b17debc69d27cd55e21ee51a5ba7fc50a426cf< c7f75d11fe72913d2619f97b2334b083cd7bb955affected
b9b17debc69d27cd55e21ee51a5ba7fc50a426cf< dc1b438a35773d030be0ee80d9c635c3e558a322affected
b9b17debc69d27cd55e21ee51a5ba7fc50a426cf< 16d8c44be52e3650917736d45f5904384a9da834affected
b9b17debc69d27cd55e21ee51a5ba7fc50a426cf< 55fcdd1258faaecca74b91b88cc0921f9edd775daffected
b9b17debc69d27cd55e21ee51a5ba7fc50a426cf< 9dc373f74097edd0e35f3393d6248eda8d1ba99daffected
b9b17debc69d27cd55e21ee51a5ba7fc50a426cf< 8c06f34785068b87e2b560534c77c163d6c6dca7affected
b9b17debc69d27cd55e21ee51a5ba7fc50a426cf< e407495ba6788a67d1bd41714158c079e340879baffected
b9b17debc69d27cd55e21ee51a5ba7fc50a426cf< 6d72e7c767acbbdd44ebc7d89c6690b405b32b57affected
… +10 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2021-47013

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
net:emac/emac-mac: Fix a use after free in emac_mac_tx_buf_send
Source: NVD (National Vulnerability Database)
Vulnerability Description
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.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在安全漏洞,该漏洞源于 emac_mac_tx_buf_send 中存在释放后的重用。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux b9b17debc69d27cd55e21ee51a5ba7fc50a426cf ~ c7f75d11fe72913d2619f97b2334b083cd7bb955 -
LinuxLinux 4.9 -

II. Public POCs for CVE-2021-47013

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2021-47013

登录查看更多情报信息。

Other References for CVE-2021-47013 (7)

Same Patch Batch · Linux · 2024-02-28 · 86 CVEs total

CVE-2021-46995can: mcp251xfd: mcp251xfd_probe(): fix an error pointer dereference in probe
CVE-2021-46998ethernet:enic: Fix a use after free bug in enic_hard_start_xmit
CVE-2021-46999sctp: do asoc update earlier in sctp_sf_do_dupcook_a
CVE-2021-47001xprtrdma: Fix cwnd update ordering
CVE-2021-47004f2fs: fix to avoid touching checkpointed data in get_victim()
CVE-2021-47003dmaengine: idxd: Fix potential null dereference on pointer status
CVE-2021-47005PCI: endpoint: Fix NULL pointer dereference for ->get_features()
CVE-2021-47007f2fs: fix panic during f2fs_resize_fs()
CVE-2021-47006ARM: 9064/1: hw_breakpoint: Do not directly check the event's overflow_handler hook
CVE-2021-47002SUNRPC: Fix null pointer dereference in svc_rqst_free()
CVE-2021-46997arm64: entry: always set GIC_PRIO_PSR_I_SET during entry
CVE-2021-46996netfilter: nftables: Fix a memleak from userdata error path in new objects
CVE-2021-46994can: mcp251x: fix resume from sleep before interface was brought up
CVE-2021-46992netfilter: nftables: avoid overflows in nft_hash_buckets()
CVE-2021-46993sched: Fix out-of-bound access in uclamp
CVE-2021-46990powerpc/64s: Fix crashes when toggling entry flush barrier
CVE-2021-46991i40e: Fix use-after-free in i40e_client_subtask()
CVE-2021-46989hfsplus: prevent corruption in shrinking truncate
CVE-2021-46987btrfs: fix deadlock when cloning inline extents and using qgroups
CVE-2021-46988userfaultfd: release page in error path to avoid BUG_ON

Showing top 20 of 86 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2021-47013

No comments yet


Leave a comment