CVE-2023-53834
Description
In the Linux kernel, the following vulnerability has been resolved:iio: adc: ina2xx: avoid null pointer dereference on OF device matchThe affected lines were resulting in a null pointer dereference on ourplatform because the device tree contained the following list ofcompatible strings: power-sensor@40 { compatible = ti,ina232, ti,ina231; ... };Since the driver doesnt declare a compatible string ti,ina232, the OFmatching succeeds on ti,ina231. But the I2C device ID info ispopulated via the first compatible string, cf. modalias population inof_i2c_get_board_info(). Since there is no ina232 entry in the legacyI2C device ID table either, the struct i2c_device_id *id pointer in theprobe function is null.Fix this by using the already populated type variable instead, whichpoints to the proper driver data. Since the name is also wanted, add ageneric one to the ina2xx_config table.
Risk Information
Associated Vulnerability
No records foundPatch Details
No records foundReferences
https://nvd.nist.gov/vuln/detail/CVE-2023-1234
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-1234