Linux
iio: adc: ad4851: fix ad4858 chan pointer handling
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 6250803fe2ec92be32a4df1c3a39c4a460d5bd58, < 6c3b9e1167d072ce2d01cafec7866647cf8d3616
- >= 6250803fe2ec92be32a4df1c3a39c4a460d5bd58, < 499a8cee812588905cc940837e69918c1649a19e
Fixed in 6c3b9e1167d072ce2d01cafec7866647cf8d3616, 499a8cee812588905cc940837e69918c1649a19e
- 6.15
Fixed in 0, 6.15.3, 6.16
Mitigation
Upgrade Linux to 6c3b9e1167d072ce2d01cafec7866647cf8d3616 or 499a8cee812588905cc940837e69918c1649a19e or later.
Upgrade Linux to 0 or 6.15.3 or 6.16 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.