{"id":"CVE-2026-31694","aliases":["CVE-2026-31694"],"related":[],"kind":"vulnerability","state":"published","title":"fuse: reject oversized dirents in page cache","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nfuse: reject oversized dirents in page cache\n\nfuse_add_dirent_to_cache() computes a serialized dirent size from the\nserver-controlled namelen field and copies the dirent into a single\npage-cache page. The existing logic only checks whether the dirent fits\nin the remaining space of the current page and advances to a fresh page\nif not. It never checks whether the dirent itself exceeds PAGE_SIZE.\n\nAs a result, a malicious FUSE server can return a dirent with\nnamelen=4095, producing a serialized record size of 4120 bytes. On 4 KiB\npage systems this causes memcpy() to overflow the cache page by 24 bytes\ninto the following kernel page.\n\nReject dirents that cannot fit in a single page before copying them into\nthe readdir cache.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfuse: reject oversized dirents in page cache\n\nfuse_add_dirent_to_cache() computes a serialized dirent size from the\nserver-controlled namelen field and copies the dirent into a single\npage-cache page. The existing logic only checks whether the dirent fits\nin the remaining space of the current page and advances to a fresh page\nif not. It never checks whether the dirent itself exceeds PAGE_SIZE.\n\nAs a result, a malicious FUSE server can return a dirent with\nnamelen=4095, producing a serialized record size of 4120 bytes. On 4 KiB\npage systems this causes memcpy() to overflow the cache page by 24 bytes\ninto the following kernel page.\n\nReject dirents that cannot fit in a single page before copying them into\nthe readdir cache.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nfuse: rechazar entradas de directorio de tamaño excesivo en la caché de páginas\n\nfuse_add_dirent_to_cache() calcula un tamaño de entrada de directorio serializado a partir del campo ’namelen’ controlado por el servidor y copia la entrada de directorio en una única página de la caché de páginas. La lógica existente solo verifica si la entrada de directorio cabe en el espacio restante de la página actual y avanza a una página nueva si no es así. Nunca verifica si la propia entrada de directorio excede PAGE_SIZE.\n\nComo resultado, un servidor FUSE malicioso puede devolver una entrada de directorio con namelen=4095, produciendo un tamaño de registro serializado de 4120 bytes. En sistemas con páginas de 4 KiB, esto provoca que memcpy() desborde la página de caché en 24 bytes hacia la siguiente página del kernel.\n\nRechazar entradas de directorio que no pueden caber en una sola página antes de copiarlas en la caché de readdir.","source":"nvd"}],"published":"2026-05-01T13:53:36.048Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"27992ef80770d61a57f6c3a551735b08cefdffa3","fixed":"7de93abfaae1b2dc94da8a07a36421bd073f1d8f","status":"affected"},{"type":"git","introduced":"27992ef80770d61a57f6c3a551735b08cefdffa3","fixed":"474ce83c96a55f2eeb14dee2be375eeadfdacdf5","status":"affected"},{"type":"git","introduced":"27992ef80770d61a57f6c3a551735b08cefdffa3","fixed":"51a8de6c50bf947c8f534cd73da4c8f0a13e7bed","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.15","status":"unaffected"},{"type":"semver","introduced":"6.18.25","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.2","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.15","fixed":"6.18.25"},{"status":"affected","introduced":"6.19","fixed":"7.0.2"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"siemens","product":"simatic_s7-1500_tm_mfp_firmware","cpe":"cpe:2.3:o:siemens:simatic_s7-1500_tm_mfp_firmware:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/7de93abfaae1b2dc94da8a07a36421bd073f1d8f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/474ce83c96a55f2eeb14dee2be375eeadfdacdf5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/51a8de6c50bf947c8f534cd73da4c8f0a13e7bed","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31694","url":"https://www.cve.org/CVERecord?id=CVE-2026-31694","licence":"CVE Terms of Use","modified":"2026-10-15T01:17:53.619Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31694","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31694","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.332Z","epss":{"score":0.00289,"percentile":0.23146,"date":"2026-12-01T12:00:22.000Z"}}