Use After Free Vulnerability in net: dsa: lantiq_gswip
Summary
GSD-2022-1000464: net: dsa: lantiq_gswip: fix use after free in gswip_remove(). Affects Kernel versions >= b5652bc50dde7b84e93dfb25479b64b817e377c1, < df2495f329b08ac0d0d3e6334a01955ae839005e. 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 net: dsa: lantiq_gswip package is a component of the Linux Kernel. It is responsible for managing the Data Switching Architecture (DSA) for Lantiq GSWIP devices. This package provides functionality for configuring and controlling network switches. The vulnerability in this package allows for a use after free scenario, where a pointer to a freed memory location is still accessed, leading to potential security issues.
Vulnerability Detail
The use after free vulnerability in net: dsa: lantiq_gswip occurs in the gswip_remove() function. This function is responsible for removing a Lantiq GSWIP device from the system. However, due to improper memory management, a pointer to the device structure is not properly invalidated after it is freed. This can lead to a situation where the freed memory is still accessed, potentially allowing an attacker to execute arbitrary code or cause a denial of service. The vulnerability was introduced in version v5.15.24 of the Linux Kernel and has been fixed in version v5.15.25.
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 recommended to apply the fix as soon as possible.
Conclusion
The use after free vulnerability in net: dsa: lantiq_gswip can pose a significant security risk to systems running the affected Linux Kernel versions. It is crucial to update to version v5.15.25 or later to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
Net: dsa: lantiq_gswip is a component of the Linux Kernel that manages the Data Switching Architecture (DSA) for Lantiq GSWIP devices. It provides functionality for configuring and controlling network switches.
A use after free vulnerability occurs when a program continues to use a pointer to a memory location that has already been freed. This can lead to security issues, as the freed memory may be modified by an attacker or reused for other purposes.
The use after free vulnerability in net: dsa: lantiq_gswip can potentially allow an attacker to execute arbitrary code or cause a denial of service. The exact impact depends on the specific use case and system configuration.
This vulnerability was fixed in version v5.15.25 of the Linux Kernel. The fix involved proper invalidation of the pointer to the freed device structure in the gswip_remove() function.
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 playground will analyze it for any known vulnerabilities.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.