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 6A53738947C for ; Mon, 13 Apr 2026 13:41:15 +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=1776087675; cv=none; b=baZtsTF2jQJ7eq9c8n7TjDowbRLUPAL2McnujRhWyv60y0T2aGvC16Tu4U8mFVWOu2iBRgUa/tnkxEOSCGB28XPs+pVFgIzgCZjvOv5DZm6eaY5zlO7jTPafF/gV4zhOpY8dL5u167cmiwvYf7/sNOV1x/VJomAN9MFYoz0gs9Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776087675; c=relaxed/simple; bh=hFHZIJWldOStzw8aLEwIxrcHI9kzj9ypMH3la95XRkc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=c+ssTBIvC9Jun1Jq5n/ELQJ/VCyJdDTnQ+dq/+jS5qV/jWoC9M330TWcfQZiXdez1yFedXnsu87VnLzvWXbtf2UqiKL4eGcmipBvyKcWqhAqBZZESB71vn4WC5jF2N+wcJdXQeK7S2uoG+F5NtWj8xROkWLjBkat69OlPSH90hs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DchW1093; 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="DchW1093" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B771CC2BCAF; Mon, 13 Apr 2026 13:41:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776087675; bh=hFHZIJWldOStzw8aLEwIxrcHI9kzj9ypMH3la95XRkc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=DchW1093JdnTCHNthh7p+O/6k7Ti+wO565Rh+Psm9ffdYPvg8Mgth3F1vjP/z4xyO o5mhZZGqSVwJelM91QYcS90JHUpmOZam5WotISYvIxjxj1LUnWFxXqBxVUsSFTKmaj YzSJKwUv2yBE5UdslxoSG6ZjJoZvvtPboLowPDzc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31423: net/sched: sch_hfsc: fix divide-by-zero in rtsc_min() Date: Mon, 13 Apr 2026 15:40:57 +0200 Message-ID: <2026041356-CVE-2026-31423-ed66@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3335; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=j10IpmHlMnADLoYt9sVFWSVkIOvb/SRdypEhU2rdzU4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJl3PmXYbrm4iKlfWizDqUBL7MitYwFKwYG+LldnW+t+d UiTfmbeEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOZGcyw4NDh1B6FnxY8xR8P Hs7oFFrRxNtixTCbJeol7xrb2zX3Mz79upLkrb+vv7UHAA== 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_hfsc: fix divide-by-zero in rtsc_min() m2sm() converts a u32 slope to a u64 scaled value. For large inputs (e.g. m1=4000000000), the result can reach 2^32. rtsc_min() stores the difference of two such u64 values in a u32 variable `dsm` and uses it as a divisor. When the difference is exactly 2^32 the truncation yields zero, causing a divide-by-zero oops in the concave-curve intersection path: Oops: divide error: 0000 RIP: 0010:rtsc_min (net/sched/sch_hfsc.c:601) Call Trace: init_ed (net/sched/sch_hfsc.c:629) hfsc_enqueue (net/sched/sch_hfsc.c:1569) [...] Widen `dsm` to u64 and replace do_div() with div64_u64() so the full difference is preserved. The Linux kernel CVE team has assigned CVE-2026-31423 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.168 with commit 25b6821884713a31e2b49fb67b0ebd765b33e0a9 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.134 with commit c56f78614e7781aaceca9bd3cb2128bf7d45c3bd Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.81 with commit b9e6431cbea8bb1fae8069ed099b4ee100499835 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.22 with commit 17c1b9807b8a67d676b6dcf749ee932ebaa7f568 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.19.12 with commit d0aefec1b1a1ba2c1d251028dc2c4e5b4ce1fea5 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.0 with commit 4576100b8cd03118267513cafacde164b498b322 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-2026-31423 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_hfsc.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/25b6821884713a31e2b49fb67b0ebd765b33e0a9 https://git.kernel.org/stable/c/c56f78614e7781aaceca9bd3cb2128bf7d45c3bd https://git.kernel.org/stable/c/b9e6431cbea8bb1fae8069ed099b4ee100499835 https://git.kernel.org/stable/c/17c1b9807b8a67d676b6dcf749ee932ebaa7f568 https://git.kernel.org/stable/c/d0aefec1b1a1ba2c1d251028dc2c4e5b4ce1fea5 https://git.kernel.org/stable/c/4576100b8cd03118267513cafacde164b498b322