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 2180E1D555 for ; Mon, 15 Sep 2025 14:05:04 +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=1757945105; cv=none; b=nFW08RMQLHifSnhsCfMwCSWILN/Hzs0Gxos+llOPhOkOPEoQd+W3+FrwVy0NCTOQ7cI85ldZoWX2aNdrqxYlWWTPNmlMshF3/rmLwaCbfu+AYa+AJbYDHpoMpstWoeTSjIdDCJAdkEHTwNeTPbAxahFahlTGrDKcIM2GtfH+WxU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757945105; c=relaxed/simple; bh=u6rd38lofFAkiFCJHvcZYFR9PdUw6ITscCfSFX4Jv4E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fKfg+zWB2D0sfCh0SkXPRwJWuYSrWrHH1VCyluFQA0kE8EF+NRUxYBs9EZ950Ajn040Zm46BoGmJrGmgXA/Tfv+dVzi8n+x9/Swbb5Wp7C/3/Tv2rCvEy0dTvzfr2qwbSm2mn43XqtxpjGArYkq0TxLvXuZdX2DulhCZ/Pd4sik= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hHNo0vSZ; 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="hHNo0vSZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CCD9C4CEF1; Mon, 15 Sep 2025 14:04:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757945104; bh=u6rd38lofFAkiFCJHvcZYFR9PdUw6ITscCfSFX4Jv4E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hHNo0vSZkSkmdSi0MPJVgMc5eAI8RayP0kq5iZf0dYRQiNiP6OSfR/rg9llnndKKz axETMlyDJLT4AUsxqn03wOBNxnc6hMk3wlDpuD3t6C2oQHwQWbpvtdpGBIfc6iFrMI gZbbCPt18Gt7oYeGwpIfDxdfZBoIgCiSlj2lxLaE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50252: igb: Do not free q_vector unless new one was allocated Date: Mon, 15 Sep 2025 16:02:00 +0200 Message-ID: <2025091550-CVE-2022-50252-5c96@gregkh> X-Mailer: git-send-email 2.51.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=2822; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YGQaU84fycGV5rDa1D+zXg7TiESx54HaO4qXEsdwXvg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknZPyiRG593x0tPnuFmqTQdK7e0oObTJtWaRhlLPLZm 3Ks/z53RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkrQXDfOcmz5j/MtYhPLce NDxJCfl5bYvIf4b5dRPXLNrn2XI67JTNyQuRtg6neYOSAQ== 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: igb: Do not free q_vector unless new one was allocated Avoid potential use-after-free condition under memory pressure. If the kzalloc() fails, q_vector will be freed but left in the original adapter->q_vector[v_idx] array position. The Linux kernel CVE team has assigned CVE-2022-50252 to this issue. Affected and fixed versions =========================== Fixed in 4.9.337 with commit 64ca1969599857143e91aeec4440640656100803 Fixed in 4.14.303 with commit 0200f0fbb11e359cc35af72ab10b2ec224e6f633 Fixed in 4.19.270 with commit 68e8adbcaf7a8743e473343b38b9dad66e2ac6f3 Fixed in 5.4.229 with commit f96bd8adc8adde25390965a8c1ee81b73cb62075 Fixed in 5.10.163 with commit 3cb18dea11196fb4a06f78294cec5e61985e1aff Fixed in 5.15.86 with commit 314f7092b27749bdde44c14095b5533afa2a3bc8 Fixed in 6.0.16 with commit 6e399577bd397a517df4b938601108c63769ce0a Fixed in 6.1.2 with commit 56483aecf6b22eb7dff6315b3a174688c6ad494c Fixed in 6.2 with commit 0668716506ca66f90d395f36ccdaebc3e0e84801 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-50252 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/igb/igb_main.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/64ca1969599857143e91aeec4440640656100803 https://git.kernel.org/stable/c/0200f0fbb11e359cc35af72ab10b2ec224e6f633 https://git.kernel.org/stable/c/68e8adbcaf7a8743e473343b38b9dad66e2ac6f3 https://git.kernel.org/stable/c/f96bd8adc8adde25390965a8c1ee81b73cb62075 https://git.kernel.org/stable/c/3cb18dea11196fb4a06f78294cec5e61985e1aff https://git.kernel.org/stable/c/314f7092b27749bdde44c14095b5533afa2a3bc8 https://git.kernel.org/stable/c/6e399577bd397a517df4b938601108c63769ce0a https://git.kernel.org/stable/c/56483aecf6b22eb7dff6315b3a174688c6ad494c https://git.kernel.org/stable/c/0668716506ca66f90d395f36ccdaebc3e0e84801