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 8722A347FEC for ; Wed, 29 Oct 2025 13:37:29 +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=1761745049; cv=none; b=jeLXd5uqfExJ3/yJV4klbeCsEFKjjgw85iT9awL3VP3/rC8tdNg5OZO884r46nKB+7aJisGRommXzQdwXzMfq4gl3XrOX5s20XFRW53Uxpqh3hTPiT+05zWKDtTDVXi3DyYhSP4wGsb8d5eCEgrq1Lf+AVYhGsiC0h8Vb6KIFbM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761745049; c=relaxed/simple; bh=nbi5jhh8njntdKJGKPaeFIpXrIhKKoVhsTMcbT6NjK8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PPNl+2akv18CwIrqUhDzD1P5E8vYrLex2l6YviOI9dXJdTbM3btgVzZc+VFz561fH1Y119U1t79sdZCYl39EkwsOZXxOWjaGCH2GBN8xkorr7N1nS8cIY5zltjlld10dJV48OdU71qC7pUKcC39514WsjRbIvpW6to658T7Yii0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0b23RjEe; 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="0b23RjEe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C53D2C4CEFD; Wed, 29 Oct 2025 13:37:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761745049; bh=nbi5jhh8njntdKJGKPaeFIpXrIhKKoVhsTMcbT6NjK8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0b23RjEekEIEUinPgjaFJ6v1GDzS8K4n9P/tGRqnQWNrOPpfyn2Q0qZIz+mw/P6UQ AYnvFu7HJLa/DCARBlf421ycCKfxiSWWlIXZFSB7YPhyqxHbPhA+9wFmQgLXPLs+PW pwlIuV488f6fHpARgiab0TpzqgP2keostktDzq9w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40083: net/sched: sch_qfq: Fix null-deref in agg_dequeue Date: Wed, 29 Oct 2025 14:37:09 +0100 Message-ID: <2025102908-CVE-2025-40083-1481@gregkh> X-Mailer: git-send-email 2.51.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=2046; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RVo8XudRgutdZ51GeWOPpFjQBJ7v7okM/8NfYSBg368=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlMEi3hq+p2WW8zXiv/Qbh+XnTysSOnwlku6V+xFbFpy HpYULagI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACay6jzD/OrW1ElZS5gkefkW LveedXne0c3nzzHMT3kkYKB/cd6ZS0rtL+2XrGvODcg7AAA= 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: sch_qfq: Fix null-deref in agg_dequeue To prevent a potential crash in agg_dequeue (net/sched/sch_qfq.c) when cl->qdisc->ops->peek(cl->qdisc) returns NULL, we check the return value before using it, similar to the existing approach in sch_hfsc.c. To avoid code duplication, the following changes are made: 1. Changed qdisc_warn_nonwc(include/net/pkt_sched.h) into a static inline function. 2. Moved qdisc_peek_len from net/sched/sch_hfsc.c to include/net/pkt_sched.h so that sch_qfq can reuse it. 3. Applied qdisc_peek_len in agg_dequeue to avoid crashing. The Linux kernel CVE team has assigned CVE-2025-40083 to this issue. Affected and fixed versions =========================== Fixed in 6.16 with commit dd831ac8221e691e9e918585b1003c7071df0379 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-40083 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/pkt_sched.h net/sched/sch_api.c net/sched/sch_hfsc.c net/sched/sch_qfq.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/dd831ac8221e691e9e918585b1003c7071df0379