Vulnerability in i2c: validate user data in compat ioctl
Summary
GSD-2022-1000042: i2c: validate user data in compat ioctl. Affects Kernel versions >= 7d5cb45655f2e9e37ef75d18f50c0072ef14a38b, < 8d31cbab4c295d7010ebb729e9d02d0e9cece18f. 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 i2c package is a part of the Linux Kernel ecosystem and is responsible for handling communication between integrated circuits on a computer motherboard. It provides a standardized interface for devices to exchange data over a serial bus. The vulnerability in question arises from a lack of validation of user data in the compat ioctl function.
Vulnerability Detail
The vulnerability allows an attacker to potentially exploit the i2c package by providing malicious data through the compat ioctl interface. This can lead to various security issues, such as privilege escalation, information disclosure, or denial of service. The vulnerability was introduced in version v4.15 of the Linux Kernel and has been fixed in version v5.10.90.
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 Linux Kernel is not immediately feasible, a possible workaround is to restrict access to the affected functionality. This can be achieved by disabling the use of the compat ioctl interface or implementing additional input validation checks to ensure the integrity of user data.
Conclusion
The vulnerability in the i2c package, which allows for potential exploitation through the compat ioctl interface, has been described. It is crucial to update the Linux Kernel to version v5.10.90 or later to mitigate this vulnerability. For further assistance or support in addressing this vulnerability, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can potentially be exploited by attackers to gain elevated privileges, access sensitive information, or disrupt the normal operation of the system.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and the Vulert service will analyze it for any known vulnerabilities.
At the time of this report, there is no known public exploit for this vulnerability. However, it is important to apply the recommended fixes as soon as possible to mitigate any potential risks.
In order to exploit this vulnerability, an attacker would need to have the ability to execute malicious code on the target system. This could be achieved through various means, such as gaining unauthorized access or tricking a user into running a malicious program.
The vulnerability was fixed in version v5.10.90 of the Linux Kernel. It is recommended to update to this version or later to ensure the vulnerability is patched.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.