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 686601F4711 for ; Mon, 21 Oct 2024 12:27:29 +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=1729513649; cv=none; b=gDntM236Pn2ASW4S+Oy0oCFUU511gcdPVHenPJ2RcJMdMX9NBbhlhEZVSwmYSAr4NYPZT9Dv2vddjU02lpoBtJgyDqmfjvSL/1uEbrPs6FwPiA3Eq3gLYK9+KrvXQxkCj8rjhAlNQQi9gn1tFTNFIczuUiQQNbMz0lMYN0V9dEk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729513649; c=relaxed/simple; bh=/ItMzNzfWTpJcTyxw/9SFG2x3B1yIFz4mmEGVoLTr5c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cO7Iqav0Coo3b7XO1Z0DftnxYe7lhCSVUMppBJ7XSsjrLaVBe0q9AQPb3oDrHZLCr2tJYA2yCsiIHLdbd5EoK7Hh71tdrwFEKLAC0htBbRA0vc3GKxesWW/g0NklrZiduPFj87qpwqFTgL0FJZvxftwF1vPorJzS2eXPQLw3qLY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VcOkgVho; 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="VcOkgVho" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6034C4CEC3; Mon, 21 Oct 2024 12:27:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729513649; bh=/ItMzNzfWTpJcTyxw/9SFG2x3B1yIFz4mmEGVoLTr5c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VcOkgVho+xG3c4j3th8IA/piY3o5bpDar1xrGXfCuI3xDRyzf5HmctVjF6gNabVyL BoEeLyUAy0kJioKtlmOucYN+eaQO36I4L6TDHqQRyDuPM7DOb6WGjalkGSN+c8QHPN mulbKc0qV1wLeEkjg6OtEz+lUkCwfkTFgM2uTdCU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-49859: f2fs: fix to check atomic_file in f2fs ioctl interfaces Date: Mon, 21 Oct 2024 14:27:25 +0200 Message-ID: <2024102124-CVE-2024-49859-9917@gregkh> X-Mailer: git-send-email 2.47.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=2087; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/ItMzNzfWTpJcTyxw/9SFG2x3B1yIFz4mmEGVoLTr5c=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliHmv+HpVQq/tp/dTm1imbPZu1TkjH8m8PY76qnTZzR cXNic/YO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiZ6sZFkzRZUq987f95f8J pzgrZvmH6ZzY5sgwz1BrYbt87ZPejRPi5huU7DsYMe/pJAA= 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: fix to check atomic_file in f2fs ioctl interfaces Some f2fs ioctl interfaces like f2fs_ioc_set_pin_file(), f2fs_move_file_range(), and f2fs_defragment_range() missed to check atomic_write status, which may cause potential race issue, fix it. The Linux kernel CVE team has assigned CVE-2024-49859 to this issue. Affected and fixed versions =========================== Fixed in 6.1.113 with commit 26b07bd2e1f1 Fixed in 6.6.54 with commit 7cb51731f24b Fixed in 6.10.13 with commit 10569b682ebe Fixed in 6.11.2 with commit d6f08c88047a Fixed in 6.12-rc1 with commit bfe5c0265426 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-49859 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/file.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/26b07bd2e1f124b0e430c8d250023f7205c549c3 https://git.kernel.org/stable/c/7cb51731f24b216b0b87942f519f2c67a17107ee https://git.kernel.org/stable/c/10569b682ebe9c75ef06ddd322ae844e9be6374b https://git.kernel.org/stable/c/d6f08c88047accc6127dddb6798a3ff11321539d https://git.kernel.org/stable/c/bfe5c02654261bfb8bd9cb174a67f3279ea99e58