Linux · Linux Kernel · CVE-2022-49285
**Name of the Vulnerable Software and Affected Versions**
Linux kernel (affected versions not specified)
**Description**
A vulnerability in the Linux kernel has been resolved. The issue was related to incorrect logic in the `mma8452` driver, which could lead to a kernel dump when trying to show available scales in userspace. The problem occurred because the original logic used to get `mma8452 data` was wrong, and the use of `to i2c client()` was incorrect. This caused a NULL pointer dereference when handling the device. The correct logic uses `dev to iio dev()` to get the `iio dev` structure.
**Recommendations**
At the moment, there is no information about a newer version that contains a fix for this vulnerability.