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 8C7D8218E83 for ; Wed, 26 Feb 2025 02:15:45 +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=1740536145; cv=none; b=gYgjWzDQA1KR66BBClpz+kG7+LoVxiR8xSQ4aCr0XHCyoYDVY0Tq3MGwSTkqJMJ7Ol0Hak03D1O3vzqoG8yFxnr29iPVrhvDL0NirS4DwYBkMV8aMSB+5rVEORuGC2dVUvkKPqBpbZtxFME25isRiAlL6wbK6hLfmc14x3oJOwg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536145; c=relaxed/simple; bh=4/HXaSBhIdISgwA9rRqIylNwWBs4PoXHim1WwfBozcU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k9XSpTFqSluo371hM6OjZ4oxzy1cHxj51CxbwuIDiwOCXVikWHbWCTDGr0/XtCtds6+1jw3XuGNJRLEKikUWjW9idIkvjnAcuJhAKZGQfqTxvcJhTloWBmOutlwsElq0M357wp47C2YcvLScp+1OyiMc2tcwmQKuJr9p1UeghqY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HAabupHO; 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="HAabupHO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63DDBC4CEDD; Wed, 26 Feb 2025 02:15:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536145; bh=4/HXaSBhIdISgwA9rRqIylNwWBs4PoXHim1WwfBozcU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HAabupHOY+pJjD140jBCr04qKR8DBTUy2lKe7NejSJc4JtTmxZysyPxVYPg3c4MaM qjK6xMEb7vX92nlGgCdTLrqlRIrR+JsM+5rSZi11f6LC+PlV+ltJx1lB8JfaNOFsvr Z8E6XvDVb8dqyweO53O9thmM6D1EBM0jKjDkYLe0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49516: ice: always check VF VSI pointer values Date: Wed, 26 Feb 2025 03:13:10 +0100 Message-ID: <2025022610-CVE-2022-49516-2748@gregkh> X-Mailer: git-send-email 2.48.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=2284; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4/HXaSBhIdISgwA9rRqIylNwWBs4PoXHim1WwfBozcU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7KpgOK04OdZZaERGy4d9W98Oia5+q71705HL6Ytl3H y65p0/92RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT6Z/FsGD/knCPmpcmxZXl Py6fK/lx9uKRxpMM84NnKBa4/fKXV4p8xPJ+n4tuoAeDKgA= 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: ice: always check VF VSI pointer values The ice_get_vf_vsi function can return NULL in some cases, such as if handling messages during a reset where the VSI is being removed and recreated. Several places throughout the driver do not bother to check whether this VSI pointer is valid. Static analysis tools maybe report issues because they detect paths where a potentially NULL pointer could be dereferenced. Fix this by checking the return value of ice_get_vf_vsi everywhere. The Linux kernel CVE team has assigned CVE-2022-49516 to this issue. Affected and fixed versions =========================== Fixed in 5.18.3 with commit e7be3877589d539c52e5d1d23a625f889b541b9d Fixed in 5.19 with commit baeb705fd6a7245cc1fa69ed991a9cffdf44a174 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-49516 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/intel/ice/ice_devlink.c drivers/net/ethernet/intel/ice/ice_repr.c drivers/net/ethernet/intel/ice/ice_sriov.c drivers/net/ethernet/intel/ice/ice_vf_lib.c drivers/net/ethernet/intel/ice/ice_virtchnl.c drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.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/e7be3877589d539c52e5d1d23a625f889b541b9d https://git.kernel.org/stable/c/baeb705fd6a7245cc1fa69ed991a9cffdf44a174