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 B58F734320F for ; Mon, 15 Sep 2025 14:51:23 +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=1757947883; cv=none; b=KgMR6kYUcg4X90Wm18btkQ9V0v8vXonq3eV+4ojwcP0ZgaGgGhoivVKy3O4dZyEOEqtaCp0fGPN/iEaV5m65k2v44eibviQl3Uk8uUFdK/VDy3pdp16fZgZEYG+06JMSGYep6Dq9sjWrhLDkJU/LgvR8180cJCOmQGZu9kNzRAw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757947883; c=relaxed/simple; bh=LKecZYvfVwUUVam7wUV04mEgkoMJmeToUmQdLFca6x0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PrgYhcmYwR/DhBViIJ+RqWEBpc/PC51GsCNlP4nKNV8IFI0OitOQMsj9/u0Pob9pRf5B7iKnYFrtuOHFF3BOwHDWDFvyUcgmFA1yg30Bye0URCv/gYngmdDdR0gDWC7WT3RCHqiDwFbjabfnbl6AqG+HGLmhaF6rOshnBA0EUT4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=M2zAf+pV; 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="M2zAf+pV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA159C4CEF5; Mon, 15 Sep 2025 14:51:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757947883; bh=LKecZYvfVwUUVam7wUV04mEgkoMJmeToUmQdLFca6x0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=M2zAf+pVPFd+Tio/VlWGheMMSnQvn9X7qXXBjfL0GpIzb6l2hjv1TiEAYVUgZ29h1 cjoujXwlruGboXefYavtejnR2JQF688U5XyNxoa2hdbLAU2uOfZu0C+N2WakeECg7d SmnLs/h577FmPAWVOwxjsv8g7bWsHRoqgqH0MRRc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50329: block, bfq: fix uaf for bfqq in bfq_exit_icq_bfqq Date: Mon, 15 Sep 2025 16:49:06 +0200 Message-ID: <2025091554-CVE-2022-50329-58ac@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=2421; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HAWNnqzospYG1Toj/CDelMiwFNc/JGVdU1tJqSg/Sb8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkn1MPNa/jnrWM+l8HJvHFbZ/hS749N29L173/vSlNOr L+zdrV3RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk8mOG+ZUSdU1/lh1edP1u qMOW3at35WXz7mSYKz39WoCMRJv5m3SNKwdN7nU+MVjADAA= 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: block, bfq: fix uaf for bfqq in bfq_exit_icq_bfqq Commit 64dc8c732f5c ("block, bfq: fix possible uaf for 'bfqq->bic'") will access 'bic->bfqq' in bic_set_bfqq(), however, bfq_exit_icq_bfqq() can free bfqq first, and then call bic_set_bfqq(), which will cause uaf. Fix the problem by moving bfq_exit_bfqq() behind bic_set_bfqq(). The Linux kernel CVE team has assigned CVE-2022-50329 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.86 with commit 094f3d9314d67691cb21ba091c1b528f6e3c4893 and fixed in 5.15.87 with commit 7949b0df3dd9f4817ed4a4e989fa9ee81df6205f Issue introduced in 6.0.16 with commit b22fd72bfebda3956efc4431b60ddfc0a51e03e0 and fixed in 6.0.17 with commit cfe5b38c37720313eff0dec5517442c7ab3c9a20 Issue introduced in 6.1.2 with commit 761564d93c8265f65543acf0a576b32d66bfa26a and fixed in 6.1.3 with commit 1ed959fef5b1c6f1a7a3fbea543698c30ebd6678 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-50329 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/1425f1bb5df5239021fd09ebc2a5e8070e705d36 https://git.kernel.org/stable/c/7949b0df3dd9f4817ed4a4e989fa9ee81df6205f https://git.kernel.org/stable/c/cfe5b38c37720313eff0dec5517442c7ab3c9a20 https://git.kernel.org/stable/c/1ed959fef5b1c6f1a7a3fbea543698c30ebd6678 https://git.kernel.org/stable/c/246cf66e300b76099b5dbd3fdd39e9a5dbc53f02