CVE-2026-98844
En el kernel de Linux se ha resuelto la siguiente vulnerabilidad:
netfs: limpiar la caché de páginas posterior al EOF al extender un archivo mediante escritura
Corregir netfs para borrar el contenido de un hueco creado tras el EOF por una escritura ordinaria si anteriormente quedaron datos sucios en ese espacio debido a escrituras realizadas a través de una región mapeada en memoria (mmap). Ni la ruta de escritura con búfer ni la ruta sin búfer/DIO limpian esa caché de páginas obsoleta.
Poner a cero la parte final del folio que cruza el EOF antes de una escritura que extiende el archivo.
Leer descripción completaMostrar menos
Ese es el único folio que puede contener datos escritos más allá del EOF mediante mmap, ya que las páginas completamente más allá del EOF no pueden cargarse por fallo de página. El folio se pone a cero en lugar de descartarse para que una escritura concurrente que extienda el archivo no pierda datos.
Ambas rutas de escritura degradan el i_rwsem a modo compartido, por lo que las escrituras que extienden el archivo pueden ejecutarse de forma concurrente, y el i_size leído por el llamador puede estar desactualizado cuando el folio se bloquea. Volver a leer i_size bajo el bloqueo del folio y ajustar el rango puesto a cero hasta ese valor, de modo que una escritura en carrera que ya haya introducido datos en el folio no sea sobrescrita.
Esperar a que termine cualquier escritura diferida (writeback) del folio antes de ponerlo a cero, de modo que la caché de páginas no se modifique mientras el transporte aún pueda leerla durante la transmisión. Respetar IOCB_NOWAIT devolviendo -EAGAIN en lugar de bloquearse en el bloqueo del folio, en la escritura diferida o en el recorrido de rmap de folio_mkclean() cuando el folio está mapeado.
truncate_pagecache() no puede usarse aquí: debe llamarse con i_rwsem retenido en modo exclusivo, pero estas rutas de escritura solo lo retienen en modo compartido, y se bloquearía incondicionalmente, rompiendo IOCB_NOWAIT.
Los llamadores que retienen i_rwsem en modo exclusivo durante todo el redimensionado (truncate, setattr, fallocate, clone) excluyen a cualquier escritor concurrente con búfer genuino, por lo que la obsolescencia puede decidirse a partir del estado sucio del folio, tal como ya hace pagecache_isize_extended() para los sistemas de archivos que serializan las escrituras frente a truncate/setattr mediante un único i_rwsem. Exportar el auxiliar netfs_clear_stale_post_isize() para gestionar ese caso.
El auxiliar lo necesita el cliente CIFS para corregir generic/363.
Traducción automática del texto original de NVD (en inglés).
CVSS
NVD no ha asignado puntuación CVSS a esta CVE (habitual desde el cambio de política de abril de 2026).
Probabilidad de explotación (EPSS)
- Probabilidad de explotación en los próximos 30 días
- 0.16 %
- Percentil entre todas las CVEs puntuadas
- 4
- Fecha de la puntuación
- 20/10/2026
EPSS (Exploit Prediction Scoring System, de FIRST) estima la probabilidad de que una vulnerabilidad sea explotada en 30 días. Complementa a CVSS (impacto) y a CISA KEV (explotación confirmada).
Tecnologías afectadas (1)
⚠ Inferidas por IA a partir de la descripción — NVD aún no ha analizado esta CVE; no son CPE verificados.
Referencias
Mostrar las 4 referencias
JSON original (NVD)
Mostrar
{
"id": "CVE-2026-98844",
"cveTags": [],
"metrics": {},
"affected": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"affectedData": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "153a9961b551101cd38e94e26cd92fbfd198b19b",
"lessThan": "f8f7d86b3537e885ee620898a38b749fba8a8456",
"versionType": "git"
},
{
"status": "affected",
"version": "153a9961b551101cd38e94e26cd92fbfd198b19b",
"lessThan": "98f6a4589e0f5f6cf819b8dd45605efc481c06ce",
"versionType": "git"
},
{
"status": "affected",
"version": "153a9961b551101cd38e94e26cd92fbfd198b19b",
"lessThan": "a7036a73671fc83d299bc770710fe996d9fef9ca",
"versionType": "git"
},
{
"status": "affected",
"version": "153a9961b551101cd38e94e26cd92fbfd198b19b",
"lessThan": "69bf14300b50631e7c2271289d347bbd1b19a06c",
"versionType": "git"
}
],
"programFiles": [
"Documentation/filesystems/netfs_library.rst",
"fs/netfs/buffered_write.c",
"fs/netfs/direct_write.c",
"fs/netfs/internal.h",
"fs/netfs/misc.c",
"include/linux/netfs.h"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.8"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.8",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.12.113",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.56",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.10",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"Documentation/filesystems/netfs_library.rst",
"fs/netfs/buffered_write.c",
"fs/netfs/direct_write.c",
"fs/netfs/internal.h",
"fs/netfs/misc.c",
"include/linux/netfs.h"
],
"defaultStatus": "affected"
}
]
}
],
"published": "2026-10-18T16:17:38.720",
"references": [
{
"url": "https://git.kernel.org/stable/c/69bf14300b50631e7c2271289d347bbd1b19a06c",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/98f6a4589e0f5f6cf819b8dd45605efc481c06ce",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/a7036a73671fc83d299bc770710fe996d9fef9ca",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
},
{
"url": "https://git.kernel.org/stable/c/f8f7d86b3537e885ee620898a38b749fba8a8456",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"vulnStatus": "Received",
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnetfs: clear post-EOF pagecache when extending a file via write\n\nFix netfs to erase the contents of a hole created after the EOF by an\nordinary write if dirty data has been previously left there by writes\nthrough an mmapped region. Neither the buffered nor the unbuffered/DIO\nwrite path clears that stale pagecache.\n\nZero the tail of the folio straddling the EOF before an extending\nwrite. That is the only folio that can hold data written past the EOF\nthrough an mmap, as pages wholly beyond the EOF can't be faulted in.\nThe folio is zeroed rather than dropped so a concurrent extending write\ncan't lose data.\n\nBoth write paths downgrade the i_rwsem to shared, so extending writes\ncan run concurrently and the i_size read by the caller may be stale by\nthe time the folio is locked. Re-read i_size under the folio lock and\nclamp the zeroed range up to it, so a racing write that already put\ndata into the folio isn't clobbered.\n\nWait for any writeback on the folio to finish before zeroing it so that\nthe pagecache isn't modified while it may still be read by the transport\nduring transmission. Honour IOCB_NOWAIT by returning -EAGAIN rather\nthan blocking on the folio lock, on writeback, or in folio_mkclean()'s\nrmap walk when the folio is mapped.\n\ntruncate_pagecache() can't be used here: it must be called with the\ni_rwsem held exclusively, but these write paths only hold it shared,\nand it would block unconditionally, breaking IOCB_NOWAIT.\n\nCallers that hold i_rwsem exclusively for the whole resize (truncate,\nsetattr, fallocate, clone) exclude any genuine concurrent buffered\nwriter, so staleness can instead be decided from the folio's dirty\nstate, as pagecache_isize_extended() already does for filesystems that\nserialise writes against truncate/setattr via a single i_rwsem.\nExport netfs_clear_stale_post_isize() helper to handle such case.\n\nThe helper is required by the CIFS client to fix generic/363."
}
],
"lastModified": "2026-10-19T10:19:48.483",
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}