CVE-2025-38133

iio: adc: ad4851: fix ad4858 chan pointer handling

published July 3, 2025

CVSS
—
EPSS
0%
Percentile
7.1
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

iio: adc: ad4851: fix ad4858 chan pointer handling

The pointer returned from ad4851_parse_channels_common() is incremented

internally as each channel is populated. In ad4858_parse_channels(),

the same pointer was further incremented while setting ext_scan_type

fields for each channel. This resulted in indio_dev->channels being set

to a pointer past the end of the allocated array, potentially causing

memory corruption or undefined behavior.

Fix this by iterating over the channels using an explicit index instead

of incrementing the pointer. This preserves the original base pointer

and ensures all channel metadata is set correctly.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00179 · 7.1th percentile
Published
2025-07-03T08:35Z
EPSS history
Timeline
  • 03 JUL 08:35Z
    iio: adc: ad4851: fix ad4858 chan pointer handling
    cvelistv5