From mboxrd@z Thu Jan 1 00:00:00 1970 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 83DE31F0992 for ; Thu, 1 May 2025 14:18:58 +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=1746109138; cv=none; b=LTIGzWk1kdU0lILtYpHPuYp2beGmF4n1BcyTdlhr4T0StZZBm+6BPqKf8K4aCxHU64MxSbtKYoqdKvxT8FTeFaK+frNgUlc7gGP9Mkn9BFtsVPemQBzcM1uXx2WRC/GFXeoe+T8iyqnAkGL/eX9a8Aj4VGZO88EN5OX5O5gIHpU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746109138; c=relaxed/simple; bh=xs9iuqs3gTVo5/8UKfq6E5I9RGhaLdqwgTXbEEvnE+Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FSJtyc+4D4oxAVS0bT6s/ec36YMRCasFx3oFa8oGp5iPEpOT9FC+QDjqwX01BSvhDqIZxEIpIgC67AXruwPF332X5/uVtZRkjS8+Jbb1qXTwq1tk2rwNZTWJg7aTgI4pXEV6UeEEsL/CcaJJ+7mPvNaBHXwrwvr1cJXW/T92o5I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QdvpsBVC; 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="QdvpsBVC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A62A4C4CEE3; Thu, 1 May 2025 14:18:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746109138; bh=xs9iuqs3gTVo5/8UKfq6E5I9RGhaLdqwgTXbEEvnE+Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=QdvpsBVCMOt/PVJD1pbpdV14QfpI2JaGXYNsWrkulET5wVLxdQmw1nw6fZypjijWN M3q8GUAeUBNec8SWSe+ZXYcqDCAgviOYY5qLiYpozDM8mTXZ65MltTppyJS7+fiqww eVABjWPQbtqesPQl1llxR0DrHPlx/Cny/nP+9RrQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49921: net: sched: Fix use after free in red_enqueue() Date: Thu, 1 May 2025 16:11:51 +0200 Message-ID: <2025050108-CVE-2022-49921-e4fc@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=3377; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xqklcT6H7v0adltjrLrEi6OaWrtRplqXHFegLsDRpcU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDQezG+Z0Kqy33ajxa+fi4xdj1hhN7vqTe805vnX9f +kSniWMHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRqdMZFuyz3/LkfIm50KF7 +a3Peb97bZh4/wnD/HyrY1uN8w4y7qu8eJehzFL84GLhbAA= 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: net: sched: Fix use after free in red_enqueue() We can't use "skb" again after passing it to qdisc_enqueue(). This is basically identical to commit 2f09707d0c97 ("sch_sfb: Also store skb len before calling child enqueue"). The Linux kernel CVE team has assigned CVE-2022-49921 to this issue. Affected and fixed versions =========================== Issue introduced in 4.7 with commit d7f4f332f082c4d4ba53582f902ed6b44fd6f45e and fixed in 4.9.333 with commit 795afe0b9bb6c915f0299a8e309936519be01619 Issue introduced in 4.7 with commit d7f4f332f082c4d4ba53582f902ed6b44fd6f45e and fixed in 4.14.299 with commit a238cdcf2bdc72207c74375fc8be13ee549ca9db Issue introduced in 4.7 with commit d7f4f332f082c4d4ba53582f902ed6b44fd6f45e and fixed in 4.19.265 with commit e877f8fa49fbccc63cb2df2e9179bddc695b825a Issue introduced in 4.7 with commit d7f4f332f082c4d4ba53582f902ed6b44fd6f45e and fixed in 5.4.224 with commit 52e0429471976785c155bfbf51d80990c6cd46e2 Issue introduced in 4.7 with commit d7f4f332f082c4d4ba53582f902ed6b44fd6f45e and fixed in 5.10.154 with commit 5960b9081baca85cc7dcb14aec1de85999ea9d36 Issue introduced in 4.7 with commit d7f4f332f082c4d4ba53582f902ed6b44fd6f45e and fixed in 5.15.78 with commit fc4b50adb400ee5ec527a04073174e8e73a139fa Issue introduced in 4.7 with commit d7f4f332f082c4d4ba53582f902ed6b44fd6f45e and fixed in 6.0.8 with commit 170e5317042c302777ed6d59fdb84af9b0219d4e Issue introduced in 4.7 with commit d7f4f332f082c4d4ba53582f902ed6b44fd6f45e and fixed in 6.1 with commit 8bdc2acd420c6f3dd1f1c78750ec989f02a1e2b9 Issue introduced in 4.4.163 with commit ab0b3b9dbf559a5633d460e748144697bd2d3aa3 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-49921 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: net/sched/sch_red.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/795afe0b9bb6c915f0299a8e309936519be01619 https://git.kernel.org/stable/c/a238cdcf2bdc72207c74375fc8be13ee549ca9db https://git.kernel.org/stable/c/e877f8fa49fbccc63cb2df2e9179bddc695b825a https://git.kernel.org/stable/c/52e0429471976785c155bfbf51d80990c6cd46e2 https://git.kernel.org/stable/c/5960b9081baca85cc7dcb14aec1de85999ea9d36 https://git.kernel.org/stable/c/fc4b50adb400ee5ec527a04073174e8e73a139fa https://git.kernel.org/stable/c/170e5317042c302777ed6d59fdb84af9b0219d4e https://git.kernel.org/stable/c/8bdc2acd420c6f3dd1f1c78750ec989f02a1e2b9