UAF in emac_remove in Kernel

Kernel Updated 02 Oct 2025

Summary

03/08/2021
N/A
No i
Unrated
Not published

GSD-2021-1001409: net: qcom/emac: fix UAF in emac_remove. Affects Kernel versions >= 54e19bc74f3380d414681762ceed9f7245bc6a6e, < b1e091331920f8fbfc747dcbd16263fcd71abb2d. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Kernel is a critical component of the Linux operating system that provides core functionalities and interfaces between hardware and software. It manages system resources, facilitates communication between different software components, and ensures the overall stability and security of the system. The qcom/emac module within the Kernel is responsible for handling Ethernet controller operations on Qualcomm platforms. It allows devices to connect to networks and transfer data. However, a vulnerability has been identified in the emac_remove function of the qcom/emac module, which can lead to a use-after-free (UAF) condition.

Vulnerability Detail

The use-after-free vulnerability in the emac_remove function of the qcom/emac module can be exploited by an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition. This vulnerability occurs when the emac_remove function improperly handles the removal of a network device. By manipulating certain parameters, an attacker can trigger a situation where a network device is freed from memory but still accessible by other parts of the system. This can result in memory corruption, leading to unpredictable behavior, crashes, or the execution of malicious code.

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

If updating the Kernel is not immediately feasible, a possible workaround is to disable the qcom/emac module or remove the affected network device from the system. This can be achieved by blacklisting the module or physically disconnecting the device. However, it is important to note that these workarounds may impact the functionality of the network device or the system's overall network connectivity.

Conclusion

The UAF vulnerability in the emac_remove function of the qcom/emac module in the Linux Kernel can have severe security implications. It is crucial to update the Kernel to the latest version or apply the provided workaround to mitigate the risk. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability can potentially allow an attacker to execute arbitrary code or cause a denial-of-service condition on a system running the vulnerable Kernel version.

You can use tools like Vulert (https://vulert.com) to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in the software.

Yes, a patch for this vulnerability is available in the Linux Kernel version v4.14.241. It is recommended to update the Kernel to this version or later to mitigate the risk.

If updating the Kernel is not immediately feasible, you can consider disabling the qcom/emac module or removing the affected network device from the system as a temporary measure. However, these workarounds may impact network functionality.

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