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 609882DEA9D for ; Wed, 1 Oct 2025 11:51:45 +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=1759319506; cv=none; b=rtE8Tkb64YncD5pCC447FO9OE+m6SjCCsW1wjcjMAljKCQxMq/odqFAJzhXPleG4HjGAu2/NmcthKBG5yd3lEqlUKz1HC4lN4hU9mOVuGkzp1nurjSDBjtPToXw0ZOqItv8r+NunHzh+mUQO+780ovJ+QLpyJC0SpLa2+wkUMSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319506; c=relaxed/simple; bh=AwhURam/YUYDXJsbRJqeY7l1mAUQNruGBE3XoHKtoEI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cQDl2dgl4IYJuWU4Lq/PNGSThXvkvQrdYVL3f51Z2aQvCbcscxROi1/3ANTuXpES4Q/yQixwuNPqy6c1pWzlmi690uCBEtwzjwits/a+7oLshMIwQS1e5I++71MKQ6C7eX1SvbiV9eBTp2MioHiKB+SUVkhPP0gYqw3XawFrWeo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cK0GNwx0; 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="cK0GNwx0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EDB8C4CEF4; Wed, 1 Oct 2025 11:51:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319505; bh=AwhURam/YUYDXJsbRJqeY7l1mAUQNruGBE3XoHKtoEI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cK0GNwx0PoEJ6o/IoMQ3GPWGDk736mrFFHtGCjUNi6SpUgO+urF6UZ8b+EHC7iFRO QJfv3r8txHy7P6wV3jQRPTivTI8qTLfo+elEB0tTf41rS6722w4jh1SdnTPNCc2Yf0 TYzd0xMNwatYoarC86vQ8PY7JJ2QQMKU+Z+tHFy0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50436: ext4: don't set up encryption key during jbd2 transaction Date: Wed, 1 Oct 2025 13:42:09 +0200 Message-ID: <2025100159-CVE-2022-50436-ad37@gregkh> X-Mailer: git-send-email 2.51.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=2876; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=u+rOrjquE9dswf0Oc63FLgsuZ2peFIrcx7w/PJIkokI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3hTsuut7dos+eXbNDp25Drsn/3ncFYXMKV3F9i9jW4 x7nc/ZjRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEo4thfvXtuLNeDkfvX8w3 bGCITrVg4BPxY5hn/Cb/4Y3worbtmgmP79nfz3n2z+Y3AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ext4: don't set up encryption key during jbd2 transaction Commit a80f7fcf1867 ("ext4: fixup ext4_fc_track_* functions' signature") extended the scope of the transaction in ext4_unlink() too far, making it include the call to ext4_find_entry(). However, ext4_find_entry() can deadlock when called from within a transaction because it may need to set up the directory's encryption key. Fix this by restoring the transaction to its original scope. The Linux kernel CVE team has assigned CVE-2022-50436 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit a80f7fcf18672ae4971a6b713b58c0d389aa99fe and fixed in 5.10.163 with commit 23ad034760dd38e12b0e0e1b28b9629f330810a1 Issue introduced in 5.10 with commit a80f7fcf18672ae4971a6b713b58c0d389aa99fe and fixed in 5.15.87 with commit 6220ec405571ded17efedc56587190b542adf246 Issue introduced in 5.10 with commit a80f7fcf18672ae4971a6b713b58c0d389aa99fe and fixed in 6.0.18 with commit 206dd3acfb9bca54a25b228c7c7c2257eedde09b Issue introduced in 5.10 with commit a80f7fcf18672ae4971a6b713b58c0d389aa99fe and fixed in 6.1.4 with commit 1ba993208bcfd691e241483420a2a761d3f15750 Issue introduced in 5.10 with commit a80f7fcf18672ae4971a6b713b58c0d389aa99fe and fixed in 6.2 with commit 4c0d5778385cb3618ff26a561ce41de2b7d9de70 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-2022-50436 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/ext4/ext4.h fs/ext4/fast_commit.c fs/ext4/namei.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/23ad034760dd38e12b0e0e1b28b9629f330810a1 https://git.kernel.org/stable/c/6220ec405571ded17efedc56587190b542adf246 https://git.kernel.org/stable/c/206dd3acfb9bca54a25b228c7c7c2257eedde09b https://git.kernel.org/stable/c/1ba993208bcfd691e241483420a2a761d3f15750 https://git.kernel.org/stable/c/4c0d5778385cb3618ff26a561ce41de2b7d9de70