# CVE-2025-38133: iio: adc: ad4851: fix ad4858 chan pointer handling

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-07-03T08:35:36.802Z
- Modified: 2026-08-05T11:59:49.082Z
- Weaknesses: CWE-787
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6250803fe2ec92be32a4df1c3a39c4a460d5bd58 before 6c3b9e1167d072ce2d01cafec7866647cf8d3616; from 6250803fe2ec92be32a4df1c3a39c4a460d5bd58 before 499a8cee812588905cc940837e69918c1649a19e; 6.15 (not affected: before 6.15; from 6.15.3 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.15 before 6.15.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/6c3b9e1167d072ce2d01cafec7866647cf8d3616> (patch)
- <https://git.kernel.org/stable/c/499a8cee812588905cc940837e69918c1649a19e> (patch)

## Sources

- CVE List: [CVE-2025-38133](https://www.cve.org/CVERecord?id=CVE-2025-38133), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-38133](https://nvd.nist.gov/vuln/detail/CVE-2025-38133), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-38133 · Whole record: https://cve.day/CVE-2025-38133.json · Rebuilt by cve.day 2026-11-25T22:59:00.531Z
