Skip to contentSkip to conversation

CVE-2026-72480: iio: adc: xilinx-ams: fix out-of-bounds channel lookup in event handling

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

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: xilinx-ams: fix out-of-bounds channel lookup in event handling

ams_event_to_channel() may return a pointer past the end of dev->channels when no matching scan_index is found. This can lead to invalid memory access in ams_handle_event().

Add a bounds check in ams_event_to_channel() and return NULL when no channel is found. Also guard the caller to safely handle this case.

The Linux kernel CVE team has assigned CVE-2026-72480 to this issue.

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

	Issue introduced in 5.17 with commit d5c70627a79455154f5f636096abe6fe57510605 and fixed in 6.1.178 with commit 116d1f8805ae2daadbac89d24da4c0da50b9edae
	Issue introduced in 5.17 with commit d5c70627a79455154f5f636096abe6fe57510605 and fixed in 6.6.145 with commit 94d158985b6ea011bdc26186f42d662a156da6cb
	Issue introduced in 5.17 with commit d5c70627a79455154f5f636096abe6fe57510605 and fixed in 6.12.97 with commit 1d24f14e049fdd769146dda026496ed23b397ed9
	Issue introduced in 5.17 with commit d5c70627a79455154f5f636096abe6fe57510605 and fixed in 6.18.40 with commit 9ac3675bf875792dced45efbf47116719a7c097b
	Issue introduced in 5.17 with commit d5c70627a79455154f5f636096abe6fe57510605 and fixed in 7.1.5 with commit 3c374d33f1338dbb5676919c5194caa9c5aa1631
	Issue introduced in 5.17 with commit d5c70627a79455154f5f636096abe6fe57510605 and fixed in 7.2-rc1 with commit 947eb6f0a274f8b15a0248051a65b069effd5057

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-2026-72480

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/xilinx-ams.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/116d1f8805ae2daadbac89d24da4c0da50b9edae
	https://git.kernel.org/stable/c/94d158985b6ea011bdc26186f42d662a156da6cb
	https://git.kernel.org/stable/c/1d24f14e049fdd769146dda026496ed23b397ed9
	https://git.kernel.org/stable/c/9ac3675bf875792dced45efbf47116719a7c097b
	https://git.kernel.org/stable/c/3c374d33f1338dbb5676919c5194caa9c5aa1631
	https://git.kernel.org/stable/c/947eb6f0a274f8b15a0248051a65b069effd5057