CVE-2026-31465

In the Linux kernel, the following vulnerability has been resolved: writeback: don't block sync for filesystems with no data integrity guarantees Add a SB_I_NO_DATA_INTEGRITY superblock flag for filesystems that cannot guarantee data persistence on sync (eg fuse). For superblocks with this flag set, sync kicks off writeback of dirty inodes but does not wait for the flusher threads to complete the writeback. This replaces the per-inode AS_NO_DATA_INTEGRITY mapping flag added in commit f9a49aa302a0 ("fs/writeback: skip AS_NO_DATA_INTEGRITY mappings in wait_sb_inodes()"). The flag belongs at the superblock level because data integrity is a filesystem-wide property, not a per-inode one. Having this flag at the superblock level also allows us to skip having to iterate every dirty inode in wait_sb_inodes() only to skip each inode individually. Prior to this commit, mappings with no data integrity guarantees skipped waiting on writeback completion but still waited on the flusher threads to finish initiating the writeback. Waiting on the flusher threads is unnecessary. This commit kicks off writeback but does not wait on the flusher threads. This change properly addresses a recent report [1] for a suspend-to-RAM hang seen on fuse-overlayfs that was caused by waiting on the flusher threads to finish: Workqueue: pm_fs_sync pm_fs_sync_work_fn Call Trace: <TASK> __schedule+0x457/0x1720 schedule+0x27/0xd0 wb_wait_for_completion+0x97/0xe0 sync_inodes_sb+0xf8/0x2e0 __iterate_supers+0xdc/0x160 ksys_sync+0x43/0xb0 pm_fs_sync_work_fn+0x17/0xa0 process_one_work+0x193/0x350 worker_thread+0x1a1/0x310 kthread+0xfc/0x240 ret_from_fork+0x243/0x280 ret_from_fork_asm+0x1a/0x30 </TASK> On fuse this is problematic because there are paths that may cause the flusher thread to block (eg if systemd freezes the user session cgroups first, which freezes the fuse daemon, before invoking the kernel suspend. The kernel suspend triggers ->write_node() which on fuse issues a synchronous setattr request, which cannot be processed since the daemon is frozen. Or if the daemon is buggy and cannot properly complete writeback, initiating writeback on a dirty folio already under writeback leads to writeback_get_folio() -> folio_prepare_writeback() -> unconditional wait on writeback to finish, which will cause a hang). This commit restores fuse to its prior behavior before tmp folios were removed, where sync was essentially a no-op. [1] https://lore.kernel.org/linux-fsdevel/CAJnrk1a-asuvfrbKXbEwwDSctvemF+6zfhdnuzO65Pt8HsFSRw@mail.gmail.com/T/#m632c4648e9cafc4239299887109ebd880ac6c5c1
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*

History

11 Nov 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: writeback: no bloquear la sincronización para sistemas de archivos sin garantías de integridad de datos Añadir una bandera de superbloque SB_I_NO_DATA_INTEGRITY para sistemas de archivos que no pueden garantizar la persistencia de datos en la sincronización (por ejemplo, fuse). Para superbloques con esta bandera establecida, la sincronización inicia el writeback de inodos sucios pero no espera a que los hilos de vaciado completen el writeback. Esto reemplaza la bandera de mapeo AS_NO_DATA_INTEGRITY por inodo añadida en el commit f9a49aa302a0 (’fs/writeback: omitir mapeos AS_NO_DATA_INTEGRITY en wait_sb_inodes()’). La bandera pertenece al nivel del superbloque porque la integridad de los datos es una propiedad de todo el sistema de archivos, no una por inodo. Tener esta bandera a nivel de superbloque también nos permite evitar tener que iterar cada inodo sucio en wait_sb_inodes() solo para omitir cada inodo individualmente. Antes de este commit, los mapeos sin garantías de integridad de datos omitían esperar la finalización del writeback pero aún esperaban a que los hilos de vaciado terminaran de iniciar el writeback. Esperar a los hilos de vaciado es innecesario. Este commit inicia el writeback pero no espera a los hilos de vaciado. Este cambio aborda correctamente un informe reciente [1] por un cuelgue de suspensión a RAM visto en fuse-overlayfs que fue causado por esperar a que los hilos de vaciado terminaran: Workqueue: pm_fs_sync pm_fs_sync_work_fn Rastro de Llamada: [TAREA] __schedule+0x457/0x 1720 schedule+0x27/0xd0 wb_wait_for_completion+0x97/0xe0 sync_inodes_sb+0xf8/0x2e0 __iterate_supers+0xdc/0x160 ksys_sync+0x43/0xb0 pm_fs_sync_work_fn+0x17/0xa0 process_one_work+0x193/0x350 worker_thread+0x1a1/0x310 kthread+0xfc/0x240 ret_from_fork+0x243/0x280 ret_from_fork_asm+0x1a/0x30 [/TAREA] En fuse esto es problemático porque hay rutas que pueden causar que el hilo de vaciado se bloquee (por ejemplo, si systemd congela primero los cgroups de la sesión de usuario, lo que congela el demonio fuse, antes de invocar la suspensión del kernel. La suspensión del kernel activa -> write_node() que en fuse emite una solicitud setattr síncrona, que no puede procesarse ya que el demonio está congelado. O si el demonio tiene errores y no puede completar correctamente el writeback, iniciar el writeback en un folio sucio que ya está en writeback lleva a writeback_get_folio() -> folio_prepare_writeback() -> espera incondicional a que el writeback termine, lo que causará un cuelgue). Este commit restaura fuse a su comportamiento anterior antes de que se eliminaran los folios temporales, donde la sincronización era esencialmente una operación nula. [1] https://lore.kernel.org/linux-fsdevel/CAJnrk1a-asuvfrbKXbEwwDSctvemF+6zfhdnuzO65Pt8HsFSRw@mail.gmail.com/T/#m632c4648e9cafc4239299887109ebd880ac6c5c1

Information

Published : 2026-04-22 14:16

Updated : 2026-11-11 23:10


NVD link : CVE-2026-31465

Mitre link : CVE-2026-31465

CVE.ORG link : CVE-2026-31465


JSON object : View

Products Affected

linux

  • linux_kernel