Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 427A0304989 for ; Tue, 19 Aug 2025 17:23:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624187; cv=none; b=eIIWMje/9GK0maIA36V5Kl8oT3OsWhRBQY3DAn6pJLji9+9coP8Aem9mNgFYh6KCR+tAckgDJeCFLuvShy8759WkJ/rwVbnkwy2rRLwXRyRb1dEjf62qa5enB4h3lQeAzCP3iADAAdhzP9Tqbr8ax6k7TEYf83quWaGqY6NgARo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624187; c=relaxed/simple; bh=G9bxTRZhPEKHFBHxOq8gqyZn64Ej0Yt4FGXiU6ji3dE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tMTDjqMmblumVzx1X9gtp6BwuLO5TJXII16TyDMxjpt9Y7oAL82PcxS17fApLOXdlxzE3vbWW5Td8RbG1DkK1ERo0TwjpI4tSr7P9BnHXVpZW/SLpcR0MqWu5Eg2VaVTQBOTk5jQteOA0IzQuJiJOBTkxIKx46ixk/F+zk0Geak= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VpokqMqZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="VpokqMqZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB65FC4CEF4; Tue, 19 Aug 2025 17:23:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755624187; bh=G9bxTRZhPEKHFBHxOq8gqyZn64Ej0Yt4FGXiU6ji3dE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VpokqMqZzQ7O5yRIkL8v+lKN241Jxb/dIikFB10G4OStm5+Wg4uVaF6pm1gZ8gV2m YFP+fVgiFd+J2R03dsDhAkk/VbshPm60NDyAVHBMA6xFfTPvWqDxovY4FnDXH5uzVm Aa4teEPhcwDxO3ILxLTPYsTWuMPSVWLJVbnsDHak= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38613: staging: gpib: fix unset padding field copy back to userspace Date: Tue, 19 Aug 2025 19:18:59 +0200 Message-ID: <2025081924-CVE-2025-38613-8505@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2119; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xoFkc16TJw+ZfLqXKT3BS11E9nCvIkPN+VSUmrpUA0w=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlLNj4Qe2stoHlMm+nR0ut6T+/pyv8rUpo66VEss8l0l hMrVvs/6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJfFNjmMX0/oLB2qNvZrOK 7Vaav4/n9ybJabwM80xMl+35J/z1ePPkq9d2X53Gp5xTvxMA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2025-38613 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 9dde4559e93955ccc47d588f7fd051684d55c4e7 and fixed in 6.16.1 with commit 19dedd4f70f5a6505e7c601ef7dd40542d1d9aa5 Issue introduced in 6.13 with commit 9dde4559e93955ccc47d588f7fd051684d55c4e7 and fixed in 6.17-rc1 with commit a739d3b13bff0dfa1aec679d08c7062131a2a425 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-38613 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/staging/gpib/common/gpib_os.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/19dedd4f70f5a6505e7c601ef7dd40542d1d9aa5 https://git.kernel.org/stable/c/a739d3b13bff0dfa1aec679d08c7062131a2a425