CVE-2023-53834
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-12-09

Last updated on: 2025-12-09

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: iio: adc: ina2xx: avoid NULL pointer dereference on OF device match The affected lines were resulting in a NULL pointer dereference on our platform because the device tree contained the following list of compatible strings: power-sensor@40 { compatible = "ti,ina232", "ti,ina231"; ... }; Since the driver doesn't declare a compatible string "ti,ina232", the OF matching succeeds on "ti,ina231". But the I2C device ID info is populated via the first compatible string, cf. modalias population in of_i2c_get_board_info(). Since there is no "ina232" entry in the legacy I2C device ID table either, the struct i2c_device_id *id pointer in the probe function is NULL. Fix this by using the already populated type variable instead, which points to the proper driver data. Since the name is also wanted, add a generic one to the ina2xx_config table.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-09
Last Modified
2025-12-09
Generated
2026-05-07
AI Q&A
2025-12-09
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
texas_instruments ina232 *
texas_instruments ina231 *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a NULL pointer dereference in the Linux kernel's ina2xx ADC driver. It occurs because the device tree contains a compatible string "ti,ina232" which the driver does not declare. The OF matching succeeds on "ti,ina231", but the I2C device ID info is populated from the first compatible string, leading to a NULL pointer in the probe function. This causes the driver to dereference a NULL pointer, potentially leading to a crash or undefined behavior. The fix involved using a properly populated type variable instead of the NULL pointer.


How can this vulnerability impact me? :

This vulnerability can cause the Linux kernel to dereference a NULL pointer when probing certain devices, which may lead to kernel crashes or instability on affected systems using the ina2xx ADC driver with specific device tree configurations.


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, update the Linux kernel to a version where the fix for the NULL pointer dereference in the ina2xx ADC driver has been applied. This fix involves using the already populated type variable instead of relying on the device ID pointer, preventing the NULL pointer dereference. Avoid using device trees with incompatible or incorrect compatible strings such as "ti,ina232" if the driver does not support them.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart