Use After Free Vulnerability in emac_mac_tx_buf_send

Kernel Updated 02 Oct 2025

Summary

31/05/2021
N/A
No i
Unrated
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback