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 51EAF336EC3 for ; Wed, 24 Dec 2025 13:07:31 +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=1766581654; cv=none; b=TZ/0xcu51PHJZH7vpPIX0TES2RX/8WwnlQm1FNeXSP47bUYmc2UY0VkK/l+1VHYfHmWoGItl29O1YdHa1h37RAXxjxjrBnefI5t/UkDjFiPNH9zge0GxYzGC7lhnz1fRxdFfisB15DzyDgnKstffyIk84NZ4BMX9hE/+ZtZQSR0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581654; c=relaxed/simple; bh=SjBLxAKLvb+ieuZRS9jc4dQgZpEH06GhKFoniFdRmvk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IwWN3XDtKvx69THlYxGP9Igm0HUpqZxXu2i30uLTUBZ14ZUYG0zrVIJ3juaf8DoF+02b+9KqD60SWOOuDmI6gzucLeddl8xKWnL8iRPRTf30D2YOcwfaTOEqni//rOfTR/qbf3OCK7aabr3VYQdgOCuzXlOyKxa7DdhHPQtH0iM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LaCW+ctg; 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="LaCW+ctg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82038C4CEFB; Wed, 24 Dec 2025 13:07:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581651; bh=SjBLxAKLvb+ieuZRS9jc4dQgZpEH06GhKFoniFdRmvk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=LaCW+ctg+YVXsrhVQTy1svmg2VfTn+glCmKjTIttHzm576Vh6ekhOve1YKss/GLvs gljq3CLNN6Sun+VlWfHx7lVF1TxP/Je75ylhWGpujGOgEa7SACtqDTWcUZqDDx6Fqp xM5dlGSFPfJRm/A2sjzmUHXTJhV85E/YAiZ19ufY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50763: crypto: marvell/octeontx - prevent integer overflows Date: Wed, 24 Dec 2025 14:06:14 +0100 Message-ID: <2025122456-CVE-2022-50763-923e@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2934; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=x/LasZmxgioAcC4HhrrPZSGhpH2ckxcyZQu4cM2scso=; b=kA0DAAIRMUfUDdst+ykByyZiAGlL5TShpMU9XFDb19zjvebm1HBEYKhCRN4KdF+qWulfAgDtx IhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmlL5TQACgkQMUfUDdst+ylfpgCdF88W /qe9RoTZnKAYt5CAvJLraM4AoMq0PsGelLTzHgo8hNK5x/1mYALk 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: crypto: marvell/octeontx - prevent integer overflows The "code_length" value comes from the firmware file. If your firmware is untrusted realistically there is probably very little you can do to protect yourself. Still we try to limit the damage as much as possible. Also Smatch marks any data read from the filesystem as untrusted and prints warnings if it not capped correctly. The "code_length * 2" can overflow. The round_up(ucode_size, 16) + sizeof() expression can overflow too. Prevent these overflows. The Linux kernel CVE team has assigned CVE-2022-50763 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit d9110b0b01ff1cd02751cd5c2c94e938a8906083 and fixed in 5.10.150 with commit 7bfa7d67735381715c98091194e81e7685f9b7db Issue introduced in 5.7 with commit d9110b0b01ff1cd02751cd5c2c94e938a8906083 and fixed in 5.15.75 with commit 12acfa1059ad69aa352ddb2bf23ba1b831aff15f Issue introduced in 5.7 with commit d9110b0b01ff1cd02751cd5c2c94e938a8906083 and fixed in 5.19.17 with commit 8f5eee162e55175d9dac98b5e9b8da76449d2257 Issue introduced in 5.7 with commit d9110b0b01ff1cd02751cd5c2c94e938a8906083 and fixed in 6.0.3 with commit e7ff7a46baafd38d7ed45604397e650d61f5db8d Issue introduced in 5.7 with commit d9110b0b01ff1cd02751cd5c2c94e938a8906083 and fixed in 6.1 with commit caca37cf6c749ff0303f68418cfe7b757a4e0697 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-2022-50763 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/crypto/marvell/octeontx/otx_cptpf_ucode.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/7bfa7d67735381715c98091194e81e7685f9b7db https://git.kernel.org/stable/c/12acfa1059ad69aa352ddb2bf23ba1b831aff15f https://git.kernel.org/stable/c/8f5eee162e55175d9dac98b5e9b8da76449d2257 https://git.kernel.org/stable/c/e7ff7a46baafd38d7ed45604397e650d61f5db8d https://git.kernel.org/stable/c/caca37cf6c749ff0303f68418cfe7b757a4e0697