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 DEAC72FD693 for ; Wed, 22 Oct 2025 13:25:10 +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=1761139511; cv=none; b=bY5gCFBsi54RbKT5IkkL8cMNl5T/1AUlZ11Hw9n80eWVwQB3NA1WNilBvfORZTcv1OoLekzc/AtD8PiDMcPIjhjN1KHlPvphncRecp0T1JRJWxIkvhOIn7NbX1gnv+yHXV+SU07tDHJJ4JDlsuk/1+jd0FyUEt8wIKmEU6rc294= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761139511; c=relaxed/simple; bh=lJ9VSLzFX4DdH0iv068VX1yJUGWBquQwKE/e5Iiu16E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JvcH1Ig6YQmjhEQwlkQ2L9eutgBRBAfVHSwccXBebORiEWULg1FBsOLKfE3EmvuC7wmsK4TRAF353J0HeRyAlA9lhDBaxnLoe2PEQ4oU1Zn40ylsp2uwjzLOBlvs6ciwkBS9E3imF2ffKjEzcv0P26HfsM+EW95GZX35jKzTIig= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cwwbvdx6; 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="cwwbvdx6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6890AC4CEE7; Wed, 22 Oct 2025 13:25:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761139510; bh=lJ9VSLzFX4DdH0iv068VX1yJUGWBquQwKE/e5Iiu16E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cwwbvdx6cAuKfGhhUdZj+3EWd4VQVId38g0tzFIbZyhm1a/z368NhpHfufhNQyFPX TZxo2pD8Ky0b5I+gM0FmEhbe4oeKjMJB70WfeNmQ55aNBeULM8xW57GnC86soTdbvh vFxBWFTAUh0OGbLRlHchNh73Aqa3p7BkUj/PVriY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50580: blk-throttle: prevent overflow while calculating wait time Date: Wed, 22 Oct 2025 15:24:28 +0200 Message-ID: <2025102209-CVE-2022-50580-68e3@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=2216; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1djkXkdjK1x4UFgNgPAIbqEYXPPe4jpSduF2BrFhXSI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk/bv18Ludu5WCq3i3z46KjWqnkfE6V62bHqyN0O/lFn CZ1ZF3piGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImYMzLM07niunLuG+9tWmYv liUzveGZqF/SyTDPQCNs4bpzDg0Sa9X5ki9Zh2j9VzwEAA== 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: blk-throttle: prevent overflow while calculating wait time There is a problem found by code review in tg_with_in_bps_limit() that 'bps_limit * jiffy_elapsed_rnd' might overflow. Fix the problem by calling mul_u64_u64_div_u64() instead. The Linux kernel CVE team has assigned CVE-2022-50580 to this issue. Affected and fixed versions =========================== Fixed in 5.10.150 with commit 19c010ae44f0ce52b5436080492a61a092ee0cf4 Fixed in 5.15.75 with commit 70b2adb1d698fbc63d3b3848c452524dc15872c5 Fixed in 5.19.17 with commit cc6f0855bf8d9b729df28ff443ced7350c380dbd Fixed in 6.0.3 with commit ca67b0563b39e79290c23e509319c178b9ca9104 Fixed in 6.1 with commit 8d6bbaada2e0a65f9012ac4c2506460160e7237a 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-2022-50580 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: block/blk-throttle.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/19c010ae44f0ce52b5436080492a61a092ee0cf4 https://git.kernel.org/stable/c/70b2adb1d698fbc63d3b3848c452524dc15872c5 https://git.kernel.org/stable/c/cc6f0855bf8d9b729df28ff443ced7350c380dbd https://git.kernel.org/stable/c/ca67b0563b39e79290c23e509319c178b9ca9104 https://git.kernel.org/stable/c/8d6bbaada2e0a65f9012ac4c2506460160e7237a