Bug 2376044 (CVE-2025-38133) - CVE-2025-38133 kernel: iio: adc: ad4851: fix ad4858 chan pointer handling
Summary: CVE-2025-38133 kernel: iio: adc: ad4851: fix ad4858 chan pointer handling
Keywords:
Status: NEW
Alias: CVE-2025-38133
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-03 09:01 UTC by OSIDB Bzimport
Modified: 2025-07-03 19:28 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-07-03 09:01:58 UTC
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.

Comment 1 Avinash Hanwate 2025-07-03 19:26:56 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025070331-CVE-2025-38133-5976@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.