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 0B2E816D31C for ; Fri, 12 Jul 2024 12:38:29 +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=1720787909; cv=none; b=DvRpoHhahT/0QYUqbLr4JKJ7l7SyYVZxGvKoQQ/ZTE9CFjWa1uhLYsFTdeMeGY27pXEV/spzDYctnFTgqiZLPws++YgMQdr/UsnKI0O6rY1nGe/oetuIjuSexEIiyFy6YrJXVHJSLWeFFZCikUpmhpoKtYGgbYpjE3eBPTcQxl0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787909; c=relaxed/simple; bh=bmEKkQ2nOp7GnOFD5wuZsLLstWLJeXmRRlnqpO6SWRM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a/pxX23FHAwFQuLnzNORAMV1XSmowRUfgo/f4HEhDIeGWEsj9w5Uwgs2s/q2h3zAF7vy/fRMkNWPUqBmo1VzdOgtMdS+X0VGfxdZi3OS3QPDQyE6iI5VpaOU5iQdzxe+GV1Yf63HkSG+LSSQFvDPOq37mBNbDVe9oXEdsIm251o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=b7bZOjcX; 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="b7bZOjcX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85108C32782; Fri, 12 Jul 2024 12:38:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787908; bh=bmEKkQ2nOp7GnOFD5wuZsLLstWLJeXmRRlnqpO6SWRM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=b7bZOjcXHIBxlfnpKs53zKylFltO3B0jKno7shsKMewqPNa0s+5J3+LMCxL9BVY5c KTZJWoTfbCxJrhBVaG/nBXIZwU+/eiD4j7KjrbiXEZZZZ0KX7NGTNWmGN7L/Gr6It8 sBeTOCFotT9NUggVFtuZnwYbFG98GQgyIwZ4IPlg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40994: ptp: fix integer overflow in max_vclocks_store Date: Fri, 12 Jul 2024 14:37:58 +0200 Message-ID: <2024071250-CVE-2024-40994-e16a@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=2270; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bmEKkQ2nOp7GnOFD5wuZsLLstWLJeXmRRlnqpO6SWRM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTledXXDpjwrvwtkbf/eA8natenvtON1mxn/B0qNs58 cAijZjmjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIzjyG+aXrZ6zWXp5+oGby FtecG7vk+q+/ZmJYMCX5yWLvVyndMiqbnI9PWPZiHdsHFgA= 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: ptp: fix integer overflow in max_vclocks_store On 32bit systems, the "4 * max" multiply can overflow. Use kcalloc() to do the allocation to prevent this. The Linux kernel CVE team has assigned CVE-2024-40994 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 44c494c8e30e and fixed in 5.15.162 with commit 4b03da87d0b7 Issue introduced in 5.14 with commit 44c494c8e30e and fixed in 6.1.96 with commit d50d62d5e6ee Issue introduced in 5.14 with commit 44c494c8e30e and fixed in 6.6.36 with commit 666e934d749e Issue introduced in 5.14 with commit 44c494c8e30e and fixed in 6.9.7 with commit e1fccfb4638e Issue introduced in 5.14 with commit 44c494c8e30e and fixed in 6.10-rc5 with commit 81d23d2a2401 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-40994 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/ptp/ptp_sysfs.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/4b03da87d0b7074c93d9662c6e1a8939f9b8b86e https://git.kernel.org/stable/c/d50d62d5e6ee6aa03c00bddb91745d0b632d3b0f https://git.kernel.org/stable/c/666e934d749e50a37f3796caaf843a605f115b6f https://git.kernel.org/stable/c/e1fccfb4638ee6188377867f6015d0ce35764a8e https://git.kernel.org/stable/c/81d23d2a24012e448f651e007fac2cfd20a45ce0