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 7780620E330 for ; Mon, 26 May 2025 14:54:25 +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=1748271265; cv=none; b=Flzgr5nbeH8txFnZRgx0muV1VmPA4b5esw/DoutX9vws0x6TTGF2x/jOUbBx24D1eDKT0YjJW+sKsIpbX4+crAYDIeQ6DSQnTerixMel16n1TyghjDK8x6kw+s0kzGepffxgrrUT8uyyNBk1XQsRh5zKKHsT04xmMjahx/mYckw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748271265; c=relaxed/simple; bh=gVOu0mCocLSEiPy/WdFJ8RA566y3xQMQL67R2fE8kng=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rqMklm+mED5i/3yhCv172+iyASowlbYFCklgWPEA0Cdue6DjApjcB5T5tPHjJ186UmT8gX88p/7b++iOQE73HhNJbpD9D2BvPXAZZFn1DmXh8yAZEwAzgwaE8n1CXu2j8rq9vy49OSjD59w9ruwMdBknCbBFpptQDJwWCHUEbJk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ayWrK6qX; 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="ayWrK6qX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B59EC4CEE7; Mon, 26 May 2025 14:54:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748271264; bh=gVOu0mCocLSEiPy/WdFJ8RA566y3xQMQL67R2fE8kng=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ayWrK6qXhauuV+UmEfh8sCRtDLq9Ug5mZE5p/wus7bJBsTlSr5pJng8gtH1gMF+Wn vE6ovfSkVdXiP6LBnANO3LmtUFwQ4+KGXDzkC7TcBcok2sY7LMMBloRR6/T3BnEyvt g7xCiQOxPgx6LwhK6E3o7qdLija2cD0q8jkEET8A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37992: net_sched: Flush gso_skb list too during ->change() Date: Mon, 26 May 2025 16:54:19 +0200 Message-ID: <2025052618-CVE-2025-37992-1590@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=3363; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BL2wefm6ogrtqT45c/hrz4HU3H/YOOhrcQ3oYbC71mY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkmDbOP8lpnnjjkGCDjtf/mg/28qz0zudyW3ZX4/v9k+ HOVuHn3OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAib5sYFmySOfH5X4uKblve hqKleQFSfdPNXRkWHFUw2HLd14bve6Rqdv5pA93FzgHqAA== 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: Flush gso_skb list too during ->change() Previously, when reducing a qdisc's limit via the ->change() operation, only the main skb queue was trimmed, potentially leaving packets in the gso_skb list. This could result in NULL pointer dereference when we only check sch->limit against sch->q.qlen. This patch introduces a new helper, qdisc_dequeue_internal(), which ensures both the gso_skb list and the main queue are properly flushed when trimming excess packets. All relevant qdiscs (codel, fq, fq_codel, fq_pie, hhf, pie) are updated to use this helper in their ->change() routines. The Linux kernel CVE team has assigned CVE-2025-37992 to this issue. Affected and fixed versions =========================== Issue introduced in 3.5 with commit 76e3cc126bb223013a6b9a0e2a51238d1ef2e409 and fixed in 5.15.184 with commit d3336f746f196c6a53e0480923ae93939f047b6c Issue introduced in 3.5 with commit 76e3cc126bb223013a6b9a0e2a51238d1ef2e409 and fixed in 6.1.140 with commit d38939ebe0d992d581acb6885c1723fa83c1fb2c Issue introduced in 3.5 with commit 76e3cc126bb223013a6b9a0e2a51238d1ef2e409 and fixed in 6.6.92 with commit a7d6e0ac0a8861f6b1027488062251a8e28150fd Issue introduced in 3.5 with commit 76e3cc126bb223013a6b9a0e2a51238d1ef2e409 and fixed in 6.12.30 with commit d1365ca80b012d8a7863e45949e413fb61fa4861 Issue introduced in 3.5 with commit 76e3cc126bb223013a6b9a0e2a51238d1ef2e409 and fixed in 6.14.8 with commit fe88c7e4fc2c1cd75a278a15ffbf1689efad4e76 Issue introduced in 3.5 with commit 76e3cc126bb223013a6b9a0e2a51238d1ef2e409 and fixed in 6.15 with commit 2d3cbfd6d54a2c39ce3244f33f85c595844bd7b8 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-37992 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: include/net/sch_generic.h net/sched/sch_codel.c net/sched/sch_fq.c net/sched/sch_fq_codel.c net/sched/sch_fq_pie.c net/sched/sch_hhf.c net/sched/sch_pie.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/d3336f746f196c6a53e0480923ae93939f047b6c https://git.kernel.org/stable/c/d38939ebe0d992d581acb6885c1723fa83c1fb2c https://git.kernel.org/stable/c/a7d6e0ac0a8861f6b1027488062251a8e28150fd https://git.kernel.org/stable/c/d1365ca80b012d8a7863e45949e413fb61fa4861 https://git.kernel.org/stable/c/fe88c7e4fc2c1cd75a278a15ffbf1689efad4e76 https://git.kernel.org/stable/c/2d3cbfd6d54a2c39ce3244f33f85c595844bd7b8