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 DC71E4C97 for ; Sat, 17 Aug 2024 09:12:24 +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=1723885944; cv=none; b=es3H2/ISSIT7Tj9GAGjlKMCv7WlaT7XWqkLzLnuxPZKPRz2erNn/VAFRZO9Oj2JT+utMSPUc/DzQiJZ3NA8E8h3RYde/W9HI5NHHDyHoeC/sAp6NcKGqNyWNJ/CwJlJBuUP8xq5EHygz9G02YsGOociP+ReT35f3BORa7gwQ55k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723885944; c=relaxed/simple; bh=lw/HoMLhG7iFYMbgJTB5yiPUTGHMewqvr72K8MCy7Zk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BOeWtNREnDNYrV+p4asrxV3tYqg8upmsVUHbaWl1ytvH4kZmSwPPxPbS7ZgB7yaQZ81hu3doIi72Bac2NWXVKSmMSRAZg8paB4hOo3fTYn/tpowxeCOGqlYy374KV7FesXTZMdGgf4NDDV83kM0ZxvzTNWeV/a+ITeFisgE6HgI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fC554Wx+; 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="fC554Wx+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64541C116B1; Sat, 17 Aug 2024 09:12:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723885944; bh=lw/HoMLhG7iFYMbgJTB5yiPUTGHMewqvr72K8MCy7Zk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fC554Wx+X8TCSfQJZnr36QXzlvPc2dPcD/J3rhrL/yA32ETFq9Zg2BDaqHtND9kYY yS1tQGc9t2f3YqgrgWoDEn3JTZ2M+NtbQRVV/vp9YHhBjIZzugmli2CQmJYhe8VO27 C6R03utLAqatjIMEYj/t5OO+MmMsBRnF4GaH+t2Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42306: udf: Avoid using corrupted block bitmap buffer Date: Sat, 17 Aug 2024 11:10:11 +0200 Message-ID: <2024081750-CVE-2024-42306-647c@gregkh> X-Mailer: git-send-email 2.46.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=2716; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lw/HoMLhG7iFYMbgJTB5yiPUTGHMewqvr72K8MCy7Zk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHMu49vWF67c3SxN9/uEv3shRftTEwyXRXzjoq6pN56 U1QEndNRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkfTbDPLWZXbaW/5y4Vq// +fHVp4OvTh7mnMaw4MiJjcu+HZKMS5gguNt4vsnalZPyvgMA 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: udf: Avoid using corrupted block bitmap buffer When the filesystem block bitmap is corrupted, we detect the corruption while loading the bitmap and fail the allocation with error. However the next allocation from the same bitmap will notice the bitmap buffer is already loaded and tries to allocate from the bitmap with mixed results (depending on the exact nature of the bitmap corruption). Fix the problem by using BH_verified bit to indicate whether the bitmap is valid or not. The Linux kernel CVE team has assigned CVE-2024-42306 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.53 with commit 6ac8f2c8362a and fixed in 6.1.103 with commit 271cab2ca006 Issue introduced in 6.3 with commit 1e0d4adf17e7 and fixed in 6.6.44 with commit 57053b3bcf34 Issue introduced in 6.3 with commit 1e0d4adf17e7 and fixed in 6.10.3 with commit 8ca170c39eca Issue introduced in 6.3 with commit 1e0d4adf17e7 and fixed in 6.11-rc1 with commit a90d4471146d Issue introduced in 4.14.326 with commit f862a9049c3f Issue introduced in 4.19.295 with commit 4622cc1b6d86 Issue introduced in 5.4.257 with commit 7648ea9896b3 Issue introduced in 5.10.195 with commit 4ac54312f623 Issue introduced in 5.15.132 with commit 099bf90d7fc4 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-42306 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: fs/udf/balloc.c fs/udf/super.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/271cab2ca00652bc984e269cf1208699a1e09cdd https://git.kernel.org/stable/c/57053b3bcf3403b80db6f65aba284d7dfe7326af https://git.kernel.org/stable/c/8ca170c39eca7cad6e0cfeb24e351d8f8eddcd65 https://git.kernel.org/stable/c/a90d4471146de21745980cba51ce88e7926bcc4f