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 9976526D5C2 for ; Tue, 18 Feb 2025 14:37:54 +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=1739889474; cv=none; b=Lw7J0kbbf+qda+zd9GhFXA5D6iO8uWc5806BfMlKimzSIt8jyRQeP1YV7w3S98pEiClZzK6aOiYj94JiT48I9zgRiXiHpZMmMXJfTWNjNf77L2Cajn2OfvtAswJBhx3dSQo7g5TdTvwZKwSyM5vjX+LOkv0pFSlN+84yXmwHrCY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739889474; c=relaxed/simple; bh=yiFbkrgSDKhaBdv2Z5w+CRKvnaX+nk/mVfMSivkPI/w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GQCUqFl7cZ8GCVlalBmriWbqVniSirmiT46OmR+w2Kppp00MBGy7hHE8LP11nlgqqJ/Yym6hthshcQaudl8O9i3muSdZt5q0seY3k76h7Be/vCQomxWwoEn5Rd9G5jaJviJKPNniH9153w2aJECMugF72gbgQSJRNJ/Bpre+Lxo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eANRs3VT; 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="eANRs3VT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2A27C4CEE6; Tue, 18 Feb 2025 14:37:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1739889474; bh=yiFbkrgSDKhaBdv2Z5w+CRKvnaX+nk/mVfMSivkPI/w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=eANRs3VTLS2xZE29EwSbavVTTZYsw6/k++4j6s+Shxuq7sFBddVFAbcWP513DyBH/ GgNu+r1ALj51kLuswYuRE2TRSYb6PhJd9qYTENH3gBIylCf9YKq7wScmAI6AXewoMz exAUeQtmphgbqON+VOrimNwio5nOBc+Vno6ws8Wo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21703: netem: Update sch->q.qlen before qdisc_tree_reduce_backlog() Date: Tue, 18 Feb 2025 15:37:49 +0100 Message-ID: <2025021849-CVE-2025-21703-79f1@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=2898; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yiFbkrgSDKhaBdv2Z5w+CRKvnaX+nk/mVfMSivkPI/w=; b=kA0DAAIRMUfUDdst+ykByyZiAGe0mz6iXsMxv5NEbmKH072Df2KvqsgrtSa/3UdP2puWDe+1r YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAme0mz4ACgkQMUfUDdst+ynFCgCglOdy p51nB+J+qR28QOB7oGOdinUAn1A/T9EXThwaPjU1ffBq8rhCRw+0 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: netem: Update sch->q.qlen before qdisc_tree_reduce_backlog() qdisc_tree_reduce_backlog() notifies parent qdisc only if child qdisc becomes empty, therefore we need to reduce the backlog of the child qdisc before calling it. Otherwise it would miss the opportunity to call cops->qlen_notify(), in the case of DRR, it resulted in UAF since DRR uses ->qlen_notify() to maintain its active list. The Linux kernel CVE team has assigned CVE-2025-21703 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.67 with commit 3824c5fad18eeb7abe0c4fc966f29959552dca3e and fixed in 6.6.78 with commit 1f8e3f4a4b8b90ad274dfbc66fc7d55cb582f4d5 Issue introduced in 6.12.6 with commit 356078a5c55ec8d2061fcc009fb8599f5b0527f9 and fixed in 6.12.14 with commit 6312555249082d6d8cc5321ff725df05482d8b83 Issue introduced in 6.13 with commit f8d4bc455047cf3903cd6f85f49978987dbb3027 and fixed in 6.13.3 with commit 839ecc583fa00fab785fde1c85a326743657fd32 Issue introduced in 6.13 with commit f8d4bc455047cf3903cd6f85f49978987dbb3027 and fixed in 6.14-rc2 with commit 638ba5089324796c2ee49af10427459c2de35f71 Issue introduced in 5.4.288 with commit 83c6ab12f08dcc09d4c5ac86fdb89736b28f1d31 Issue introduced in 5.10.232 with commit 216509dda290f6db92c816dd54b83c1df9da9e76 Issue introduced in 5.15.175 with commit c2047b0e216c8edce227d7c42f99ac2877dad0e4 Issue introduced in 6.1.121 with commit 10df49cfca73dfbbdb6c4150d859f7e8926ae427 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-2025-21703 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_netem.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/1f8e3f4a4b8b90ad274dfbc66fc7d55cb582f4d5 https://git.kernel.org/stable/c/6312555249082d6d8cc5321ff725df05482d8b83 https://git.kernel.org/stable/c/839ecc583fa00fab785fde1c85a326743657fd32 https://git.kernel.org/stable/c/638ba5089324796c2ee49af10427459c2de35f71