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 7327B1A707A for ; Thu, 27 Mar 2025 16:44:45 +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=1743093887; cv=none; b=G6q5U466SK6DBrvirypT6blCp53Vd/0vprnVa1cbMhpORFxIMLNJa/75BsqpRR8sIERCI4BiaSy9+2RhAsDQq97qHL6PpdTyofeQ7qMPfDJi/kNzx6F0minbO20Yrfj2PHdSiwevvjcVtc7orFK+LCT5ZpNVSb7qZiUw/0ZIlk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093887; c=relaxed/simple; bh=2cdWaPWRgyZ0ELeuNAk+mjC4MFjyEF0O/rL92cSr+3I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tGtjocDuj/RT6S0Ed+t7Kv7GcclcHTaSzAsgSZfJ38fnppMHpvX8fEfiN27UojheIGko3TxcoyhvPTOavfV81N/nmC3WXp22V761jO1Pi5by5CgLZVYbQ5Gjwn1wpwBFpJDWRq0iK7+w2UKuA4WiAjtVnVcfYXciHbGmR06IdxE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MdXbxmvQ; 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="MdXbxmvQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A0D3C4CEDD; Thu, 27 Mar 2025 16:44:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093885; bh=2cdWaPWRgyZ0ELeuNAk+mjC4MFjyEF0O/rL92cSr+3I=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MdXbxmvQvMHEgkS5ukveBf/pGpSk8Aw3cM7lM5B3LbXXkcBJfjSKYJyKRg2B+/8Ff 1H+p5o8gzFnfK7ehE84nvmvr68fYwohPDgY0p5bvdGt8h74k4sVUITK/XqY2c+on5h rCUad1+1qO2U65chpjav7W7pe5+myq8f8rkFkDv8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52983: block, bfq: fix uaf for bfqq in bic_set_bfqq() Date: Thu, 27 Mar 2025 17:43:30 +0100 Message-ID: <2025032706-CVE-2023-52983-4a16@gregkh> X-Mailer: git-send-email 2.49.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=2302; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2cdWaPWRgyZ0ELeuNAk+mjC4MFjyEF0O/rL92cSr+3I=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG6ReiDz99tlzxrptK+q+tW3Rj2yUkN73aENfVfb+b ZYPTv5M7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJVJYxzK+wmuKwSGRqyM3D V2dyle1KON/V6cUw38Hv+VF9h5s3J9a83P/yp8DJnhuPrAE= 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: block, bfq: fix uaf for bfqq in bic_set_bfqq() After commit 64dc8c732f5c ("block, bfq: fix possible uaf for 'bfqq->bic'"), bic->bfqq will be accessed in bic_set_bfqq(), however, in some context bic->bfqq will be freed, and bic_set_bfqq() is called with the freed bic->bfqq. Fix the problem by always freeing bfqq after bic_set_bfqq(). The Linux kernel CVE team has assigned CVE-2023-52983 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.86 with commit 094f3d9314d67691cb21ba091c1b528f6e3c4893 and fixed in 5.15.93 with commit 511c922c5bf6c8a166bea826e702336bc2424140 Issue introduced in 6.1.2 with commit 761564d93c8265f65543acf0a576b32d66bfa26a and fixed in 6.1.11 with commit cb1876fc33af26d00efdd473311f1b664c77c44e Issue introduced in 6.0.16 with commit b22fd72bfebda3956efc4431b60ddfc0a51e03e0 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-52983 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-cgroup.c 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/7f77f3dab5066a7c9da73d72d1eee895ff84a8d5 https://git.kernel.org/stable/c/511c922c5bf6c8a166bea826e702336bc2424140 https://git.kernel.org/stable/c/cb1876fc33af26d00efdd473311f1b664c77c44e https://git.kernel.org/stable/c/b600de2d7d3a16f9007fad1bdae82a3951a26af2