From mboxrd@z Thu Jan 1 00:00:00 1970 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 951BE18C922 for ; Fri, 27 Sep 2024 12:43:58 +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=1727441038; cv=none; b=fpkQ97ByAnNT/P46IOyMyQJ8JR6D5wqbQUC8RNOB7WR7vUWnx54jiFuUGPoWYd7m9v37c6ES7tjZY5Cchel7g5tuyK/3n46ajVd7ZSpkWkbqwcCpjItBZGkY2MTICIl+LOF6QtSJnSVG5kq48lImeJqsdSaaMgqiRQhAhZw9n8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727441038; c=relaxed/simple; bh=nG7jyckLswXaZWYRBg84waLmOfufT/XQIuS0Sjj9p+0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D71TbuppU1uGaUGPs07SJvbxmbJRhTVWJaVRgJZowDWrfd5mrkWJtpf/eRbMXdsnrp7HqKahtgOxPiU2ecqusjEX5f1pzlcGOuRnISKWtBXMBIl3gBz0VgRi54KYHdWuUiaAKMziKtqhq8DAdDjskJZNqb2VTOM1Nr6QrVd8E8Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=l1SZ0H0b; 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="l1SZ0H0b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9CF0C4CEC4; Fri, 27 Sep 2024 12:43:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727441038; bh=nG7jyckLswXaZWYRBg84waLmOfufT/XQIuS0Sjj9p+0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=l1SZ0H0bHxyoreNN4Kiq7XykegcK3AtHYfOJa5p9N3ApxK7E8BpjzvoBnUE/qyQ4W bxUnYxsV584psM6J3WcFuxwiVDtPaTudxHWrZ5R8iON8vo7/4fUfp6DMlQ8RPGFN7I tYQScI0nRtwCIDgDIHrq22ketXRR/8N4KiNYfTvs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46859: platform/x86: panasonic-laptop: Fix SINF array out of bounds accesses Date: Fri, 27 Sep 2024 14:43:52 +0200 Message-ID: <2024092744-CVE-2024-46859-e785@gregkh> X-Mailer: git-send-email 2.46.2 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=2775; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nG7jyckLswXaZWYRBg84waLmOfufT/XQIuS0Sjj9p+0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnfVjRscxY7919q0hGm2UHf9XUuqAhPXuN3j+tPuozh0 3PbRY+ldMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEXpUxLFgV8sht9sJY4d/h Ulf2VM588JU53oxhwa6y1LzLETzPXNbyJKf8L1sj/sq3EQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: platform/x86: panasonic-laptop: Fix SINF array out of bounds accesses The panasonic laptop code in various places uses the SINF array with index values of 0 - SINF_CUR_BRIGHT(0x0d) without checking that the SINF array is big enough. Not all panasonic laptops have this many SINF array entries, for example the Toughbook CF-18 model only has 10 SINF array entries. So it only supports the AC+DC brightness entries and mute. Check that the SINF array has a minimum size which covers all AC+DC brightness entries and refuse to load if the SINF array is smaller. For higher SINF indexes hide the sysfs attributes when the SINF array does not contain an entry for that attribute, avoiding show()/store() accessing the array out of bounds and add bounds checking to the probe() and resume() code accessing these. The Linux kernel CVE team has assigned CVE-2024-46859 to this issue. Affected and fixed versions =========================== Issue introduced in 3.3 with commit e424fb8cc4e6 and fixed in 6.1.111 with commit 9291fadbd272 Issue introduced in 3.3 with commit e424fb8cc4e6 and fixed in 6.6.52 with commit 6821a82616f6 Issue introduced in 3.3 with commit e424fb8cc4e6 and fixed in 6.10.11 with commit b38c19783286 Issue introduced in 3.3 with commit e424fb8cc4e6 and fixed in 6.11 with commit f52e98d16e9b 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-2024-46859 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/panasonic-laptop.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/9291fadbd2720a869b1d2fcf82305648e2e62a16 https://git.kernel.org/stable/c/6821a82616f60aa72c5909b3e252ad97fb9f7e2a https://git.kernel.org/stable/c/b38c19783286a71693c2194ed1b36665168c09c4 https://git.kernel.org/stable/c/f52e98d16e9bd7dd2b3aef8e38db5cbc9899d6a4