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 F012B2836B0 for ; Wed, 18 Jun 2025 09:36:53 +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=1750239414; cv=none; b=gYJg0eqXJFrQjlp/Yb/zVDJHE7IceI34hLuvvSR55+LrdFDaX8Yg7J1B+y0VakLo8Q9kkSYEvl/iIvGL8G1zDhPb/6hp8jOeII3pJ6rN4EOmuMVE5rJmiqfuAmXu1iDRf7/cQu6rUGp5DW2qHE8N8GZ0MD/3uKghjXhQCJxQugk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750239414; c=relaxed/simple; bh=HBhXNPYsuaNWmwjXyjeiASjZUK+QwhygFNxQtYWqk+k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qSLn5lmZnS9sC4FsFmMSvekKVIIOTU8Nto5HXH2+PB0542lmJZofyEcgpairXiJBdNPwWnZlEDpFkHH47ObmXODEIncuVzIn+c8kZlBQiOTE2qyQVK3eoXDcTpxFvfypQ6Jsk4XP2EpCPo7kaR96qRFay3YBbvYM9XM3i2dRKlo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zi/vPO34; 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="zi/vPO34" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E3FEC4CEE7; Wed, 18 Jun 2025 09:36:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750239413; bh=HBhXNPYsuaNWmwjXyjeiASjZUK+QwhygFNxQtYWqk+k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zi/vPO34DW/6iuaKiAypLjx+iCmH8iSxL51wKXpVMSznRRF6LJJljmizH+FVcL1rD 9oE7y2spZoFkKwuk0giWkHzA7sT1FKvrYpFBdSIqCpkVJE8eW3tqXtfshpXA4MT77l yki27aDmGgLMKc6M53ebJ7ywTM8LtOu0TgPesILE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38082: gpio: virtuser: fix potential out-of-bound write Date: Wed, 18 Jun 2025 11:35:46 +0200 Message-ID: <2025061845-CVE-2025-38082-7ec8@gregkh> X-Mailer: git-send-email 2.49.0 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=1954; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yZnnMTGQyVXv9EKJrJY9/QRCWWl/KvPLonohUJ+2cUc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBHYXck19lLeq8x/ikYMJpteKVtxV2Mf/I/X7cddWDv zHR5m+udsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEXsxiWHB+ld4lQWa2px0P X5VcnKN0qPKOxR2G+bUeDIcYjKz3TL+y42xdnquc18b3dwA= 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: 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. The Linux kernel CVE team has assigned CVE-2025-38082 to this issue. Affected and fixed versions =========================== Fixed in 6.12.32 with commit afe090366f470f77e140ff3407db813f57852c04 Fixed in 6.14.10 with commit b96feaaa0fda1e3871b438143c3446954b32d3a7 Fixed in 6.15 with commit 7118be7c6072f40391923543fdd1563b8d56377c 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-38082 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/gpio/gpio-virtuser.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/afe090366f470f77e140ff3407db813f57852c04 https://git.kernel.org/stable/c/b96feaaa0fda1e3871b438143c3446954b32d3a7 https://git.kernel.org/stable/c/7118be7c6072f40391923543fdd1563b8d56377c