CVE-2023-53834

Source
https://cve.org/CVERecord?id=CVE-2023-53834
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53834.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-53834
Downstream
Related
Published
2025-12-09T01:29:49.742Z
Modified
2026-04-02T09:45:23.166978Z
Summary
iio: adc: ina2xx: avoid NULL pointer dereference on OF device match
Details

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 ofi2cgetboardinfo(). Since there is no "ina232" entry in the legacy I2C device ID table either, the struct i2cdeviceid *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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53834.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c43a102e67db99c8bfe6e8a9280cec13ff53b789
Fixed
a8e2ae6296d56478fb98ae7f739846ed121f154f
Fixed
77b689cc27d489b75d33f1a368356d70eb0ce08c
Fixed
13f3ce53b65aa8b44cad7039d31e62c9ffd6c5d1
Fixed
a41e19cc0d6b6a445a4133170b90271e4a2553dc

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53834.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.5.0
Fixed
5.15.127
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.46
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.4.11

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53834.json"