CVE-2025-38613
JSON

5.5medium

staging: gpib: fix unset padding field copy back to userspace

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.16% (higher than 5% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 9dde4559e93955ccc47d588f7fd051684d55c4e7 before 19dedd4f70f5a6505e7c601ef7dd40542d1d9aa5, from 9dde4559e93955ccc47d588f7fd051684d55c4e7 before a739d3b13bff0dfa1aec679d08c7062131a2a425, 6.13
Not affected: before 6.13, from 6.16.1 up to 6.16.*, from 6.17 up to *
CVE List
linux linux_kernelfrom 6.13 before 6.16.1NVD

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: staging: gpib: corrección de la copia de un campo de relleno no asignado al espacio de usuario. La introducción de un campo de relleno en gpib_board_info_ioctl se muestra como datos inicializados en el frame de pila que se copian al espacio de usuario en la función board_info_ioctl. La solución más sencilla es inicializar toda la estructura a cero para garantizar que todos los campos de relleno no asignados se restablezcan a cero antes de copiarse al espacio de usuario.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-38613 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-38613 changed 2026-06-17Public domain