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 1DA26259CA7 for ; Fri, 2 May 2025 15:57:49 +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=1746201469; cv=none; b=oZj9kUyHx4nC27oAiozsnLasJrK3px9jy0MRn9btKvgc071Q3X5a2xAqrH//uJKCzRIR7K6EfMDZfWQwDuye6rcM5+IaPO8NZXAT98epyZHaBIyGXvHFt0QBfG2ZhSnuiwsgFG1e8zB6732lObNEgLMd72Ml7AOy/kg5hF2EcCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201469; c=relaxed/simple; bh=UFYR8auc5aXzLZ440mGmZuvl2admkzeI9e8aKCfD6qI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EbPtlnBwMpZUjk4z1NawJPqnjjMigiofLoenchvOaA+S1xJG8GjEmGak8g8DeIMCIEHpkGgaotzI+g7WbgSVM28/QRyjp769nFEkFYIuROPmCm1IvcU9bU6FTiz/7RKuHkeP5fUML38XCgCcIOiGrxA8K/DXdffx1LkfThMRZcw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SRYVb/GD; 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="SRYVb/GD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3512EC4CEE9; Fri, 2 May 2025 15:57:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201469; bh=UFYR8auc5aXzLZ440mGmZuvl2admkzeI9e8aKCfD6qI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SRYVb/GDPd61UcGAIokHtyXj0ruOssFytsnPR709JPjO2kq0O0yAXtr3M17ovMO27 ewo6sv+nEzgTry8cy2uoQYRn62GKdHdFPna+VrvpuhT/RFm+jXbI4dWfd2wJlaNHSZ ZDpS/DpPyFc5hxQG2czckjfgFKWKhDvGBY0SBegI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53066: qed/qed_sriov: guard against NULL derefs from qed_iov_get_vf_info Date: Fri, 2 May 2025 17:55:31 +0200 Message-ID: <2025050211-CVE-2023-53066-cba3@gregkh> X-Mailer: git-send-email 2.49.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=3338; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Q2UdbKnHbqV+xps+KP/Xu1VU1nz61u5LO0hBiG41Bow=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkirx7Y5mWvX5Zn+VJlsrDTw/60fPOZH7/eL1J40bM8l JHZU/pcRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkAy/Dgp4FkqU7So+rWc2O ajsSMslcqXTxE4YFfTlss1TUn0zu23jdev790N9//6ncBwA= 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: qed/qed_sriov: guard against NULL derefs from qed_iov_get_vf_info We have to make sure that the info returned by the helper is valid before using it. Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool. The Linux kernel CVE team has assigned CVE-2023-53066 to this issue. Affected and fixed versions =========================== Issue introduced in 4.7 with commit 733def6a04bf3d2810dd675e1240f8df94d633c3 and fixed in 4.14.312 with commit 7bd0037822fd04da13721f77a42ee5a077d4c5fb Issue introduced in 4.7 with commit 733def6a04bf3d2810dd675e1240f8df94d633c3 and fixed in 4.19.280 with commit 7742c08e012eb65405e8304d100641638c5ff882 Issue introduced in 4.7 with commit 733def6a04bf3d2810dd675e1240f8df94d633c3 and fixed in 5.4.240 with commit 42d72c6d1edc9dc09a5d6f6695d257fa9e9cc270 Issue introduced in 4.7 with commit 733def6a04bf3d2810dd675e1240f8df94d633c3 and fixed in 5.10.177 with commit 39c3b9dd481c3afce9439b29bafe00444cb4406b Issue introduced in 4.7 with commit 733def6a04bf3d2810dd675e1240f8df94d633c3 and fixed in 5.15.105 with commit e42d3bde4ec03c863259878dddaef5c351cca7ad Issue introduced in 4.7 with commit 733def6a04bf3d2810dd675e1240f8df94d633c3 and fixed in 6.1.22 with commit 97ea704f39b5ded96f071e98701aa543f6f89683 Issue introduced in 4.7 with commit 733def6a04bf3d2810dd675e1240f8df94d633c3 and fixed in 6.2.9 with commit b224b0cab3a66e93d414825065a2e667a1d28c32 Issue introduced in 4.7 with commit 733def6a04bf3d2810dd675e1240f8df94d633c3 and fixed in 6.3 with commit 25143b6a01d0cc5319edd3de22ffa2578b045550 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-2023-53066 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/qlogic/qed/qed_sriov.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/7bd0037822fd04da13721f77a42ee5a077d4c5fb https://git.kernel.org/stable/c/7742c08e012eb65405e8304d100641638c5ff882 https://git.kernel.org/stable/c/42d72c6d1edc9dc09a5d6f6695d257fa9e9cc270 https://git.kernel.org/stable/c/39c3b9dd481c3afce9439b29bafe00444cb4406b https://git.kernel.org/stable/c/e42d3bde4ec03c863259878dddaef5c351cca7ad https://git.kernel.org/stable/c/97ea704f39b5ded96f071e98701aa543f6f89683 https://git.kernel.org/stable/c/b224b0cab3a66e93d414825065a2e667a1d28c32 https://git.kernel.org/stable/c/25143b6a01d0cc5319edd3de22ffa2578b045550