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 1D9E5170A2B for ; Fri, 2 May 2025 14:16:16 +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=1746195377; cv=none; b=llk82AqC6Ey8uy8MqGbgUhpO/eV0jwdzEG5HxAhQgRRBZQAjjRbmnY1hXeF9gWH9nqb9tVUM4646v8A+++JjA6Ox3v77wbTqy6FNcoaZO/FmYAwRcqxJwEN5bB5vtLFBS28v4S6R7espVqflea1RUB6iF6VMLm5s0W2c06JaGpE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746195377; c=relaxed/simple; bh=dCYVCO1vtkLYx7vAZrPQAhu5G1cuqhnltAq2e0QQxrE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=czS1EIuCbZbVHyU+LqDnzYHMkSMZNVlobGqF4gewHKrf4qrj1JNevlgfJ8q8a2NphoUKT1Rca4QUuhVUpOYhBe0U6OSagr0bwJlRg03YhxM//8A2Fks2XTUAKKymoVbFD1lLaq+ok6go4IK57mcfY/rltSM02U6oy33yrFmjX1w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=H1T0IDdU; 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="H1T0IDdU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2509CC4CEE4; Fri, 2 May 2025 14:16:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746195376; bh=dCYVCO1vtkLYx7vAZrPQAhu5G1cuqhnltAq2e0QQxrE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=H1T0IDdUs2GpQ6Um8nkxuc0HNqKe9Bep14ng4U7wFRSl0W3rdF/O9yDV6+XiJYLlO zuFH4YfSkd0Jaze7J24bDwJj4XSyxUmEOhQQ5uK+e9J+rS1/j+/EWUiZhF5gstU6RK rtOZx1ImKQ0eCTpzWIAHqI05ebUQpnd0+E+tyW0I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37798: codel: remove sch->q.qlen check before qdisc_tree_reduce_backlog() Date: Fri, 2 May 2025 16:16:12 +0200 Message-ID: <2025050212-CVE-2025-37798-1d06@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=2869; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=G5LZ+ryGxdvkGBaxGuY2VNGxwh+hOGCAOcOlO3ePdXA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkil9fsNtrucPWNTrPT2w8TXMr1RRfIFc57fzayet3bv pBnJx9pdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBNtmSYK3fw87m/fMuS1mYv bJvsqFD0zXtBAcOCfVrlDkWvRWbMcosOOn/D82qA54VfAA== 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: codel: remove sch->q.qlen check before qdisc_tree_reduce_backlog() After making all ->qlen_notify() callbacks idempotent, now it is safe to remove the check of qlen!=0 from both fq_codel_dequeue() and codel_qdisc_dequeue(). The Linux kernel CVE team has assigned CVE-2025-37798 to this issue. Affected and fixed versions =========================== Issue introduced in 3.5 with commit 76e3cc126bb223013a6b9a0e2a51238d1ef2e409 and fixed in 6.1.135 with commit 829c49b6b2ff45b043739168fd1245e4e1a91a30 Issue introduced in 3.5 with commit 76e3cc126bb223013a6b9a0e2a51238d1ef2e409 and fixed in 6.6.88 with commit 2f9761a94bae33d26e6a81b31b36e7d776d93dc1 Issue introduced in 3.5 with commit 76e3cc126bb223013a6b9a0e2a51238d1ef2e409 and fixed in 6.12.24 with commit 4d55144b12e742404bb3f8fee6038bafbf45619d Issue introduced in 3.5 with commit 76e3cc126bb223013a6b9a0e2a51238d1ef2e409 and fixed in 6.13.12 with commit e73c838c80dccb9e4f19becc11d9f3cb4a27d483 Issue introduced in 3.5 with commit 76e3cc126bb223013a6b9a0e2a51238d1ef2e409 and fixed in 6.14.3 with commit a57fe60ef4cf96bfbb6b58397ec28bdb5a5c6b31 Issue introduced in 3.5 with commit 76e3cc126bb223013a6b9a0e2a51238d1ef2e409 and fixed in 6.15-rc2 with commit 342debc12183b51773b3345ba267e9263bdfaaef 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-37798 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_codel.c net/sched/sch_fq_codel.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/829c49b6b2ff45b043739168fd1245e4e1a91a30 https://git.kernel.org/stable/c/2f9761a94bae33d26e6a81b31b36e7d776d93dc1 https://git.kernel.org/stable/c/4d55144b12e742404bb3f8fee6038bafbf45619d https://git.kernel.org/stable/c/e73c838c80dccb9e4f19becc11d9f3cb4a27d483 https://git.kernel.org/stable/c/a57fe60ef4cf96bfbb6b58397ec28bdb5a5c6b31 https://git.kernel.org/stable/c/342debc12183b51773b3345ba267e9263bdfaaef