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 5B195146593 for ; Mon, 26 Aug 2024 10:22:14 +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=1724667735; cv=none; b=IQ67meqeT4p1yMg3McONG64pwMJOxlbJwaJQD+/w+MjkGqBesgNI07die+qGqRzwiqUrC/uQf9F3rAeP6jmUxSLvqoLOHxZNeosVSNzpwZ251InMj5uuh7J1rQmK+gaxc7pDpqWuvococtGU2vpUmbhr3g9uDUv5YgsPFH25zX4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724667735; c=relaxed/simple; bh=vtG1ab3s3z2k0xH7pyWN+UBQvP19GNrksLbNcHPlOM0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ogvUXoZPGB9+I6wR2v0jC728GBn971Ezxsv7yz1fIWWmE0J35ORD5v3XjiD/49txJgu24z3BUin4j4MSF6IiCJVF5AYsTiFWN50vlJSwlSnYcMzah/2n1IHwVVcg9PWObWZnWeRSR2u/gFFXYHmPI28MphnoAQ6+3fEqBiMRAJk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QHnaIOzv; 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="QHnaIOzv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75AE0C581B6; Mon, 26 Aug 2024 10:22:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724667734; bh=vtG1ab3s3z2k0xH7pyWN+UBQvP19GNrksLbNcHPlOM0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=QHnaIOzvlnaYzeDGAMEPREgB8cQsGMn4szAUJ7BoKl27dmd3LlwKM4jU1z042vIUk oBBnMMVsfAmrmHUYnarb6O0Lxu8Bs21X45Cnq2/HlcHUXo/b/IZ+YbIzIB9djSdgY1 DqaElD2ilBpLisjNMKoh1rfp64wB16MVjp6Gej7Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43885: btrfs: fix double inode unlock for direct IO sync writes Date: Mon, 26 Aug 2024 12:16:53 +0200 Message-ID: <2024082652-CVE-2024-43885-3500@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=2163; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vtG1ab3s3z2k0xH7pyWN+UBQvP19GNrksLbNcHPlOM0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlnwkRVqi59ZuVwn8fHqvg4IJL3fdTEuU42XC5tLQkc6 7XW/ynqiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIm8fsYwV+bEd6OomTe/8ewQ WvJJanr/kh+zvBnmZyafvHr+y5tgns5bxV26zHcWJ5xKAQA= 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: btrfs: fix double inode unlock for direct IO sync writes If we do a direct IO sync write, at btrfs_sync_file(), and we need to skip inode logging or we get an error starting a transaction or an error when flushing delalloc, we end up unlocking the inode when we shouldn't under the 'out_release_extents' label, and then unlock it again at btrfs_direct_write(). Fix that by checking if we have to skip inode unlocking under that label. The Linux kernel CVE team has assigned CVE-2024-43885 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11-rc2 with commit 939b656bc8ab and fixed in 6.11-rc3 with commit e0391e92f9ab 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-43885 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/btrfs/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/1a607d22dea4f60438747705495ec4d0af2ec451 https://git.kernel.org/stable/c/8bd4c9220416111500c275546c69c63d42185793 https://git.kernel.org/stable/c/7ba27f14161fc20c4fc0051658a22ddd832eb0aa https://git.kernel.org/stable/c/d924a0be2f218501588cf463d70f1c71afea06d9 https://git.kernel.org/stable/c/e0391e92f9ab4fb3dbdeb139c967dcfa7ac4b115