CVE-2025-38082
NoneCVSS
—
EPSS
0.2%
Published
Jun 18, 2025
CISA due date
—
Cloudanix analysis
A flaw in the Linux kernel's handling of certain device inputs could let an attacker on the same machine overwrite memory and potentially take control or crash the system.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Moderate
- Impact
- Privilege Gain
- Component
- OS kernel
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Unchecked input length in gpio virtuser allows truncation in simple_write_to_buffer followed by missing bounds check, enabling out-of-bounds write before zero termination.
Why it matters to the business
Linux kernel systems remain exposed to potential local privilege escalation or denial of service until patched; low EPSS and absence from KEV indicate limited observed exploitation but still require prompt remediation across distributions.
How an attack unfolds
An attacker with write access to the gpio virtuser interface supplies more characters than the allocated buffer; the kernel truncates the count without validating against buffer size, resulting in an out-of-bounds write and possible memory corruption.
How to fix it
Upgrade the Linux kernel to a version containing commit afe090366f470f77e140ff3407db813f57852c04; for Mageia 5 also apply flash-player-plugin 11.2.202.559-1.mga5.nonfree or later. Rebuild and reboot after applying the fixed package.
How to confirm the fix worked
Verify the running kernel contains commit afe090366f470f77e140ff3407db813f57852c04 via git log or package version; confirm the bounds check and zero-termination logic are present in the gpio virtuser source.
Typical attack path
- Identify host running vulnerable Linux kernel with gpio virtuser enabled
- Obtain local write access to the affected sysfs or character device interface
- Craft oversized input exceeding buffer capacity
- Trigger write path that performs truncated copy without bounds check
- Leverage resulting memory corruption for privilege escalation or crash
How to detect it
Review kernel audit logs and dmesg for unusual writes to gpio virtuser interfaces; examine process activity writing to sysfs entries associated with virtual gpio devices; no public exploit artifacts are known.
What your security team should do
- Prioritize kernel updates on all affected systems within standard change windows given low EPSS but kernel memory safety impact
- Inventory distributions and packages to confirm presence of gpio virtuser code paths
- Monitor upstream stable branches for backports of afe090366f470f77e140ff3407db813f57852c04
- Test updated kernels in staging environments before broad deployment
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:13 | linux | 0 | 6.12.32-1 |
| Linux | Kernel | 6.11.0 | 6.12.32 |
Related vulnerabilities
- CVE-2025-39885 In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix recursive… Also affects linux
- CVE-2025-39883 In the Linux kernel, the following vulnerability has been resolved: mm/memory-failure… Also affects linux
- CVE-2025-39884 In the Linux kernel, the following vulnerability has been resolved: btrfs: fix subvolume… Also affects linux
- CVE-2025-39886 In the Linux kernel, the following vulnerability has been resolved: bpf: Tell memcg to… Also affects linux
- CVE-2025-39876 In the Linux kernel, the following vulnerability has been resolved: net: fec: Fix… Also affects linux
- CVE-2025-39880 In the Linux kernel, the following vulnerability has been resolved: libceph: fix invalid… Also affects linux
- CVE-2025-39881 In the Linux kernel, the following vulnerability has been resolved: kernfs: Fix UAF in… Also affects linux
- CVE-2025-39882 In the Linux kernel, the following vulnerability has been resolved: drm/mediatek: fix… Also affects linux