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 ACE3B145FE4 for ; Sat, 17 Aug 2024 09:24:19 +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=1723886659; cv=none; b=T8xQ2gxggc+E1s1kdytw5srkArspTLPRUF9Vc+7OTRt3hwAHkeCcrxVIfJYViPWYD2kStsaeUn7urpyFz8efkcFDoE0MZkgQzuBESiKoUmD7puzFhu9XtP6O3hFXoEbLx/f/Hsn6Q9ar6HdMC+ggJ5CaKuy83KaZrje4UKo/0Mg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723886659; c=relaxed/simple; bh=udhZ3WY5ioDtGmMWZZNrKAS1fpPB5ek98+c2fdqlBIw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZaTg51x9hoxUOlOb+VHxIaKfnN9IS8kigjXdsYAhDso3WnWLIBUngzt9DK2mGQlPXP8bS8yRCKJzB2p4Cl6M8ejaLy7NjUsep6i8rg/BQLB1qND5Uw27j9XvEk18TGoYwgMXUHMkwa3ZpX3+i28MMPSZ6Ln5o2tiamiZLYV3DZY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p+90axoG; 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="p+90axoG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24C2BC116B1; Sat, 17 Aug 2024 09:24:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723886659; bh=udhZ3WY5ioDtGmMWZZNrKAS1fpPB5ek98+c2fdqlBIw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=p+90axoGj37xXkCQvYl1wiWaNRXrXZWJphncq2qhPt3RwnNde4oKRry2K8Gge+iG9 gcIR+58BpsIQbwoxe+jZgzHCGbNSco5doJaexOB7cKS0+3s3DAKO9AeY9wXEdHY6nv W/bMQ96EYUjG1F1IWuWGmIxPBiZsE0Xh9bHcIVqQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43854: block: initialize integrity buffer to zero before writing it to media Date: Sat, 17 Aug 2024 11:22:58 +0200 Message-ID: <2024081734-CVE-2024-43854-5586@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=2365; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=udhZ3WY5ioDtGmMWZZNrKAS1fpPB5ek98+c2fdqlBIw=; b=kA0DAAIRMUfUDdst+ykByyZiAGbAa9qhAOAUoeB0h6zXGvMEirUjXQIdCbYzzQGmyOZy/R/oE YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmbAa9oACgkQMUfUDdst+yn0WgCghiK9 S4b8bMsVZFjkPQ3WpMf836oAoKdAlJ6EwlNF3KV5HpGXG6QMswgp 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: initialize integrity buffer to zero before writing it to media Metadata added by bio_integrity_prep is using plain kmalloc, which leads to random kernel memory being written media. For PI metadata this is limited to the app tag that isn't used by kernel generated metadata, but for non-PI metadata the entire buffer leaks kernel memory. Fix this by adding the __GFP_ZERO flag to allocations for writes. The Linux kernel CVE team has assigned CVE-2024-43854 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.27 with commit 7ba1ba12eeef and fixed in 6.1.103 with commit d418313bd8f5 Issue introduced in 2.6.27 with commit 7ba1ba12eeef and fixed in 6.6.44 with commit 23a19655fb56 Issue introduced in 2.6.27 with commit 7ba1ba12eeef and fixed in 6.10.3 with commit ebc0e91ba76d Issue introduced in 2.6.27 with commit 7ba1ba12eeef and fixed in 6.11-rc1 with commit 899ee2c3829c 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-43854 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/bio-integrity.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/d418313bd8f55c079a7da12651951b489a638ac1 https://git.kernel.org/stable/c/23a19655fb56f241e592041156dfb1c6d04da644 https://git.kernel.org/stable/c/ebc0e91ba76dc6544fff9f5b66408b1982806a00 https://git.kernel.org/stable/c/899ee2c3829c5ac14bfc7d3c4a5846c0b709b78f