# CVE-2025-22082: iio: backend: make sure to NULL terminate stack buffer

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-04-16T14:12:31.529Z
- Modified: 2026-06-17T08:45:00.450Z
- Assigned by: Linux

## Description

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

iio: backend: make sure to NULL terminate stack buffer

Make sure to NULL terminate the buffer in
iio_backend_debugfs_write_reg() before passing it to sscanf(). It is a
stack variable so we should not assume it will 0 initialized.

(As written by CVE List.)

## Affected

- Linux Linux: from cdf01e0809a4c6c7877ea52401c2a6679df7aed6 before df3892e5e861c43d5612728ed259634675b8a71f; from cdf01e0809a4c6c7877ea52401c2a6679df7aed6 before 04271a4d2740f98bbe36f82cd3d74677a839d1eb; from cdf01e0809a4c6c7877ea52401c2a6679df7aed6 before fd791c81f410ab1c554686a6f486dc7a176dfe35; from cdf01e0809a4c6c7877ea52401c2a6679df7aed6 before 035b4989211dc1c8626e186d655ae8ca5141bb73; 6.12 (not affected: before 6.12; from 6.12.23 up to 6.12.*; from 6.13.11 up to 6.13.*; from 6.14.2 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.12 before 6.12.23; from 6.13 before 6.13.11; from 6.14 before 6.14.2

## References

- <https://git.kernel.org/stable/c/df3892e5e861c43d5612728ed259634675b8a71f> (patch)
- <https://git.kernel.org/stable/c/04271a4d2740f98bbe36f82cd3d74677a839d1eb> (patch)
- <https://git.kernel.org/stable/c/fd791c81f410ab1c554686a6f486dc7a176dfe35> (patch)
- <https://git.kernel.org/stable/c/035b4989211dc1c8626e186d655ae8ca5141bb73> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2025-22082 · Whole record: https://cve.day/CVE-2025-22082.json · Rebuilt by cve.day 2026-11-25T22:58:56.600Z
