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 289562C1A2 for ; Wed, 11 Sep 2024 15:15:23 +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=1726067723; cv=none; b=IfY33XvZ1ucnq1aZ/ADghyveyhHzZTOPgG8R2smMQamFw5kYiVyAdwho/V8jeaNSJVF9HGtN1k+W9hEo4WI7oaOaOURz/FG6ahMqGjgvvr6tt6b9kvdSc7ami2UPZNFpodqtnKNppm0GXw5JZICjmLoQHh9hPkn/l70SqfbYcgc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726067723; c=relaxed/simple; bh=9mAwffmm3PkITXlzprkO5vP51EfgqnlOzEIpUU8E3gA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bl5BpgyHBigVjmYfBSRACmOVhBFEH0B2NW8l1/emDSzKWMRUGHeTpGmZA4JukV45Yw852EMrWdskdNB337kffURxr1Xa5p1De1wLm4ZAIrQoiA48jOr+y7XJk6VHfeYwxM4tDTLz9tLL5/ishiOF9QQG9gyVCWs1tbeqo5vT/xg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mGSQIbu+; 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="mGSQIbu+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1B1BC4CEC0; Wed, 11 Sep 2024 15:15:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726067723; bh=9mAwffmm3PkITXlzprkO5vP51EfgqnlOzEIpUU8E3gA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mGSQIbu+zrOVMrgMAYEO3XqaPUNnpiolr0tBu866EEGyaFfwvTcm3m7qkg0TqfiSC QY14PurcNYRYfYgPqzx0I736WLLX0xVKchuU4OXHMnGwTG949JrPN4r25aaVqVyTNd ex+TmzQtPpM3lsI2abfgAXhdWTcd5zDwqB3dIfQk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-45026: s390/dasd: fix error recovery leading to data corruption on ESE devices Date: Wed, 11 Sep 2024 17:14:22 +0200 Message-ID: <2024091110-CVE-2024-45026-eaa8@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=3338; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9mAwffmm3PkITXlzprkO5vP51EfgqnlOzEIpUU8E3gA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkPNx/yj5d8+GTiW6dzPQniHHeOPVbe++bwmmuyh7sYl szqT2fe3RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATkdjBsGCPdVuMTvWVHSW2 +QlaDD/KPY+fWc0wV6Tx4Uf1OVMrDnO6OE1hvXnL5rn8CwA= 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: s390/dasd: fix error recovery leading to data corruption on ESE devices Extent Space Efficient (ESE) or thin provisioned volumes need to be formatted on demand during usual IO processing. The dasd_ese_needs_format function checks for error codes that signal the non existence of a proper track format. The check for incorrect length is to imprecise since other error cases leading to transport of insufficient data also have this flag set. This might lead to data corruption in certain error cases for example during a storage server warmstart. Fix by removing the check for incorrect length and replacing by explicitly checking for invalid track format in transport mode. Also remove the check for file protected since this is not a valid ESE handling case. The Linux kernel CVE team has assigned CVE-2024-45026 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit 5e2b17e712cf and fixed in 5.4.283 with commit 19f60a55b2fd Issue introduced in 5.3 with commit 5e2b17e712cf and fixed in 5.10.225 with commit e245a18281c2 Issue introduced in 5.3 with commit 5e2b17e712cf and fixed in 5.15.166 with commit a665e3b7ac7d Issue introduced in 5.3 with commit 5e2b17e712cf and fixed in 6.1.107 with commit 0a228896a1b3 Issue introduced in 5.3 with commit 5e2b17e712cf and fixed in 6.6.48 with commit 93a7e2856951 Issue introduced in 5.3 with commit 5e2b17e712cf and fixed in 6.10.7 with commit 5d4a304338da Issue introduced in 5.3 with commit 5e2b17e712cf and fixed in 6.11-rc4 with commit 7db404233658 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-45026 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: drivers/s390/block/dasd.c drivers/s390/block/dasd_3990_erp.c drivers/s390/block/dasd_eckd.c drivers/s390/block/dasd_int.h 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/19f60a55b2fda49bc4f6134a5f6356ef62ee69d8 https://git.kernel.org/stable/c/e245a18281c252c8dbc467492e09bb5d4b012118 https://git.kernel.org/stable/c/a665e3b7ac7d5cdc26e00e3d0fc8fd490e00316a https://git.kernel.org/stable/c/0a228896a1b3654cd461ff654f6a64e97a9c3246 https://git.kernel.org/stable/c/93a7e2856951680cd7fe6ebd705ac10c8a8a5efd https://git.kernel.org/stable/c/5d4a304338daf83ace2887aaacafd66fe99ed5cc https://git.kernel.org/stable/c/7db4042336580dfd75cb5faa82c12cd51098c90b