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 3A7AD274B37 for ; Thu, 4 Sep 2025 15:35:03 +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=1757000103; cv=none; b=SEJVWCpbjmz2U3a4G6sDvkkyEowvJ0TPKBO7Uu+uXbpB++7wf16jbIqucB1X5mRL4K6YTniB++nvBfuJjPrn1Iv5NFam5cyKvX23A+4dJMlaeLY5yFVHdZFr6yvW/0jv7cW/ehghfmTf6JYSre2wEt10wq8WfgR+xDHCZJuWXAk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757000103; c=relaxed/simple; bh=Qj+l0bdey3Jok76VdiYG15DI8dfA+5Vxa7tUuK37yqQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nYaI8p4DeCGsC2Kl1SJdnzhM29XH0Q7KweoSzKOdICaHx1kscxWK6MliExR2lrnj3H66tkwmAKjUS0fEH1NGBkLQ+/yqf9ECKCQH7/dQbNwoj4UQ5Ax3Hg/NdhSb9jfUcXzfPLFS0PSKpniTOPXAhh6Bt1YZ/ZV1Bn+hNt3zuXc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Wk0A6KYT; 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="Wk0A6KYT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7FFFC4CEF0; Thu, 4 Sep 2025 15:35:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757000103; bh=Qj+l0bdey3Jok76VdiYG15DI8dfA+5Vxa7tUuK37yqQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Wk0A6KYT/sgd9T+YI84Pv5G4mrKDf06GnrqzDCJeYDnrFEn/9JwbRME/9RoiJtEbu /0ZeXZ5GkHd+xyy4IyS4OulSCwrobjuzszOTS+TEfwU/46jzFAAWcVcYvF/7912ZWL XAsku6tDQhBxND4r80WA3gbJR7Qcccio/qt98SVY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38719: net: hibmcge: fix the division by zero issue Date: Thu, 4 Sep 2025 17:33:24 +0200 Message-ID: <2025090459-CVE-2025-38719-16b4@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=2275; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7Zoi9ibuAeUrpYnOYBzJo6bAuwcxqA0GAf3UG0tevTg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk7N2qz1t4MvyIQz3F3irNB1Xq3k2+/3d+VFHPKYOfrt 5o1+z+Kd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEtCIZFuzNypk0OXGaiAW3 VPWUy5wcF7MX72WYw2OYp2e1xix9f7XbvlNmRd1NcarbAQ== 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: hibmcge: fix the division by zero issue When the network port is down, the queue is released, and ring->len is 0. In debugfs, hbg_get_queue_used_num() will be called, which may lead to a division by zero issue. This patch adds a check, if ring->len is 0, hbg_get_queue_used_num() directly returns 0. The Linux kernel CVE team has assigned CVE-2025-38719 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 40735e7543f94fc88f58d94fd5f88daa4a2f2c6e and fixed in 6.15.11 with commit c945e1ad4f3b77166a3215dabc0c6c980d4a9c73 Issue introduced in 6.13 with commit 40735e7543f94fc88f58d94fd5f88daa4a2f2c6e and fixed in 6.16.2 with commit 475e06113c615dafd44262d6d6bd37786f7f4206 Issue introduced in 6.13 with commit 40735e7543f94fc88f58d94fd5f88daa4a2f2c6e and fixed in 6.17-rc2 with commit 7004b26f0b64331143eb0b312e77a357a11427ce 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-38719 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: drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.h 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/c945e1ad4f3b77166a3215dabc0c6c980d4a9c73 https://git.kernel.org/stable/c/475e06113c615dafd44262d6d6bd37786f7f4206 https://git.kernel.org/stable/c/7004b26f0b64331143eb0b312e77a357a11427ce