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 6622D30F527 for ; Tue, 28 Oct 2025 11:51:56 +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=1761652316; cv=none; b=LiWi4afVfFyaSnS+/pmOtBdSxbgTVuiT6Rw4XE5Xi03RaQ2og9009JO2/E7Rem1tArBIxPuQ6Ivual6CthC7t8IefL+TPbHRkFXD6BC+/snFybUOFDhRRgy4T2/8eYD5NcC4TLTZ0s9b7w3+Ge3eS+AITFqoRGW0gvoFP7eP9Ls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761652316; c=relaxed/simple; bh=Lciq47LuI+KNTgJu6J+O0Br5uhntPIxxpLWGWMqSA9Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OEJJkwuDI93EFef02igo6yFJfXhtuIrJCt1GSd57EA2TeW/isGY4Kxxdgp7g1abs2jFoxPj0qmRF3Gbe+vRKfn6srpsc2VZyxg+xZNfoDoqTFlSvyFPbPYD67ATI8Uz7TlEocpdkygTmxjaolTlP/vqWSzawWXD2q3s3LLn0YKs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IfzO84LO; 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="IfzO84LO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC683C4CEE7; Tue, 28 Oct 2025 11:51:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761652316; bh=Lciq47LuI+KNTgJu6J+O0Br5uhntPIxxpLWGWMqSA9Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IfzO84LOo+3gtdjU8/uzZl3J+HbMpS0Da5AEXXZPFMaoEgEb0zC85vaNBtBUSdy0Y Ty+GcG9mZ4zYdAlL14iAsJ5/9LI17w2LAFkknkZ6zvZXRdx8h4Zm9KM5CR8IPvmpsq CFTXjb21NmLmv3pliECsa/KZJdKy81JgDZESux1w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40035: Input: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak Date: Tue, 28 Oct 2025 12:48:12 +0100 Message-ID: <2025102811-CVE-2025-40035-9c37@gregkh> X-Mailer: git-send-email 2.51.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=3087; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+kddhsWhyGGWvRaqrn6aMXp8ck09jax7yoVlXjW9ILY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkMa6vNjjunXuL+FJgdfXd2lJH/BaH27nIR/aZLGUJvj QtirZ53xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwERKXjIsOMPNGFHHuOGYo9MO N/afz3Yd2rlqJsOC4xJMs7ynzd79LNWecY17mdVcGcX3AA== 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: Input: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak Struct ff_effect_compat is embedded twice inside uinput_ff_upload_compat, contains internal padding. In particular, there is a hole after struct ff_replay to satisfy alignment requirements for the following union member. Without clearing the structure, copy_to_user() may leak stack data to userspace. Initialize ff_up_compat to zero before filling valid fields. The Linux kernel CVE team has assigned CVE-2025-40035 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.29 with commit 2d56f3a32c0e62f99c043d2579840f9731fe5855 and fixed in 5.15.195 with commit e63aade22a33e77b93c98c9f02db504d897a76b4 Issue introduced in 2.6.29 with commit 2d56f3a32c0e62f99c043d2579840f9731fe5855 and fixed in 6.1.156 with commit 933b87c4590b42500299f00ff55f555903056803 Issue introduced in 2.6.29 with commit 2d56f3a32c0e62f99c043d2579840f9731fe5855 and fixed in 6.6.112 with commit fd8a23ecbc602d00e47b27f20b07350867d0ebe5 Issue introduced in 2.6.29 with commit 2d56f3a32c0e62f99c043d2579840f9731fe5855 and fixed in 6.12.53 with commit 48c96b7e9e03516936d6deba54b5553097eae817 Issue introduced in 2.6.29 with commit 2d56f3a32c0e62f99c043d2579840f9731fe5855 and fixed in 6.17.3 with commit f5e1f3b85aadce74268c46676772c3e9fa79897e Issue introduced in 2.6.29 with commit 2d56f3a32c0e62f99c043d2579840f9731fe5855 and fixed in 6.18-rc1 with commit d3366a04770eea807f2826cbdb96934dd8c9bf79 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-40035 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/input/misc/uinput.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/e63aade22a33e77b93c98c9f02db504d897a76b4 https://git.kernel.org/stable/c/933b87c4590b42500299f00ff55f555903056803 https://git.kernel.org/stable/c/fd8a23ecbc602d00e47b27f20b07350867d0ebe5 https://git.kernel.org/stable/c/48c96b7e9e03516936d6deba54b5553097eae817 https://git.kernel.org/stable/c/f5e1f3b85aadce74268c46676772c3e9fa79897e https://git.kernel.org/stable/c/d3366a04770eea807f2826cbdb96934dd8c9bf79