CVE-2023-53834
iio: adc: ina2xx: avoid NULL pointer dereference on OF device match
Check your servers for CVE-2023-53834
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-53834 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 19.2% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from c43a102e67db99c8bfe6e8a9280cec13ff53b789, before a8e2ae6296d56478fb98ae7f739846ed121f154f affected from c43a102e67db99c8bfe6e8a9280cec13ff53b789, before 77b689cc27d489b75d33f1a368356d70eb0ce08c affected from c43a102e67db99c8bfe6e8a9280cec13ff53b789, before 13f3ce53b65aa8b44cad7039d31e62c9ffd6c5d1 affected from c43a102e67db99c8bfe6e8a9280cec13ff53b789, before a41e19cc0d6b6a445a4133170b90271e4a2553dc
Other versions: unaffected
|
| Linux |
affected 4.5 unaffected before 4.5 unaffected from 5.15.127 up to and including 5.15.* unaffected from 6.1.46 up to and including 6.1.* unaffected from 6.4.11 up to and including 6.4.* unaffected 6.5 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-53834 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53834
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-53834
trivy image --scanners vuln IMAGE | grep CVE-2023-53834
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/a8e2ae6296d56478fb98ae7f739846ed121f154f git.kernel.org
- https://git.kernel.org/stable/c/77b689cc27d489b75d33f1a368356d70eb0ce08c git.kernel.org
- https://git.kernel.org/stable/c/13f3ce53b65aa8b44cad7039d31e62c9ffd6c5d1 git.kernel.org
- https://git.kernel.org/stable/c/a41e19cc0d6b6a445a4133170b90271e4a2553dc git.kernel.org
Source: the record CVE-2023-53834 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse