extcon: Fix extcon_get_extcon_dev() error handling in Kernel
Summary
GSD-2022-1002893: extcon: Fix extcon_get_extcon_dev() error handling. Affects Kernel versions < c33ca06578c147b63adaa1934cc8efedb9553a8e. 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 Kernel is a crucial component of the Linux operating system that acts as a bridge between the hardware and software layers. It provides essential functionalities and services to enable the proper functioning of the system. The extcon subsystem within the Kernel handles external connector events and manages the state of external connectors, such as USB ports and audio jacks. It allows the system to detect and respond to changes in the connection status of these external devices.
Vulnerability Detail
The extcon_get_extcon_dev() function in the Kernel's extcon subsystem has a flaw in its error handling mechanism. This vulnerability could potentially lead to a use-after-free scenario, where a reference to a deallocated memory object is mistakenly used. An attacker could exploit this vulnerability to execute arbitrary code or cause a denial-of-service condition, depending on the context in which the function is called. The impact and attack plausibility of this vulnerability have not been proven yet.
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 extcon_get_extcon_dev() error handling vulnerability in the Kernel's extcon subsystem has been identified and addressed in the Linux Kernel version v5.17.15. Users are advised to update their Kernel to this version or a later one to mitigate the risk associated with this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The extcon subsystem in the Kernel manages the state of external connectors, such as USB ports and audio jacks, and handles events related to their connection status.
The extcon_get_extcon_dev() function is used to retrieve the extcon device associated with a given device node.
A use-after-free vulnerability occurs when a program continues to use a memory object after it has been deallocated. This can lead to unpredictable behavior and potential security issues.
If successfully exploited, this vulnerability could allow an attacker to execute arbitrary code or cause a denial-of-service condition on the affected system.
To protect your system, make sure to update your Kernel to version v5.17.15 or a later release that includes the fix for this vulnerability.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.