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 F3A6E13280F for ; Wed, 17 Apr 2024 10:10:34 +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=1713348635; cv=none; b=JZY1kAXPkgL0RileefKAY3G6O9Z7DRaaFJGctp9ImkPmcqyObyWNpX1NBzhpAvZ4grdNtz/8qK0P/5r5MuCTclKjkNnbusL3pLqDjbT0owKK3oYfgcCfPOdwl7+8gEIpcjmq5jMlzIqrRhIZODQUwqneQo6n5x8WQg5s+zj6Wxw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713348635; c=relaxed/simple; bh=2c3h+d9SduOgvUFIww78oVWFag5Rd9R+ZUjdptqhSs8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YGpV5Z+0spKgHD9xZBwWjyMomv63gUNV4f36Y7PI2LhG8NJqxKSqN3koDN/0zEjG0HYagPfzdj+Tw4HgBsn1QKIY5SpMfY4iL+sl3i+S5B+LH1PApt0xvun0WGGUYptIUMMskrNH751aT/O6c88ii8n5S62PnOupHZ5cwrjqJI4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IaRg7T15; 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="IaRg7T15" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26089C2BD10; Wed, 17 Apr 2024 10:10:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713348634; bh=2c3h+d9SduOgvUFIww78oVWFag5Rd9R+ZUjdptqhSs8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IaRg7T155Itb8cbEGbCxcYnNFj/WDm25rTFsQyO3eOOM1U8OYsnd+Z9WMkG35UmcK O4Wg47TXTdUyHZB1k8y2joGIt321MN8fv6BQ/ggL323zjbi09rK/p9Kdi6U+isr8iW Das/t+cf82dGShXSJmSqJPDbtr33jDf9YSZTUFEQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26844: block: Fix WARNING in _copy_from_iter Date: Wed, 17 Apr 2024 12:10:26 +0200 Message-ID: <2024041716-CVE-2024-26844-c534@gregkh> X-Mailer: git-send-email 2.44.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=2274; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2c3h+d9SduOgvUFIww78oVWFag5Rd9R+ZUjdptqhSs8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnyCzik7n/eHjplx/z3CTr378ZWX9odsbjZ0lD5qOumh xHWwu7nOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiW2UY5mnuP/RGOlSuloXj HqvRXGvLihMbtjIsmPWcgfnZ3eSjx3p+b1m/effNuIKG/QA= 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 WARNING in _copy_from_iter Syzkaller reports a warning in _copy_from_iter because an iov_iter is supposedly used in the wrong direction. The reason is that syzcaller managed to generate a request with a transfer direction of SG_DXFER_TO_FROM_DEV. This instructs the kernel to copy user buffers into the kernel, read into the copied buffers and then copy the data back to user space. Thus the iovec is used in both directions. Detect this situation in the block layer and construct a new iterator with the correct direction for the copy-in. The Linux kernel CVE team has assigned CVE-2024-26844 to this issue. Affected and fixed versions =========================== Fixed in 6.1.80 with commit 8fc80874103a Fixed in 6.6.19 with commit 0f1bae071de9 Fixed in 6.7.7 with commit cbaf9be337f7 Fixed in 6.8 with commit 13f3956eb568 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-26844 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/blk-map.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/8fc80874103a5c20aebdc2401361aa01c817f75b https://git.kernel.org/stable/c/0f1bae071de9967602807472921829a54b2e5956 https://git.kernel.org/stable/c/cbaf9be337f7da25742acfce325119e3395b1f1b https://git.kernel.org/stable/c/13f3956eb5681a4045a8dfdef48df5dc4d9f58a6