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 2E088182D15 for ; Thu, 30 May 2024 15:36:02 +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=1717083364; cv=none; b=WvrKijTpi1Qxz6BRYnYSeoM9Xf+RWEpNTT/VY8A9/ub+DcpYjmPLnN4NrDoZYiMm0kOvHfjm23TLFP4Q9QsmPVkrh4YJVBQqFrcrxRO1fMGb2lzm4hjHCRA8EmfyZH6+afwvpwc0oK3mc27nSGQbTShLXrMXkS7NeKeJSImljHs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717083364; c=relaxed/simple; bh=AJME3FRKnZHNSqa6UqQibNcYRKsBylw/cF/ftVYCkTM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kcUV3I0cmqNv59XoYm93dJJJLGNes6e/f2epquYzLr13CiZE9yfWo6ZYFGJyml0Zvd9cDzi+gPxCVxZMYDhFsrwUKHdTdh7LyVSbQW+EYV/EEl6ggdcWWzPW+e/bmnzvrPXzJY7yvFu8ab+kUYFG6DiBQG6jfJhbOxAT4x2lui4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=W+GaL/QU; 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="W+GaL/QU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 646E6C2BBFC; Thu, 30 May 2024 15:36:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717083362; bh=AJME3FRKnZHNSqa6UqQibNcYRKsBylw/cF/ftVYCkTM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=W+GaL/QUAVGCPMDUTjwiXngstjQMrEyPW44dsI7YHYyByAv4xVG0l+1Fthaa2zi21 mna29D+dJ8ip130CuVEGYHLa6V9HP0tz4x5icCzUTdX3ooYqVSzdHPlGwMAG1ABIKw IJNBx7WfxX5l289PpKYArlTXCp8mm3hhFgxBV4cQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36957: octeontx2-af: avoid off-by-one read from userspace Date: Thu, 30 May 2024 17:35:54 +0200 Message-ID: <2024053041-CVE-2024-36957-5919@gregkh> X-Mailer: git-send-email 2.45.1 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=2711; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AJME3FRKnZHNSqa6UqQibNcYRKsBylw/cF/ftVYCkTM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRc84qcRwK1yvYlBTUtDl6+//k77f6JHl2lEzQE/hTM qvqV3BlRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEZgnDXAF9sZhTG0wrbq1R nr+DyTnh5bXtwgxzRRoyfh21EjsXEL8z6fLROY1P2f3yAA== 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: octeontx2-af: avoid off-by-one read from userspace We try to access count + 1 byte from userspace with memdup_user(buffer, count + 1). However, the userspace only provides buffer of count bytes and only these count bytes are verified to be okay to access. To ensure the copied buffer is NUL terminated, we use memdup_user_nul instead. The Linux kernel CVE team has assigned CVE-2024-36957 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.20 with commit dae49384d0d7 and fixed in 5.10.217 with commit bcdac70adceb Issue introduced in 5.12 with commit 3a2eb515d136 and fixed in 5.15.159 with commit ec697fbd38cb Issue introduced in 5.12 with commit 3a2eb515d136 and fixed in 6.1.91 with commit 8f11fe3ea3fc Issue introduced in 5.12 with commit 3a2eb515d136 and fixed in 6.6.31 with commit 0a0285cee11c Issue introduced in 5.12 with commit 3a2eb515d136 and fixed in 6.8.10 with commit fc3e0076c1f8 Issue introduced in 5.12 with commit 3a2eb515d136 and fixed in 6.9 with commit f299ee709fb4 Issue introduced in 5.11.3 with commit c9a2ed3fdd03 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-36957 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/net/ethernet/marvell/octeontx2/af/rvu_debugfs.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/bcdac70adceb44373da204c3c297f2a98e13216e https://git.kernel.org/stable/c/ec697fbd38cbe2eef0948b58673b146caa95402f https://git.kernel.org/stable/c/8f11fe3ea3fc261640cfc8a5addd838000407c67 https://git.kernel.org/stable/c/0a0285cee11c7dcc2657bcd456e469958a5009e7 https://git.kernel.org/stable/c/fc3e0076c1f82fe981d321e3a7bad4cbee542c19 https://git.kernel.org/stable/c/f299ee709fb45036454ca11e90cb2810fe771878