Vulnerability in Kernel: net: dsa: lantiq_gswip: fix use after free in gswip_remove()

Kernel Updated 02 Oct 2025

Summary

27/02/2022
N/A
No i
Unrated
Not published

GSD-2022-1000399: net: dsa: lantiq_gswip: fix use after free in gswip_remove(). Affects Kernel versions >= e177d2e85ebcd3008c4b2abc293f4118e04eedef, < f48bd34137718042872d06f2c7332b3267a29165. 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 Kernel is a critical component of the Linux operating system that provides core functionality and acts as an interface 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 net subsystem within the Kernel handles networking-related operations, including network device drivers and protocols. One of the network device drivers is lantiq_gswip, which is responsible for managing Ethernet switches on Lantiq SoCs. However, a vulnerability has been discovered in the gswip_remove() function of the lantiq_gswip driver, leading to a use-after-free issue.

Vulnerability Detail

The use-after-free vulnerability in the gswip_remove() function of the lantiq_gswip driver can be exploited by an attacker to execute arbitrary code or cause a denial-of-service condition. This vulnerability occurs when the driver attempts to access memory that has already been freed, potentially leading to memory corruption and unpredictable behavior. An attacker with local access to the system or the ability to load a malicious kernel module could exploit this vulnerability to gain elevated privileges or crash the system. The vulnerability was introduced in Linux Kernel version v5.10.101 and has been fixed in version v5.10.102.

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

There is no known workaround for this vulnerability. It is essential to update the Kernel to the fixed version as soon as possible to mitigate the risk.

Conclusion

The use-after-free vulnerability in the gswip_remove() function of the lantiq_gswip driver poses a significant security risk to systems running the affected version of the Linux Kernel. To mitigate this risk, it is crucial to update the Kernel to version v5.10.102 or later. Failure to do so may allow attackers to execute arbitrary code or cause system crashes. 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 allow an attacker to execute arbitrary code or cause a denial-of-service condition. It may lead to system crashes, data corruption, or unauthorized access to sensitive information.

Any system running the affected version of the Linux Kernel (v5.10.101) with the lantiq_gswip driver enabled is potentially vulnerable. It is recommended for all users of the affected Kernel version to update to the fixed version (v5.10.102) to eliminate the risk.

No, this vulnerability requires local access to the system or the ability to load a malicious kernel module. It cannot be exploited remotely over a network.

There are no known instances of this vulnerability being exploited in the wild at the time of this report. However, it is crucial to apply the necessary updates to prevent potential exploitation.

For more details about this vulnerability, including the specific code changes that fix it, you can refer to the source link provided in the database_specific section of this report.

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