Skip to contentSkip to conversation

CVE-2022-49792: iio: adc: mp2629: fix potential array out of bound access

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

iio: adc: mp2629: fix potential array out of bound access

Add sentinel at end of maps to avoid potential array out of bound access in iio core.

The Linux kernel CVE team has assigned CVE-2022-49792 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.8 with commit 7abd9fb6468225f5c7f83149ce279cc1a912a68a and fixed in 5.10.156 with commit d95b85c5084ad70011988861ee864529eefa1da0
	Issue introduced in 5.8 with commit 7abd9fb6468225f5c7f83149ce279cc1a912a68a and fixed in 5.15.80 with commit 1678d4abb2dc2ca3b05b998a9d88616976e4f947
	Issue introduced in 5.8 with commit 7abd9fb6468225f5c7f83149ce279cc1a912a68a and fixed in 6.0.10 with commit 399b2105a2240e730b9f3880bd8f154247539aa7
	Issue introduced in 5.8 with commit 7abd9fb6468225f5c7f83149ce279cc1a912a68a and fixed in 6.1 with commit ca1547ab15f48dc81624183ae17a2fd1bad06dfc

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2022-49792

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	drivers/iio/adc/mp2629_adc.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/d95b85c5084ad70011988861ee864529eefa1da0
	https://git.kernel.org/stable/c/1678d4abb2dc2ca3b05b998a9d88616976e4f947
	https://git.kernel.org/stable/c/399b2105a2240e730b9f3880bd8f154247539aa7
	https://git.kernel.org/stable/c/ca1547ab15f48dc81624183ae17a2fd1bad06dfc