CVE-2025-38082 gpio: virtuser: fix potential out-of-bound write
A potential out-of-bound write in the Linux kernel's gpio virtuser driver allows attackers to corrupt memory, potentially leading to code execution or privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-38082?
CVE-2025-38082 is a high-severity memory corruption vulnerability in Linux kernel, published on 18 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-787
Which versions are affected by CVE-2025-38082?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-38082?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-38082 being exploited?
There is no known exploitation of CVE-2025-38082 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-38082, DEBIAN-CVE-2025-38082, ECHO-37e3-48b0-b66b, GHSA-jrjh-7r5x-wq56, ROOT-OS-UBUNTU-2204-CVE-2025-38082, ROOT-OS-UBUNTU-2404-CVE-2025-38082 and 1 more.