# CVE-2022-48927: iio: adc: tsc2046: fix memory corruption by preventing array overflow

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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 13% of CVEs (2026-12-01)
- Published: 2024-08-22T03:31:19.861Z
- Modified: 2026-08-05T08:52:58.053Z
- Weaknesses: CWE-787
- 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: tsc2046: fix memory corruption by preventing array overflow

On one side we have indio_dev->num_channels includes all physical channels +
timestamp channel. On other side we have an array allocated only for
physical channels. So, fix memory corruption by ARRAY_SIZE() instead of
num_channels variable.

Note the first case is a cleanup rather than a fix as the software
timestamp channel bit in active_scanmask is never set by the IIO core.

(As written by CVE List.)

## Affected

- Linux Linux: from 9374e8f5a38defe90bc65b2decf317c1c62d91dd before 0cb9b2f73c182d242a640e512f4785c7c504512f; from 9374e8f5a38defe90bc65b2decf317c1c62d91dd before 082d2c047b0d305bb0b6e9f9d671a09470e2db2d; from 9374e8f5a38defe90bc65b2decf317c1c62d91dd before b7a78a8adaa8849c02f174d707aead0f85dca0da; 5.14 (not affected: before 5.14; from 5.15.26 up to 5.15.*; from 5.16.12 up to 5.16.*; from 5.17 up to *)
- linux linux_kernel: from 5.14 before 5.15.26; from 5.16 before 5.16.12

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/0cb9b2f73c182d242a640e512f4785c7c504512f> (patch)
- <https://git.kernel.org/stable/c/082d2c047b0d305bb0b6e9f9d671a09470e2db2d> (patch)
- <https://git.kernel.org/stable/c/b7a78a8adaa8849c02f174d707aead0f85dca0da> (patch)

## Sources

- CVE List: [CVE-2022-48927](https://www.cve.org/CVERecord?id=CVE-2022-48927), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-48927](https://nvd.nist.gov/vuln/detail/CVE-2022-48927), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-48927 · Whole record: https://cve.day/CVE-2022-48927.json · Rebuilt by cve.day 2026-11-25T22:58:19.967Z
