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 7A4101A5B95 for ; Wed, 26 Feb 2025 01:57:54 +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=1740535074; cv=none; b=PZpJOGW6b+jxKKo4GC+F0tWyerDjNQ7nw6CXtqWlgPfrFz/cycJbHc/hNRZvMhDp3iArrZeS/YXYqqIVh9gHm4ofTzQ1XkSDu0dhaDahYxGpcBW4y1TSx/7mSN6GONfHA1sBocEfU5lewJSrLW52UEWXMO+h7uJbTQbhyrfT6Bo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535074; c=relaxed/simple; bh=21FlyPD2qp739xZA/8ohvbl4WhKFaUQZeyNv1cj1Vr8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=knXjjoZIpjJ4G6v3et3wbDUtj3CSagRVWz76zI2aWG65UoXOHCg13DSZAalIPX+VwCz6QPGwXxoQs3HtWuUeQV3CVcnVOROyeSRs6eNnkcA5RiLVDpIMayKkEETQjUG88vPxUhrr/oOnwMNl++T0+E8JCKL+D0ha4mqZzv07sGU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UnYhbwxI; 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="UnYhbwxI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B01CC4CEE6; Wed, 26 Feb 2025 01:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535074; bh=21FlyPD2qp739xZA/8ohvbl4WhKFaUQZeyNv1cj1Vr8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UnYhbwxINP7ztHyPxy+LaT3xAAedIjvQzaTy7P5ohDu/Ssh/xKGWMFnEeyUeKNz/+ hnM2qCs+QPyqa524unFikcVgfzVuM6ZrXoSEY+1OpKa6qzitlba/L1O1WF263adnEZ lZFohzZ5+vLtEHFHIKt+j8SYgh/uQHPy2KHPypQM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47646: Revert "Revert "block, bfq: honor already-setup queue merges"" Date: Wed, 26 Feb 2025 02:53:57 +0100 Message-ID: <2025022648-CVE-2021-47646-d726@gregkh> X-Mailer: git-send-email 2.48.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=3002; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=21FlyPD2qp739xZA/8ohvbl4WhKFaUQZeyNv1cj1Vr8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SnSEiiynhfPUCRnNSPL5LJMo92HvrrSfBULVaXd4d bmOiah3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwERs5jPMz7rMv7emLpTDPOy0 m+R7mXXuUipGDAtWLPU9vyXp57x57osTXpxOXr+uQHgdAA== 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: Revert "Revert "block, bfq: honor already-setup queue merges"" A crash [1] happened to be triggered in conjunction with commit 2d52c58b9c9b ("block, bfq: honor already-setup queue merges"). The latter was then reverted by commit ebc69e897e17 ("Revert "block, bfq: honor already-setup queue merges""). Yet, the reverted commit was not the one introducing the bug. In fact, it actually triggered a UAF introduced by a different commit, and now fixed by commit d29bd41428cf ("block, bfq: reset last_bfqq_created on group change"). So, there is no point in keeping commit 2d52c58b9c9b ("block, bfq: honor already-setup queue merges") out. This commit restores it. [1] https://bugzilla.kernel.org/show_bug.cgi?id=214503 The Linux kernel CVE team has assigned CVE-2021-47646 to this issue. Affected and fixed versions =========================== Fixed in 4.19.238 with commit f990f0985eda59d4f29fc83fcf300c92b1225d39 Fixed in 5.4.189 with commit 931aff627469a75c77b9fd3823146d0575afffd6 Fixed in 5.10.110 with commit cc051f497eac9d8a0d816cd4bffa3415f2724871 Fixed in 5.15.33 with commit 65d8a737452e88f251fe5d925371de6d606df613 Fixed in 5.16.19 with commit abc2129e646af7b43025d90a071f83043f1ae76c Fixed in 5.17.2 with commit 4083925bd6dc89216d156474a8076feec904e607 Fixed in 5.18 with commit 15729ff8143f8135b03988a100a19e66d7cb7ecd 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-2021-47646 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/bfq-iosched.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/f990f0985eda59d4f29fc83fcf300c92b1225d39 https://git.kernel.org/stable/c/931aff627469a75c77b9fd3823146d0575afffd6 https://git.kernel.org/stable/c/cc051f497eac9d8a0d816cd4bffa3415f2724871 https://git.kernel.org/stable/c/65d8a737452e88f251fe5d925371de6d606df613 https://git.kernel.org/stable/c/abc2129e646af7b43025d90a071f83043f1ae76c https://git.kernel.org/stable/c/4083925bd6dc89216d156474a8076feec904e607 https://git.kernel.org/stable/c/15729ff8143f8135b03988a100a19e66d7cb7ecd