extcon: Modify extcon device to be created after driver data is set
Summary
GSD-2022-1002892: extcon: Modify extcon device to be created after driver data is set. Affects Kernel versions < 35ff1ac55d301efb3f467cf5426faaeb3452994b. 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 extcon package is a component of the Linux Kernel that handles the management of external connectors. It provides a framework for detecting and handling events related to external connections, such as USB cables or headphone jacks. The extcon device represents a physical connector and is associated with a driver that handles the events and actions related to that connector. This vulnerability in the extcon package allows the extcon device to be created before the driver data is set, potentially leading to incorrect behavior or crashes.
Vulnerability Detail
The vulnerability arises from the incorrect order of operations in the extcon package. When an extcon device is created, it should have its driver data set before any events or actions are handled. However, due to a flaw in the code, the extcon device is created before the driver data is fully initialized. This can result in the driver not having access to the necessary data, leading to unexpected behavior or crashes. An attacker may be able to exploit this vulnerability to cause a denial-of-service or potentially execute arbitrary 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
There is no known workaround for this vulnerability. It is recommended to update to the fixed version of the Linux Kernel.
Conclusion
The extcon package in the Linux Kernel is vulnerable to a flaw that allows the extcon device to be created before the driver data is set. This can result in unexpected behavior or crashes. It is recommended to update to the latest version of the Linux Kernel to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The extcon package is a component of the Linux Kernel that handles the management of external connectors.
An extcon device represents a physical connector and is associated with a driver that handles the events and actions related to that connector.
This vulnerability can result in incorrect behavior or crashes in the extcon package, potentially leading to a denial-of-service or arbitrary code execution.
To fix this vulnerability, update to the latest version of the Linux Kernel where the issue has been addressed.
There is no known workaround for this vulnerability. It is recommended to update to the fixed version of the Linux Kernel.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.