# CVE-2025-38082: gpio: virtuser: 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.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-06-18T09:35:41.902Z
- Modified: 2026-08-05T11:59:20.241Z
- Weaknesses: CWE-787
- Assigned by: Linux

## Description

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

gpio: virtuser: fix potential out-of-bound write

If the caller wrote more characters, count is truncated to the max
available space in "simple_write_to_buffer". Check that the input
size does not exceed the buffer size. Write a zero termination
afterwards.

(As written by CVE List.)

## Affected

- Linux Linux: from 91581c4b3f29e2e22aeb1a62e842d529ca638b2d before afe090366f470f77e140ff3407db813f57852c04; from 91581c4b3f29e2e22aeb1a62e842d529ca638b2d before b96feaaa0fda1e3871b438143c3446954b32d3a7; from 91581c4b3f29e2e22aeb1a62e842d529ca638b2d before 7118be7c6072f40391923543fdd1563b8d56377c; 6.11 (not affected: before 6.11; from 6.12.32 up to 6.12.*; from 6.14.10 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.11 before 6.12.32; from 6.13 before 6.14.10; 6.15

## 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/afe090366f470f77e140ff3407db813f57852c04> (patch)
- <https://git.kernel.org/stable/c/b96feaaa0fda1e3871b438143c3446954b32d3a7> (patch)
- <https://git.kernel.org/stable/c/7118be7c6072f40391923543fdd1563b8d56377c> (patch)

## Sources

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

---

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