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 7B74B2D63F1 for ; Fri, 4 Jul 2025 13:42: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=1751636545; cv=none; b=hah0YFHkuGVtfz+8xnQQLo1l51yqDaXgWPmH2hC9xsFN5q+gGAp+DmGciP0cFMWKSH9HcMK2v+iJ2oiOmq9dHiNt6pWByN2UusntSp2pTv5mdidB+xXivCT3nj74kS4DWqEetm1+Oc4457dYYJW4eoJwxsYtsxARulfcFDqUDpQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751636545; c=relaxed/simple; bh=uUMIoLOLutXT6ieUErleMI546iSMa19uHqHe5PvdQ7k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TZGVVdvzw4LXu1MSZThPERb5eiQX1YNFCYq2NGCJ1H6BXh7xCQnsSULTYc+5dlE0SB1jjPUYvrN2lXCsHRBDpeFW3cNNeS+MHLYX3axF37WpuOMMsFEAzDj3bURdDRDAkAYmEYl459YigOiNEhe86lqzrow/Fn5POMsHGzvbjXI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RAAN6fRa; 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="RAAN6fRa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 575C4C4CEE3; Fri, 4 Jul 2025 13:42:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751636545; bh=uUMIoLOLutXT6ieUErleMI546iSMa19uHqHe5PvdQ7k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RAAN6fRaCUT2lpLGBRMpNF0IjVT1hUmFXkP3MDd+Kab6F0rHf5hkOulXAsPplaFoz g3Mf/G210CgYAgKCyle7CpJZW2Z5Roy4Gq3KIbAgKC86rCuyppXSAlZC0cwkrXoAdn rkMrDv1fahgOtWqbbARdn4ErIss8gzBjGJFxmJ2c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38193: net_sched: sch_sfq: reject invalid perturb period Date: Fri, 4 Jul 2025 15:37:22 +0200 Message-ID: <2025070415-CVE-2025-38193-0fb1@gregkh> X-Mailer: git-send-email 2.50.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=3411; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HF3zZJVKA2CwamFmoA7sdQn+iAG98v41Tupt/uP/fCk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnpN7lTPBqnZckpT7i9QiFyificr5Un3aSE9+5gXJPZy verZ41SRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk5U6GeZqXrjU8fxr7dOZz V8Ny6dyW2l8dOxgWHExd1ZdpPUu0T02ieK9HXZ5YkLMYAA== 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_sfq: reject invalid perturb period Gerrard Tai reported that SFQ perturb_period has no range check yet, and this can be used to trigger a race condition fixed in a separate patch. We want to make sure ctl->perturb_period * HZ will not overflow and is positive. tc qd add dev lo root sfq perturb -10 # negative value : error Error: sch_sfq: invalid perturb period. tc qd add dev lo root sfq perturb 1000000000 # too big : error Error: sch_sfq: invalid perturb period. tc qd add dev lo root sfq perturb 2000000 # acceptable value tc -s -d qd sh dev lo qdisc sfq 8005: root refcnt 2 limit 127p quantum 64Kb depth 127 flows 128 divisor 1024 perturb 2000000sec Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) backlog 0b 0p requeues 0 The Linux kernel CVE team has assigned CVE-2025-38193 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.186 with commit 956b5aebb349449b38d920d444ca1392d43719d1 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.142 with commit b11a50544af691b787384089b68f740ae20a441b Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.95 with commit 0357da9149eac621f39e235a135ebf155f01f7c3 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.35 with commit f9b97d466e6026ccbdda30bb5b71965b67ccbc82 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.15.4 with commit 590b2d7d0beadba2aa576708a05a05f0aae39295 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.16-rc2 with commit 7ca52541c05c832d32b112274f81a985101f9ba8 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-38193 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_sfq.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/956b5aebb349449b38d920d444ca1392d43719d1 https://git.kernel.org/stable/c/b11a50544af691b787384089b68f740ae20a441b https://git.kernel.org/stable/c/0357da9149eac621f39e235a135ebf155f01f7c3 https://git.kernel.org/stable/c/f9b97d466e6026ccbdda30bb5b71965b67ccbc82 https://git.kernel.org/stable/c/590b2d7d0beadba2aa576708a05a05f0aae39295 https://git.kernel.org/stable/c/7ca52541c05c832d32b112274f81a985101f9ba8