ext4: validate donor file superblock early in EXT4_IOC_MOVE_EXT (Linux Linux)
En bref
- Source
- NVD
- EPSS
- EPSS 0.17 % · centile 7 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Linux
- Statut NVD
- Received
Rechercher sur…
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.
Références
- https://git.kernel.org/stable/c/23380fc1bf5d3b75dcbd51eb72be4eb0a3300370
- https://git.kernel.org/stable/c/663f184b51492093d408e518efc95ee13b5b4440
- https://git.kernel.org/stable/c/74796e886ca39fcb0d3fd36ea6a39c62784ab6fb
- https://git.kernel.org/stable/c/29e07ec352f0ad06c833a18bf47d82c81f55544f
- https://git.kernel.org/stable/c/fb52013cad9e9b7d3a6a14ea1bcd841e41da7c6c
- https://git.kernel.org/stable/c/c143957520c6c9b5cd72e0de8b52b814f0c576fe
Références européennes
- ENISA EUVD · EUVD-2026-59454
- GCVE · GCVE-0-2026-74307
Avis du CERT-FR
- CERTFR-2026-AVI-1385 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1372 — Multiples vulnérabilités dans les produits SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1335 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1333 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1286 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1255 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
Produits affectés
| Produit | Versions |
|---|---|
| Linux · Linux | affected fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a < 23380fc1bf5d3b75dcbd51eb72be4eb0a3300370 ; affected fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a < 663f184b51492093d408e518efc95ee13b5b4440 ; affected fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a < 74796e886ca39fcb0d3fd36ea6a39c62784ab6fb ; affected fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a < 29e07ec352f0ad06c833a18bf47d82c81f55544f ; affected fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a < fb52013cad9e9b7d3a6a14ea1bcd841e41da7c6c ; affected fcf6b1b729bcd23f2b49a84fb33ffbb44712ee6a < c143957520c6c9b5cd72e0de8b52b814f0c576fe |
| Linux · Linux | affected 3.18 ; unaffected 0 < 3.18 ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.160 ≤ 6.6.* ; unaffected 6.12.97 ≤ 6.12.* ; unaffected 6.18.57 ≤ 6.18.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |