Use After Free Vulnerability in emac_mac_tx_buf_send
Summary
GSD-2021-1000452: net:emac/emac-mac: Fix a use after free in emac_mac_tx_buf_send. Affects Kernel versions >= b9b17debc69d27cd55e21ee51a5ba7fc50a426cf, < 16d8c44be52e3650917736d45f5904384a9da834. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The emac/emac-mac package is a component of the Linux Kernel, specifically the Ethernet Media Access Controller (EMAC) driver. It provides support for the MAC layer of Ethernet communication. The vulnerability affects versions of the Linux Kernel starting from v4.9 and was fixed in v4.19.191. The vulnerability allows an attacker to exploit a use after free issue in the emac_mac_tx_buf_send function, potentially leading to arbitrary code execution or a denial of service attack.
Vulnerability Detail
The use after free vulnerability in emac_mac_tx_buf_send arises due to improper handling of a network buffer during transmission. When a network buffer is freed and subsequently reused, the function fails to properly validate the buffer's state, leading to a use after free condition. An attacker can exploit this vulnerability by sending specially crafted network packets, causing the function to access freed memory. This can result in various consequences, including arbitrary code execution or a system crash.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
No specific workaround has been provided for this vulnerability.
Conclusion
The use after free vulnerability in emac_mac_tx_buf_send can have severe consequences, including arbitrary code execution or a denial of service attack. It is crucial to update the Linux Kernel to the latest version to mitigate this vulnerability. For further assistance or support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can potentially allow an attacker to execute arbitrary code or cause a denial of service attack.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and the tool will analyze it for any known vulnerabilities.
At the time of this report, there is no known public exploit for this vulnerability.
The recommended mitigation is to update the Linux Kernel to the latest version that includes the fix for this vulnerability.
Yes, this vulnerability can be exploited remotely by sending specially crafted network packets.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.