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 65C342F4A for ; Wed, 18 Jun 2025 09:36: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=1750239367; cv=none; b=CFPE9hS3k3171JTo18YHHz+unE2A32tIwon9C5g8OWvBeIqhZws+BUG5v2QTqredYjRVw6Nl6Rn7YYRBRJ297Eu+JgU90H5RPDKcil/F6ouywLHcCiMf6R41s0u5UmrZbgMVjZkk4VTqG7tMBzt7Dmhvsck9YpMXbKgYvoVIuP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750239367; c=relaxed/simple; bh=DgGLS/OlgHi2H5lWNpoPtbeWuXcLIpBYIGrKHi9W8TY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VyroJzaobj9PdDB94qWcbOlHD6P2pTxYDPfXx7z4NN0bEFDowu2+RemG6OhOwzwpJrPgFouFyfNMvCzSeKR122duwk6kx9vfbprmxl5hE1cdaaBjOzEcP1Z2+aHLv+8KkodF7Qd1xUxQ9L0wP6PCrMYajmPT5RW23lsgOwVcD0Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=F3JoK37l; 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="F3JoK37l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECE0EC4CEE7; Wed, 18 Jun 2025 09:36:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750239367; bh=DgGLS/OlgHi2H5lWNpoPtbeWuXcLIpBYIGrKHi9W8TY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=F3JoK37lZUkgwagQ1lb5m/VydFLggQzr3D7nCiP168Gs44FJMpolFzc3jh4TBMYOh Bksj6DY1NdrU5W5g9dP7L5iXqGHYgBhod5J/m0Cb2zCC39n8E8TGSOBLeJ8ii2F5ku 6ij2azDjkMkjR0OdpRu+tfnRvszTC1BGPbA0Oloo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38077: platform/x86: dell-wmi-sysman: Avoid buffer overflow in current_password_store() Date: Wed, 18 Jun 2025 11:34:12 +0200 Message-ID: <2025061840-CVE-2025-38077-f53e@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=3044; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rxSXvrr8/UylN0U747ie4cS6x0tWyHiJA3Dop2XD+YM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlB7V93rX+Tv/l41bnZyy7GKjFNV1drOcRmX8V0ka+K6 diLCZ61HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRGf8ZFhw4U5ww0+CoxC+L F9IeExsfdBvdfcIwP/Wg1RTZ5x/eHTCIfiPhb8/3q/eCIwA= 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: platform/x86: dell-wmi-sysman: Avoid buffer overflow in current_password_store() If the 'buf' array received from the user contains an empty string, the 'length' variable will be zero. Accessing the 'buf' array element with index 'length - 1' will result in a buffer overflow. Add a check for an empty string. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2025-38077 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit e8a60aa7404bfef37705da5607c97737073ac38d and fixed in 5.15.185 with commit fb7cde625872709b8cedad9b241e0ec3d82fa7d3 Issue introduced in 5.11 with commit e8a60aa7404bfef37705da5607c97737073ac38d and fixed in 6.1.141 with commit 60bd13f8c4b3de2c910ae1cdbef85b9bbc9685f5 Issue introduced in 5.11 with commit e8a60aa7404bfef37705da5607c97737073ac38d and fixed in 6.6.93 with commit f86465626917df3b8bdd2756ec0cc9d179c5af0f Issue introduced in 5.11 with commit e8a60aa7404bfef37705da5607c97737073ac38d and fixed in 6.12.31 with commit 8594a123cfa23d708582dc6fb36da34479ef8a5b Issue introduced in 5.11 with commit e8a60aa7404bfef37705da5607c97737073ac38d and fixed in 6.14.9 with commit 97066373ffd55bd9af0b512ff3dd1f647620a3dc Issue introduced in 5.11 with commit e8a60aa7404bfef37705da5607c97737073ac38d and fixed in 6.15 with commit 4e89a4077490f52cde652d17e32519b666abf3a6 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-38077 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/platform/x86/dell/dell-wmi-sysman/passobj-attributes.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/fb7cde625872709b8cedad9b241e0ec3d82fa7d3 https://git.kernel.org/stable/c/60bd13f8c4b3de2c910ae1cdbef85b9bbc9685f5 https://git.kernel.org/stable/c/f86465626917df3b8bdd2756ec0cc9d179c5af0f https://git.kernel.org/stable/c/8594a123cfa23d708582dc6fb36da34479ef8a5b https://git.kernel.org/stable/c/97066373ffd55bd9af0b512ff3dd1f647620a3dc https://git.kernel.org/stable/c/4e89a4077490f52cde652d17e32519b666abf3a6