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 31E952E36FD for ; Tue, 7 Oct 2025 15:20:56 +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=1759850456; cv=none; b=RxRpot5GWuj5tsiuXXOIN/1youRJHI8Tv9SuPcp/j8j6+fhZqUgTMBv1BmHQRuUaUf4ct/A6KwhG6gelAk4MK7pWcaBjBxc/oCRhfCZnM/BlnQf3EjcxErTyEt0VN/6kMl+vbCMphRDCmgPS80/8Nt6v0OeagtwslvTjOWNE4Dw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850456; c=relaxed/simple; bh=h5BiTTbn1VVU4VlsAg3FoYh9mMYTyBmsq5aFFn4NuhQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ql6Mu5qne/weBAwtIQ+RD+T2Nexueif+2XtsLbpivj6AIibo9WaLEPPcU+9mzXN/UZgGy3KJArEMA1eMkRKaatNd9H47wC/VW9kS4CJcUxjFA+xX1SIN/UcCucYU4IYWoSmHUz07lfCltxO4tNDtouC+5h5BakdHQpqrNOHnD/M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ahgaj277; 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="ahgaj277" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6C75C4CEF1; Tue, 7 Oct 2025 15:20:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850456; bh=h5BiTTbn1VVU4VlsAg3FoYh9mMYTyBmsq5aFFn4NuhQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ahgaj277gFfALoEqZVwf0wqEu7Q0ObC/KGJBJACmEhlI9i8Lfx8QW8CWFICDtbOVq NlLZziZPgPyuZGmTvGk8H32QsKv5OUZD6Rpy51z1ZuNJw98B4+3T5MorMrueRYxYaU phqqhca5MB0CI28OrkmvmC5+q2s6lwxUTyDgGw4Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53624: net/sched: sch_fq: fix integer overflow of "credit" Date: Tue, 7 Oct 2025 17:19:29 +0200 Message-ID: <2025100711-CVE-2023-53624-7a7c@gregkh> X-Mailer: git-send-email 2.51.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=3318; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bNqH9hhIATa44rhmHyUUwgxfvFOOYE0DfmrzxEKJ064=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9fPbL872lJZrXf2N3W3t0t3hH04p7Cu8dCouheluE i/Lg+2NHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRVQwM83SNg56VOFQrp2Q6 nN4soFobWqqjyTCHJ+FJ6+F3psfbn6fOecln8uzWl8tzAQ== 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_fq: fix integer overflow of "credit" if sch_fq is configured with "initial quantum" having values greater than INT_MAX, the first assignment of "credit" does signed integer overflow to a very negative value. In this situation, the syzkaller script provided by Cristoph triggers the CPU soft-lockup warning even with few sockets. It's not an infinite loop, but "credit" wasn't probably meant to be minus 2Gb for each new flow. Capping "initial quantum" to INT_MAX proved to fix the issue. v2: validation of "initial quantum" is done in fq_policy, instead of open coding in fq_change() _ suggested by Jakub Kicinski The Linux kernel CVE team has assigned CVE-2023-53624 to this issue. Affected and fixed versions =========================== Issue introduced in 3.12 with commit afe4fd062416b158a8a8538b23adc1930a9b88dc and fixed in 5.10.180 with commit 4b8a05e3801661a0438fcd0cdef181030d966a5a Issue introduced in 3.12 with commit afe4fd062416b158a8a8538b23adc1930a9b88dc and fixed in 5.15.111 with commit d0b43125ec892aeb1b03e5df5aab595097da225a Issue introduced in 3.12 with commit afe4fd062416b158a8a8538b23adc1930a9b88dc and fixed in 6.1.28 with commit 4fbefeab88c6e79753a25099d455d3d59d2946b4 Issue introduced in 3.12 with commit afe4fd062416b158a8a8538b23adc1930a9b88dc and fixed in 6.2.15 with commit 85f24cb2f10b2b0f2882e5786a09b4790bb3a0ad Issue introduced in 3.12 with commit afe4fd062416b158a8a8538b23adc1930a9b88dc and fixed in 6.3.2 with commit 2322462d6f9ad4874f4e3c63df3b5cc00cb1acbd Issue introduced in 3.12 with commit afe4fd062416b158a8a8538b23adc1930a9b88dc and fixed in 6.4 with commit 7041101ff6c3073fd8f2e99920f535b111c929cb 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-2023-53624 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_fq.c tools/testing/selftests/tc-testing/tc-tests/qdiscs/fq.json 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/4b8a05e3801661a0438fcd0cdef181030d966a5a https://git.kernel.org/stable/c/d0b43125ec892aeb1b03e5df5aab595097da225a https://git.kernel.org/stable/c/4fbefeab88c6e79753a25099d455d3d59d2946b4 https://git.kernel.org/stable/c/85f24cb2f10b2b0f2882e5786a09b4790bb3a0ad https://git.kernel.org/stable/c/2322462d6f9ad4874f4e3c63df3b5cc00cb1acbd https://git.kernel.org/stable/c/7041101ff6c3073fd8f2e99920f535b111c929cb