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 66DB3191466 for ; Tue, 30 Jul 2024 07:51:16 +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=1722325876; cv=none; b=cyku7k7hE+xnAwtTrhzk1+MKr/F0lre6WkSDn9KyBCDRaYnhiRJ6wLDMl50Xhk3GBoBGJ7iH0wYip5paLmZD+2pBqoPcn/aPyFDIsDZY+5hL99LSgYH17Efl9/4AfKxr1rdx7NPc4jI9W5DOqdQmdi6mfN1NNaQs/0h29axB0Mo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325876; c=relaxed/simple; bh=1vNTQANahWD58vDwz/pe1ANLTGE+rcKUyZLTp0ghqLM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hD1q5tIhfoCDFuI1LdP0oEzam93bF6U0WTEzr18ZvLUh77OLCnRfNA+ZbyCKzrdyClriZMMzgW22VE9vFqvbB4okOIWEtDbzQ0ePlXjWR6NH2gYHwiJ0JDoWpGd2MeqGDmlMpSFzgokUHnoftkgeg3E4r6Z2GMslhfYbHqLgi3E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p4HLBHAs; 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="p4HLBHAs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE1F1C4AF09; Tue, 30 Jul 2024 07:51:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325876; bh=1vNTQANahWD58vDwz/pe1ANLTGE+rcKUyZLTp0ghqLM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=p4HLBHAsMY7P2/U8s4WzA3E6REZYLQCIruwdoB3SZdz/XUKPaeVP21AxGqopWFngx RNOR39RHh8BsL8bDBWzWJXlD9Ztw76bgfPR4acmPDA0q8MkffMCsgV4SfPignUOeY1 rb/JKtmo5eZBmrM2WXL2Ie0inMvWOy/lIYm3ix0c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42160: f2fs: check validation of fault attrs in f2fs_build_fault_attr() Date: Tue, 30 Jul 2024 09:48:18 +0200 Message-ID: <2024073036-CVE-2024-42160-c733@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=2007; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1vNTQANahWD58vDwz/pe1ANLTGE+rcKUyZLTp0ghqLM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZs3YszJg1RJrthcLp6s8nyD63CWyqsMx5DuT9KX0O YaLDi690xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATWefPsGBypmq3YcbMv1l3 XtR+iD48T+TFsVSGBev8nuxPfsGk+Z5TiYWTPyNgW8k/CQA= 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: f2fs: check validation of fault attrs in f2fs_build_fault_attr() - It missed to check validation of fault attrs in parse_options(), let's fix to add check condition in f2fs_build_fault_attr(). - Use f2fs_build_fault_attr() in __sbi_store() to clean up code. The Linux kernel CVE team has assigned CVE-2024-42160 to this issue. Affected and fixed versions =========================== Fixed in 6.1.98 with commit bc84dd2c33e0 Fixed in 6.6.39 with commit 44958ca9e400 Fixed in 6.9.9 with commit ecb641f424d6 Fixed in 6.10 with commit 4ed886b187f4 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-42160 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/f2fs/f2fs.h fs/f2fs/super.c fs/f2fs/sysfs.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/bc84dd2c33e0c10fd90d60f0cfc0bfb504d4692d https://git.kernel.org/stable/c/44958ca9e400f57bd0478115519ffc350fcee61e https://git.kernel.org/stable/c/ecb641f424d6d1f055d149a15b892edcc92c504b https://git.kernel.org/stable/c/4ed886b187f47447ad559619c48c086f432d2b77