Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 66519382286 for ; Sat, 15 Aug 2026 06:34:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775645; cv=none; b=ByJ2t3GEa60SY3PkFL6T/32VMawhkakZQY+waV6+oU/I+PBhv9re2AhJ6NhT3hAlnwkobLCMHRFaCI2TilGxeaK7XhaIJJLsutL5YI/UVE23j+il7vNskBKJzZWrpegs1+eBZutcqLl/EVGbpC5qEMP0F9npytNMhCvd5GcD4vI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775645; c=relaxed/simple; bh=oASFVDuUS0DucrI8Apwoo34yfGkb5zIefwIm4Hrd5s8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bA30F7YICDcTr0HhxB5CQwilYdBKTJn2cFCh/I3XUBbQMn3agJiLMcPoGGoV+Wz3xrtoxMcoAPwFpeMS2+Fc/N6wpOBJk4AUB6hj75/rJQqtzEbO2VuvzU3am5hfVdKE98uQ2D7G4gSR9ou3skPpmULrU6LasNBdpn6CCqKlylk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EXDQuqcy; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="EXDQuqcy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8BAF1F00A3A; Sat, 15 Aug 2026 06:34:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775644; bh=zeUUoOSazr9I+g0S5/1vld87pW6ZU1l/jB17vkFFvxM=; h=From:To:Cc:Subject:Date:Reply-To; b=EXDQuqcy5mpafv1lZm8kFTKyRc4vuVsuAgPqSfp67cKgh2HF9f79a33M65Ixecupr yvkkS6toTn1R9aDBkWw/4fbybTNYUuI5lYaNOZLmzZJ1NoFQZuaxYLMGSdjiOrEiiF T2E/A/W2IAWPOmxLmtF2UmianJrPwnIprLUYtd4Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74307: ext4: validate donor file superblock early in EXT4_IOC_MOVE_EXT Date: Sat, 15 Aug 2026 15:10:34 +0900 Message-ID: <2026081551-CVE-2026-74307-8ec9@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3590; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2O0d6RdXRNTOw6+ZXsKjG6nH/mpkWQHC9RkI0WnVXZw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNjNwtl+zf+xbf3fTpYMzJZQVqM550n1e8HFruvuWs5 e7HojujO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAit84zzOE79/Vs1PW7c2SS nE+c29lgIe5f+JlhvluOjfR+AbZLenMUZAOXSRZdVucNAQA= 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: validate donor file superblock early in EXT4_IOC_MOVE_EXT Reject the EXT4_IOC_MOVE_EXT ioctl early if the donor file does not belong to the same superblock as the original file. Currently, this validation is performed inside ext4_move_extents() by mext_check_validity(), but only after lock_two_nondirectories() has already acquired the inode locks. When the donor fd refers to a file on a different filesystem (e.g., overlayfs), this late validation creates a circular lock dependency: CPU0 (overlayfs write) CPU1 (ext4 ioctl) ---- ---- inode_lock(ovl_inode) mnt_want_write_file(filp) sb_start_write(ext4_sb) [sb_writers] backing_file_write_iter() vfs_iter_write(real_file) file_start_write(real_file) sb_start_write(ext4_sb) [blocked by freeze] lock_two_nondirectories() inode_lock(ovl_inode) [blocked] With a concurrent freeze operation holding sb_writers write side, this forms a deadlock cycle: CPU0 waits for freeze to complete, freeze waits for CPU1's sb_writers reader to exit, CPU1 waits for CPU0's inode lock. Since EXT4_IOC_MOVE_EXT exchanges physical extents between two files, it fundamentally requires both files to reside on the same ext4 filesystem. Moving the superblock check before any lock acquisition is both semantically correct and eliminates the circular dependency by ensuring that cross-filesystem donor fds are rejected before sb_writers or inode locks are taken. The Linux kernel CVE team has assigned CVE-2026-74307 to this issue. Affected and fixed versions =========================== Issue introduced in 3.18 with commit fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a and fixed in 6.12.97 with commit 74796e886ca39fcb0d3fd36ea6a39c62784ab6fb Issue introduced in 3.18 with commit fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a and fixed in 7.1.5 with commit fb52013cad9e9b7d3a6a14ea1bcd841e41da7c6c Issue introduced in 3.18 with commit fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a and fixed in 7.2-rc1 with commit c143957520c6c9b5cd72e0de8b52b814f0c576fe 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-2026-74307 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/ioctl.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/74796e886ca39fcb0d3fd36ea6a39c62784ab6fb https://git.kernel.org/stable/c/fb52013cad9e9b7d3a6a14ea1bcd841e41da7c6c https://git.kernel.org/stable/c/c143957520c6c9b5cd72e0de8b52b814f0c576fe