# CVE-2021-47172: iio: adc: ad7124: Fix potential overflow due to non sequential channel numbers

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-03-25T09:16:23.741Z
- Modified: 2026-06-17T04:16:49.700Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

iio: adc: ad7124: Fix potential overflow due to non sequential channel numbers

Channel numbering must start at 0 and then not have any holes, or
it is possible to overflow the available storage.  Note this bug was
introduced as part of a fix to ensure we didn't rely on the ordering
of child nodes.  So we need to support arbitrary ordering but they all
need to be there somewhere.

Note I hit this when using qemu to test the rest of this series.
Arguably this isn't the best fix, but it is probably the most minimal
option for backporting etc.

Alexandru's sign-off is here because he carried this patch in a larger
set that Jonathan then applied.

(As written by CVE List.)

## Affected

- Linux Linux: from 5408cbc6337300d6f1a87c797273c535ed96305a before f49149964d2423fb618fb6b755bb1eaa431cca2c; from d7857e4ee1ba69732b16c73b2f2dde83ecd78ee4 before f70122825076117787b91e7f219e21c09f11a5b9; from d7857e4ee1ba69732b16c73b2f2dde83ecd78ee4 before 26da8040eccc6c6b0e415e9a3baf72fd39eb2fdc; from d7857e4ee1ba69732b16c73b2f2dde83ecd78ee4 before f2a772c51206b0c3f262e4f6a3812c89a650191b; from 5.4.14 before 5.4.124; 5.5 (not affected: before 5.5; from 5.4.124 up to 5.4.*; from 5.10.42 up to 5.10.*; from 5.12.9 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.4.14 before 5.4.124; from 5.5 before 5.10.42; from 5.11 before 5.12.9; 5.13

## References

- <https://git.kernel.org/stable/c/f49149964d2423fb618fb6b755bb1eaa431cca2c> (patch)
- <https://git.kernel.org/stable/c/f70122825076117787b91e7f219e21c09f11a5b9> (patch)
- <https://git.kernel.org/stable/c/26da8040eccc6c6b0e415e9a3baf72fd39eb2fdc> (patch)
- <https://git.kernel.org/stable/c/f2a772c51206b0c3f262e4f6a3812c89a650191b> (patch)

## Sources

- CVE List: [CVE-2021-47172](https://www.cve.org/CVERecord?id=CVE-2021-47172), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2021-47172](https://nvd.nist.gov/vuln/detail/CVE-2021-47172), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47172 · Whole record: https://cve.day/CVE-2021-47172.json · Rebuilt by cve.day 2026-11-25T22:58:08.698Z
