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 5BEC514D435 for ; Wed, 19 Jun 2024 13:38:40 +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=1718804320; cv=none; b=X4eB3otzw0R/lqXfauY+Gxg69e/2IrQCx/Gso/sOmV9Q+4w2BczpnIRCsYBNj/qxiTnT2bwO8gOXBUSTz2RH28UK4mS0RUFeztWsGJwLPPiQJ8bI67WspikYOEpe323RP3ASu6EFS8weDlevlvxMWtl47OPxGr5hb+NS8F9s2BE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718804320; c=relaxed/simple; bh=K589+1+WO57Al9CnodWeRthvzjtNlej6f45QJGn85gQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dLp+qFGGtPkWbCERD9Zjo3Jxdrn0OytvqD5rhTHdDj5NmCyCR+n91ESsVW5ZZaqDC9fLZV7FvxEIhUY4cSu9ifgtyh7ln0O9XxYn6M7U5VIVmSL9QDFYs3DYLe2uqug8rXzYROhgKvJ2gxrEbB8YKwzkj9uylL3oECP2RrrbVAk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IiWJfs+t; 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="IiWJfs+t" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB9B6C32786; Wed, 19 Jun 2024 13:38:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718804320; bh=K589+1+WO57Al9CnodWeRthvzjtNlej6f45QJGn85gQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IiWJfs+tLq21UTmumWdO2Lz/qIe5Mcl4iIwfPro0woBDbLa+Iqtk89rgakz1fsCUJ rirMfcIpHlYp6WkL4lxbE2nN+6EV6fagJtQR9cuPg0zh8lfQ0mZ8iyFlqU/QZf1mnB lEoSDIN6mN3aKSXSeYt4TdlX1zUPRVMOBZ6pecKI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38587: speakup: Fix sizeof() vs ARRAY_SIZE() bug Date: Wed, 19 Jun 2024 15:37:59 +0200 Message-ID: <2024061950-CVE-2024-38587-46ec@gregkh> X-Mailer: git-send-email 2.45.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=3064; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=K589+1+WO57Al9CnodWeRthvzjtNlej6f45QJGn85gQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlF9/XmNB7XYtVJmVos759xd2Lr62UuVtG9f446f/awq HDQ32LfEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPh2cCwoNXX2MW71nCWkvHe /OQLr59e6XAqY5hf1fbb3Pvg5M0xjE+W2zI5fGPg6vQCAA== 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: speakup: Fix sizeof() vs ARRAY_SIZE() bug The "buf" pointer is an array of u16 values. This code should be using ARRAY_SIZE() (which is 256) instead of sizeof() (which is 512), otherwise it can the still got out of bounds. The Linux kernel CVE team has assigned CVE-2024-38587 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19.313 with commit 756c5cb7c09e and fixed in 4.19.316 with commit 42f0a3f67158 Issue introduced in 5.4.275 with commit 8f6b62125bef and fixed in 5.4.278 with commit cd7f3978c2ec Issue introduced in 5.10.216 with commit 6401038acfa2 and fixed in 5.10.219 with commit 07ef95cc7a57 Issue introduced in 5.15.157 with commit 0d130158db29 and fixed in 5.15.161 with commit 504178fb7d9f Issue introduced in 6.1.88 with commit 89af25bd4b4b and fixed in 6.1.93 with commit 3726f75a1ccc Issue introduced in 6.6.29 with commit 8defb1d22ba0 and fixed in 6.6.33 with commit c6e1650cf5df Issue introduced in 6.8.8 with commit 0efb15c14c49 and fixed in 6.8.12 with commit eb1ea64328d4 Issue introduced in 6.9 with commit c8d2f34ea96e and fixed in 6.9.3 with commit d52c04474fea Issue introduced in 6.9 with commit c8d2f34ea96e and fixed in 6.10-rc1 with commit 008ab3c53bc4 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-38587 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/accessibility/speakup/main.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/42f0a3f67158ed6b2908d2b9ffbf7e96d23fd358 https://git.kernel.org/stable/c/cd7f3978c2ec741aedd1d860b2adb227314cf996 https://git.kernel.org/stable/c/07ef95cc7a579731198c93beed281e3a79a0e586 https://git.kernel.org/stable/c/504178fb7d9f6cdb0496d5491efb05f45597e535 https://git.kernel.org/stable/c/3726f75a1ccc16cd335c0ccfad1d92ee08ecba5e https://git.kernel.org/stable/c/c6e1650cf5df1bd6638eeee231a683ef30c7d4eb https://git.kernel.org/stable/c/eb1ea64328d4cc7d7a912c563f8523d5259716ef https://git.kernel.org/stable/c/d52c04474feac8e305814a5228e622afe481b2ef https://git.kernel.org/stable/c/008ab3c53bc4f0b2f20013c8f6c204a3203d0b8b