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 71C7E13212C for ; Thu, 30 May 2024 15:29:58 +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=1717082998; cv=none; b=Y4VOySh5ccSrfHrr1NEHy1Viwt203YdDQ4v7nEP9gYSgFTysBucffOIdvIHDcdA22H8kYiiXU49L70em1xB/X0k7ww9/wBizlWiEXXKFRTEOHOAWFWWrdL9un7XFkWSm17ANf0RWZaf4+gwdJpht2xmC8DnE+q/109UE3IVHwTs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717082998; c=relaxed/simple; bh=BXEvMUuYjRqLzu10i120pHElN7lYtwdrb/KPli4+QLo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MTuRGjeQsROQ2nGlxaoof3wP3tKD9AJzvfmuF/0FSkGmc9xz8z0w0NPCXg0/D6s14F7clt0LggppP0ZDo+3Vkdp6aKFG+gLyl0+scxU8JeJhmP1TkGZQhGeMJemW2V23RQYoVVE6PmmzrN/2q2M9nbT8Pfs0Uf8yVJRABFZTmSc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=c396VaPi; 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="c396VaPi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 049F4C2BBFC; Thu, 30 May 2024 15:29:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717082998; bh=BXEvMUuYjRqLzu10i120pHElN7lYtwdrb/KPli4+QLo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=c396VaPiMd1VjKwxmNWaaucTRrzRkLwH9P+SgTZL3fx1lqQ+na6MznoWk3OdVuSad 6amAHeD1rpZfgcLocXiXmV9YwStr844qUqPkXo38ObxZnIL5kC8TmHV2sQ1RkmFuPx nfQQWJO6QOzGc/joIOdUwVAp/EvfDM5NVlB3eMYQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36908: blk-iocost: do not WARN if iocg was already offlined Date: Thu, 30 May 2024 17:29:00 +0200 Message-ID: <2024053037-CVE-2024-36908-031c@gregkh> X-Mailer: git-send-email 2.45.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=2557; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BXEvMUuYjRqLzu10i120pHElN7lYtwdrb/KPli4+QLo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRs1U5fsbZLlg3RffpCh2VMLlHV45pPvutFLY0RyZri dLGHkm1jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIr6cMC05rzFv3dPrS+PL/ n/XNNkbMs/+zo5VhftGuF2ta7LNPlHlq/pBlzLV9cvWUHwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: blk-iocost: do not WARN if iocg was already offlined In iocg_pay_debt(), warn is triggered if 'active_list' is empty, which is intended to confirm iocg is active when it has debt. However, warn can be triggered during a blkcg or disk removal, if iocg_waitq_timer_fn() is run at that time: WARNING: CPU: 0 PID: 2344971 at block/blk-iocost.c:1402 iocg_pay_debt+0x14c/0x190 Call trace: iocg_pay_debt+0x14c/0x190 iocg_kick_waitq+0x438/0x4c0 iocg_waitq_timer_fn+0xd8/0x130 __run_hrtimer+0x144/0x45c __hrtimer_run_queues+0x16c/0x244 hrtimer_interrupt+0x2cc/0x7b0 The warn in this situation is meaningless. Since this iocg is being removed, the state of the 'active_list' is irrelevant, and 'waitq_timer' is canceled after removing 'active_list' in ioc_pd_free(), which ensures iocg is freed after iocg_waitq_timer_fn() returns. Therefore, add the check if iocg was already offlined to avoid warn when removing a blkcg or disk. The Linux kernel CVE team has assigned CVE-2024-36908 to this issue. Affected and fixed versions =========================== Fixed in 6.6.31 with commit 1c172ac7afe4 Fixed in 6.8.10 with commit 14b3275f93d4 Fixed in 6.9 with commit 01bc4fda9ea0 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-2024-36908 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-iocost.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/1c172ac7afe4442964f4153b2c78fe4e005d9d67 https://git.kernel.org/stable/c/14b3275f93d4a0d8ddc02195bc4e9869b7a3700e https://git.kernel.org/stable/c/01bc4fda9ea0a6b52f12326486f07a4910666cf6