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 BC60015E88 for ; Tue, 29 Oct 2024 00:51:09 +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=1730163069; cv=none; b=pi1Ec1/UfCcVa9xQw2MbSIEbN9/dQOlMboHCul+OOp9GaK7zT8xoq2cRMgsgmcyhDjF+iOxY44IQR5IwiVgrkQ4XOPOWGurJUlK9OB+EHAT3qt3XrUiiw0wtK7gjg/GJKrOtPANgMr6xYPAHy1+yAtkHHqajm1zQ2in/+DFavsM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730163069; c=relaxed/simple; bh=N7yoqAa1dOn59o5kT8a6hL1K+9b7C8sNlAkm765d9DE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dyGKbvN5+gwhTf3/meuKewlmMmAp/jxrMw9+8pSAZhAbh6VKJz4U3Tc5ec6lnlFuzjUQXvPWiP0w+4VX3u7MEWh4uTPfDYWIp5gOmcJtlKgNdus8RDqP4Zh8N3g+PbPFODUKNWCcHKQUSFlpRVqx8QA7t/WLABxlIjIUroUnmK8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lQV4qv6w; 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="lQV4qv6w" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A19CC4CEC3; Tue, 29 Oct 2024 00:51:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730163069; bh=N7yoqAa1dOn59o5kT8a6hL1K+9b7C8sNlAkm765d9DE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lQV4qv6wcsdOHbfq6sWEoAkKoEFC7n0n4eejaq/z0lmxK3hMIuInNJJuoKO9z4Fs8 uI35JlOyTMdQ+Jn82MhgIf7im5sh4X7oUWryZ4ZCzqHOGO2W/iyzUfaIwEJYiyT24V mmTuAmU+RhYIqhie3I7SB7NF7qa29TlEJWOyaj/Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50074: parport: Proper fix for array out-of-bounds access Date: Tue, 29 Oct 2024 01:50:37 +0100 Message-ID: <2024102935-CVE-2024-50074-d44d@gregkh> X-Mailer: git-send-email 2.47.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=2918; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=N7yoqAa1dOn59o5kT8a6hL1K+9b7C8sNlAkm765d9DE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkKhtG+0d0Mrl2LZ3wvXXLP7a1jyu+KRVU/PzcUWhiV+ TwNjF3fEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABP5E8uwYG281PsHl9etO34g YbHa4zcvT7M4RTDMTwr1Dty9chcLT4TFVfHK8msR7cbZAA== 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: parport: Proper fix for array out-of-bounds access The recent fix for array out-of-bounds accesses replaced sprintf() calls blindly with snprintf(). However, since snprintf() returns the would-be-printed size, not the actually output size, the length calculation can still go over the given limit. Use scnprintf() instead of snprintf(), which returns the actually output letters, for addressing the potential out-of-bounds access properly. The Linux kernel CVE team has assigned CVE-2024-50074 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.224 with commit a44f88f7576b and fixed in 5.10.228 with commit 1826b6d69bbb Issue introduced in 5.15.165 with commit c719b393374d and fixed in 5.15.169 with commit 440311903231 Issue introduced in 6.1.103 with commit 7f4da759092a and fixed in 6.1.114 with commit fca048f222ce Issue introduced in 6.6.44 with commit b579ea3516c3 and fixed in 6.6.58 with commit 66029078fee0 Issue introduced in 6.11 with commit ab11dac93d2d and fixed in 6.11.5 with commit 2a8b26a09c8e Issue introduced in 6.11 with commit ab11dac93d2d and fixed in 6.12-rc4 with commit 02ac3a9ef3a1 Issue introduced in 4.19.320 with commit 166a0bddcc27 Issue introduced in 5.4.282 with commit 47b3dce10077 Issue introduced in 6.10.3 with commit 7789a1d6792a 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-50074 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/parport/procfs.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/1826b6d69bbb7f9ae8711827facbb2ad7f8d0aaa https://git.kernel.org/stable/c/440311903231c6e6c9bcf8acb6a2885a422e00bc https://git.kernel.org/stable/c/fca048f222ce9dcbde5708ba2bf81d85a4a27952 https://git.kernel.org/stable/c/66029078fee00646e2e9dbb8f41ff7819f8e7569 https://git.kernel.org/stable/c/2a8b26a09c8e3ea03da1ef3cd0ef6b96e559fba6 https://git.kernel.org/stable/c/02ac3a9ef3a18b58d8f3ea2b6e46de657bf6c4f9