CVE-2025-38613 staging: gpib: fix unset padding field copy back to userspace
A local attacker can read uninitialized kernel stack memory via the gpib_board_info_ioctl interface, potentially exposing sensitive data.
- 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-38613?
CVE-2025-38613 is a medium-severity vulnerability in Linux kernel, published on 19 Aug 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:
staging: gpib: fix unset padding field copy back to userspace
The introduction of a padding field in the gpib_board_info_ioctl is showing up as initialized data on the stack frame being copyied back to userspace in function board_info_ioctl. The simplest fix is to initialize the entire struct to zero to ensure all unassigned padding fields are zero'd before being copied back to userspace.
Weakness: CWE-908
Which versions are affected by CVE-2025-38613?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-38613?
Apply the vendor's patch.
Is CVE-2025-38613 being exploited?
There is no known exploitation of CVE-2025-38613 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-38613, GHSA-377f-vp77-9jq4, UBUNTU-CVE-2025-38613.