Technical impact
The STMicroelectronics Sensor HAL fails to validate whether the requested number of sensor channels exceeds the allowed maximum. This oversight represents a CWE-1284 weakness, where input is not validated against limits. This omission can allow a driver or application to request more channels than supported, potentially leading to buffer overflows or other memory corruption that may cause the HAL to crash or behave unpredictably. The consequence of such an error would be loss of sensor functionality or, in worst cases, denial of service for applications relying on sensor data.
Affected Systems
This flaw affects the STMicroelectronics st-mems-android-linux-sensors-hal component. All releases prior to the commit identified as 7bdf334e2dcb942f1bc0695d18b97029bf5b2da5 contain the vulnerable code and are at risk on Android-based systems that utilize this HAL for sensor integration.
Risk and Exploitability
The CVSS score of 4.2 rates the vulnerability as low severity. The EPSS score is not available, indicating limited data on exploitation rates. This vulnerability is not listed in CISA’s KEV catalog. The flaw involves internal driver limits and does not expose a network interface; therefore the likely attack vector is local, inferred from the fact that the HAL operates within the device's sensor subsystem. An attacker with local code execution could manipulate channel requests to trigger buffer overflows or other memory corruption, which may cause a driver crash or denial of service for sensor‑dependent applications. This impact would compromise the availability of sensor services but not necessarily confidentiality or integrity beyond the affected process.