iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 121354b2eceb2669ebdffa76b105ad6c03413966 · < 57d05dbbcd0b3dc0c252103b43012eef5d6430d1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC
Recently, we encounter kernel crash in function rm3100_common_probe caused by out of bound access of array rm3100_samp_rates (because of underlying hardware failures). Add boundary check to prevent out of bound access.
From the CVE record · Linux
The Linux kernel’s RM3100 magnetometer driver can read outside the rm3100_samp_rates array when an underlying hardware failure causes an out-of-range value to be read from RM3100_REG_TMRC. This can crash the kernel. The input does not describe an attacker-controlled trigger, authentication requirements, or user interaction.
Engineers running Linux kernels with the RM3100 magnetometer driver should check their exposure; affected versions are not specified.