# CVE-2025-38667: iio: fix potential out-of-bound write

- 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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-08-22T16:02:58.865Z
- Modified: 2026-08-05T12:03:50.401Z
- Weaknesses: CWE-787
- Assigned by: Linux

## Description

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

iio: fix potential out-of-bound write

The buffer is set to 20 characters. If a caller write more characters,
count is truncated to the max available space in "simple_write_to_buffer".
To protect from OoB access, check that the input size fit into buffer and
add a zero terminator after copy to the end of the copied data.

(As written by CVE List.)

## Affected

- Linux Linux: from 6d5dd486c715908b5a6ed02315a15ff044a91025 before 81a635b6eccd6fc889f6d07ab9583b705f739ce1; from 6d5dd486c715908b5a6ed02315a15ff044a91025 before 16285a0931869baa618b1f5d304e1e9d090470a8; 6.15 (not affected: before 6.15; from 6.15.9 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.15 before 6.15.9; 6.16

## 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/81a635b6eccd6fc889f6d07ab9583b705f739ce1> (patch)
- <https://git.kernel.org/stable/c/16285a0931869baa618b1f5d304e1e9d090470a8> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2025-38667 · Whole record: https://cve.day/CVE-2025-38667.json · Rebuilt by cve.day 2026-11-25T22:59:03.553Z
