From mboxrd@z Thu Jan 1 00:00:00 1970 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 E18921AAE04 for ; Thu, 20 Jun 2024 11:17:40 +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=1718882262; cv=none; b=sRxPg3vl1TXn1ZEhCKVNQLIKZMEgsPq/yl9Ea+waY4DSJBLYOmSHqKa7zSX/JaY04PPwxAGFJTs+ujgs0Xs4UJecXOCpz2zk2cKA0bhDUhJmsMtzGVWw+Vsf89L/+fzeJN5p46qWGspQ/OU0UDm2pBYDgI5Opz14cAEytp7yelc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718882262; c=relaxed/simple; bh=tWwfPibT93qnXhPKOaChEB0NAlNWOjH0SRSr5tcbDXQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=meowCxHj9bYGcoMbVX/H8B+TkqWC/rFZRoYYIC5u4hOW69X2/ASgfK6kCer8vf77jC9VRslivkvIgly91dcmjx+P19deGZ0hKyXsHEkAXgp+d9o9q0xsKLxLxLhtxHdvPLu86q5ED1a1ZmXbJmrj6fMdW8apjaF/bQpqA8uO5BU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S7PmBa2L; 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="S7PmBa2L" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67EFCC2BD10; Thu, 20 Jun 2024 11:17:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718882260; bh=tWwfPibT93qnXhPKOaChEB0NAlNWOjH0SRSr5tcbDXQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=S7PmBa2LLWvUdZvVbNFOwvC808/42k8EqR+NQ2tuWE/ufFYZm7K46sSz4ucyGtmHo Mem2xlb3qzeyD5CBNBRTym5fm40X/I0Ea6A4HRX8iVM/pXwRYKy1eT4mbMhOgfbWaT Vi5Hou9ji/iWv5BvW2y0bg/USyLP56FKwM8mErac= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48747: block: Fix wrong offset in bio_truncate() Date: Thu, 20 Jun 2024 13:16:27 +0200 Message-ID: <2024062004-CVE-2022-48747-c63f@gregkh> X-Mailer: git-send-email 2.45.2 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=2161; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tWwfPibT93qnXhPKOaChEB0NAlNWOjH0SRSr5tcbDXQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkl/CVvF+QsX/tcqT9ywYxjh7+e3rn7iJRV4NfJqsfvr dv2/0PRjo5YFgZBJgZZMUWWL9t4ju6vOKToZWh7GmYOKxPIEAYuTgGYiOZ/hrmC2/4WKJWxaz5S fs/nvvxPyVctpcUMc2Vvau6aNNFSwP7+Ca7VLNoHDnIGRQMA 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 wrong offset in bio_truncate() bio_truncate() clears the buffer outside of last block of bdev, however current bio_truncate() is using the wrong offset of page. So it can return the uninitialized data. This happened when both of truncated/corrupted FS and userspace (via bdev) are trying to read the last of bdev. The Linux kernel CVE team has assigned CVE-2022-48747 to this issue. Affected and fixed versions =========================== Fixed in 5.4.176 with commit 6cbf4c731d78 Fixed in 5.10.96 with commit b63e120189fd Fixed in 5.15.19 with commit 4633a79ff8bc Fixed in 5.16.5 with commit 941d5180c430 Fixed in 5.17 with commit 3ee859e384d4 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-48747 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.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/6cbf4c731d7812518cd857c2cfc3da9fd120f6ae https://git.kernel.org/stable/c/b63e120189fd92aff00096d11e2fc5253f60248b https://git.kernel.org/stable/c/4633a79ff8bc82770486a063a08b55e5162521d8 https://git.kernel.org/stable/c/941d5180c430ce5b0f7a3622ef9b76077bfa3d82 https://git.kernel.org/stable/c/3ee859e384d453d6ac68bfd5971f630d9fa46ad3