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 F0E7D79F0 for ; Fri, 17 May 2024 14:48:02 +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=1715957283; cv=none; b=drhTgB9u/6mrq1nGWiUJrnkRGZ/SewdIh7WUEJ8RULekZyZj+kBfJd6JhU0gtem4cYa2l+Wj00HrgxhkT6iVOfLHsBVdpd5g05yY64EeD/2EKcfoVB/zqC8ENaGCDu7nFDqWmx9G3kFFwW8PcHHoRX37r4uz50b/NxEHQmnzs3Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715957283; c=relaxed/simple; bh=a5Lh6jJEvMzu5DFwZ26I0D2lrpoL2uN90tQfI5scuXI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ByGZ+MBlvJtONN7u9hK1bHTzjCaNvJ/nsnWVeMJG0cW2lAr2lEdq5zQDKFKvx5K3ozZ7LKXr2oX2/xHQ4Nnn81AXZ2J7hIqbih0YjibagelLn/gw/zUn6zblOTKzFBvIVrzRsj2uAGVnEYBB8be320+JeA9rRFVOjOAn8p8Jos8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VcFDEqLR; 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="VcFDEqLR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79314C2BD10; Fri, 17 May 2024 14:48:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715957282; bh=a5Lh6jJEvMzu5DFwZ26I0D2lrpoL2uN90tQfI5scuXI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VcFDEqLRGBc526egZO/vBIvGacaw8zO31TalnT6EiU/AVyY3QGmBifA5jwPvmBWok aWH1Va8RhpJATcclTeH80ciM33frl2XsJNrbanavHYFVCs2CPmaKuszTReytmKMGT3 aswwDDxctZ43Y6D1PQIlCxue3J3537MWXohZA1KA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35859: block: fix module reference leakage from bdev_open_by_dev error path Date: Fri, 17 May 2024 16:47:52 +0200 Message-ID: <2024051742-CVE-2024-35859-23c9@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=1835; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=a5Lh6jJEvMzu5DFwZ26I0D2lrpoL2uN90tQfI5scuXI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnueXyBISk1rSabtnhVrbnyzOBDRbc9+9MYr6aqXq55b 2RW+vB3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwESu5DHMD/tdkHf+h+WvyM0T dr2r3dl0LCcqmmHB9vRN30Lata4evfE28I3ORJ1dz60lAQ== 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: fix module reference leakage from bdev_open_by_dev error path At the time bdev_may_open() is called, module reference is grabbed already, hence module reference should be released if bdev_may_open() failed. This problem is found by code review. The Linux kernel CVE team has assigned CVE-2024-35859 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit ed5cc702d311 and fixed in 6.8.9 with commit 0e9327c67410 Issue introduced in 6.8 with commit ed5cc702d311 and fixed in 6.9 with commit 9617cd6f24b2 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-35859 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/bdev.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/0e9327c67410b129bf85e5c3a5aaea518328636f https://git.kernel.org/stable/c/9617cd6f24b294552a817f80f5225431ef67b540