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 241D11A5BAE for ; Wed, 26 Feb 2025 01:58: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=1740535082; cv=none; b=lpCK7JDpAS/KkSMrvyq4gtIlrjTXXDIZzZlsUXPRrk+YwNmH9Q+tEViE0QML4TrxTxJBAOcZNnemG0ZoVkIPQ1yVBV7QUq87La4DK7XxCXmh5hC+HDPN2eAZtw+fU3NY1vtvsggA0+gWuCF5KhlYnJhGdO6w2Dpev3RLyYZ0TKk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535082; c=relaxed/simple; bh=HI59Lz6pk2f5QZW9XX083uMiTFg53+iB3cgwLcZLR20=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kG9XkevHzWWfVfFM/y1W6VToq2bkfWOSoyGdQx1hwbyuOdjPXHq/H781AIoFVoEkJPJpQMvS2W6AMRD6TrnPoOV1ycLU8afi0virzoR35O4ppcIEqOeaMhWiJnv8HlqJ0kNLQldnaTvMWXFX3aaMNLThB1MuwRetjTaWgXmq38A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WEj2dAc/; 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="WEj2dAc/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF2CAC4CEE6; Wed, 26 Feb 2025 01:58:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535082; bh=HI59Lz6pk2f5QZW9XX083uMiTFg53+iB3cgwLcZLR20=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WEj2dAc/RsIX/2U3sf9Lt9UR+gbRYdbqywrYy1o6Nllmb6jiQYJDTo5MlHwQruJnD xMJ/Mfdn5Q3kXulH8czkrrqdNli7GMPfL/E5rBeae9o20GJ1cVctcL/4cY02pcp99e 7+DKCPFEX1A9Rdv51R3hEgLYXGL8UpsqAB6BUy6I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49084: qede: confirm skb is allocated before using Date: Wed, 26 Feb 2025 02:54:49 +0100 Message-ID: <2025022657-CVE-2022-49084-b132@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=3266; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HI59Lz6pk2f5QZW9XX083uMiTFg53+iB3cgwLcZLR20=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SkyXHFvI0nVg6vVdb5+daFY5H3De6devy3y35ALuC Gd2Ltm1uCOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmInmUYX7yqj1McRbNzZwp 808uYwsrbD7facYwh2PejMT9T5UCHm1Yp1TM7/zZ4UScAwA= 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: qede: confirm skb is allocated before using qede_build_skb() assumes build_skb() always works and goes straight to skb_reserve(). However, build_skb() can fail under memory pressure. This results in a kernel panic because the skb to reserve is NULL. Add a check in case build_skb() failed to allocate and return NULL. The NULL return is handled correctly in callers to qede_build_skb(). The Linux kernel CVE team has assigned CVE-2022-49084 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit 8a8633978b842c88fbcfe00d4e5dde96048f630e and fixed in 4.19.238 with commit 9648adb1b3ece55c657d3a4f52bfee663b710dfe Issue introduced in 4.18 with commit 8a8633978b842c88fbcfe00d4e5dde96048f630e and fixed in 5.4.189 with commit 034a92c6a81048128fc7b18d278d52438a13902a Issue introduced in 4.18 with commit 8a8633978b842c88fbcfe00d4e5dde96048f630e and fixed in 5.10.111 with commit 8928239e5e2e460d95b8a0b89f61671625e7ece0 Issue introduced in 4.18 with commit 8a8633978b842c88fbcfe00d4e5dde96048f630e and fixed in 5.15.34 with commit c9bdce2359b5f4986eb38d1e81865b3586cc20d2 Issue introduced in 4.18 with commit 8a8633978b842c88fbcfe00d4e5dde96048f630e and fixed in 5.16.20 with commit b2d6b3db9d1cf80908964036dbe1c52a86b1afb1 Issue introduced in 4.18 with commit 8a8633978b842c88fbcfe00d4e5dde96048f630e and fixed in 5.17.3 with commit e1fd0c42acfa22bb34d2ab6a111484f466ab8093 Issue introduced in 4.18 with commit 8a8633978b842c88fbcfe00d4e5dde96048f630e and fixed in 5.18 with commit 4e910dbe36508654a896d5735b318c0b88172570 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-49084 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/qede/qede_fp.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/9648adb1b3ece55c657d3a4f52bfee663b710dfe https://git.kernel.org/stable/c/034a92c6a81048128fc7b18d278d52438a13902a https://git.kernel.org/stable/c/8928239e5e2e460d95b8a0b89f61671625e7ece0 https://git.kernel.org/stable/c/c9bdce2359b5f4986eb38d1e81865b3586cc20d2 https://git.kernel.org/stable/c/b2d6b3db9d1cf80908964036dbe1c52a86b1afb1 https://git.kernel.org/stable/c/e1fd0c42acfa22bb34d2ab6a111484f466ab8093 https://git.kernel.org/stable/c/4e910dbe36508654a896d5735b318c0b88172570