{"id":"CVE-2026-31463","aliases":["CVE-2026-31463"],"related":[],"kind":"vulnerability","state":"published","title":"iomap: fix invalid folio access when i_blkbits differs from I/O granularity","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\niomap: fix invalid folio access when i_blkbits differs from I/O granularity\n\nCommit aa35dd5cbc06 (\"iomap: fix invalid folio access after\nfolio_end_read()\") partially addressed invalid folio access for folios\nwithout an ifs attached, but it did not handle the case where\n1 << inode->i_blkbits matches the folio size but is different from the\ngranularity used for the IO, which means IO can be submitted for less\nthan the full folio for the !ifs case.\n\nIn this case, the condition:\n\n  if (*bytes_submitted == folio_len)\n    ctx->cur_folio = NULL;\n\nin iomap_read_folio_iter() will not invalidate ctx->cur_folio, and\niomap_read_end() will still be called on the folio even though the IO\nhelper owns it and will finish the read on it.\n\nFix this by unconditionally invalidating ctx->cur_folio for the !ifs\ncase.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\niomap: fix invalid folio access when i_blkbits differs from I/O granularity\n\nCommit aa35dd5cbc06 (\"iomap: fix invalid folio access after\nfolio_end_read()\") partially addressed invalid folio access for folios\nwithout an ifs attached, but it did not handle the case where\n1 << inode->i_blkbits matches the folio size but is different from the\ngranularity used for the IO, which means IO can be submitted for less\nthan the full folio for the !ifs case.\n\nIn this case, the condition:\n\n  if (*bytes_submitted == folio_len)\n    ctx->cur_folio = NULL;\n\nin iomap_read_folio_iter() will not invalidate ctx->cur_folio, and\niomap_read_end() will still be called on the folio even though the IO\nhelper owns it and will finish the read on it.\n\nFix this by unconditionally invalidating ctx->cur_folio for the !ifs\ncase.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\niomap: corrige el acceso a folio inválido cuando i_blkbits difiere de la granularidad de E/S\n\nEl commit aa35dd5cbc06 (’iomap: corrige el acceso a folio inválido después de folio_end_read()’) abordó parcialmente el acceso a folio inválido para folios sin un ’ifs’ adjunto, pero no manejó el caso en que 1 << inode  ->  i_blkbits coincide con el tamaño del folio pero es diferente de la granularidad utilizada para la E/S, lo que significa que la E/S puede enviarse por menos del folio completo para el caso !ifs.\n\nEn este caso, la condición:\n\n  if (bytes_submitted == folio_len)\n    ctx  ->  cur_folio = NULL;\n\nen iomap_read_folio_iter() no invalidará ctx  ->  cur_folio, y iomap_read_end() seguirá siendo llamado en el folio aunque el ayudante de E/S lo posea y finalizará la lectura en él.\n\nSoluciona esto invalidando incondicionalmente ctx  ->  cur_folio para el caso !ifs.","source":"nvd"}],"published":"2026-04-22T13:53:54.224Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b2f35ac4146d32d4424aaa941bbc681f12c1b9e6","fixed":"4a927f670cdb0def226f9f85f42a9f19d9e09c88","status":"affected"},{"type":"git","introduced":"b2f35ac4146d32d4424aaa941bbc681f12c1b9e6","fixed":"bd71fb3fea9945987053968f028a948997cba8cc","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","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.19","fixed":"6.19.11"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/4a927f670cdb0def226f9f85f42a9f19d9e09c88","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd71fb3fea9945987053968f028a948997cba8cc","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31463","url":"https://www.cve.org/CVERecord?id=CVE-2026-31463","licence":"CVE Terms of Use","modified":"2026-08-05T12:22:44.255Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31463","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31463","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.274Z","epss":{"score":0.00394,"percentile":0.35712,"date":"2026-12-01T12:00:22.000Z"}}