{"id":"CVE-2026-80807","aliases":["CVE-2026-80807"],"related":[],"kind":"vulnerability","state":"published","title":"nilfs2: reject invalid block index in GC ioctl","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: reject invalid block index in GC ioctl\n\nSyzbot reported list corruption caused by a double list_add_tail() call on\nbh->b_assoc_buffers within nilfs_lookup_dirty_data_buffers().\n\nAnalysis revealed that the root cause was the insertion of a page/folio\nwith a page index of ULONG_MAX into the page cache via the GC ioctl.\nfilemap_get_folios_tag(), called by nilfs_lookup_dirty_data_buffers(),\nrepeatedly detects a dirty folio with a page index of ULONG_MAX due to\nindex wrap-around, leading to duplicate processing of dirty buffers.\n\nAs a preparatory step, the GC ioctl loads the page/folio of the block to\nbe moved during GC and inserts it into the page cache based on information\nin the nilfs_vdesc structure passed as an argument.  Normally, this does\nnot cause issues because the user-space GC library configures the\nnilfs_vdesc structure properly.  However, since there is no range check on\nthe parameters determining the page index, a request with artificially\ncrafted parameters -- such as those generated by Syzbot -- can result in a\npage/folio being inserted with a page index of ULONG_MAX, triggering the\nabove problem.\n\nThis resolves the issue by checking the ranges of 'vd_offset' and\n'vd_vblocknr' in the nilfs_vdesc structure that determine the page index,\nthereby preventing the invalid page/folio insertions.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: reject invalid block index in GC ioctl\n\nSyzbot reported list corruption caused by a double list_add_tail() call on\nbh->b_assoc_buffers within nilfs_lookup_dirty_data_buffers().\n\nAnalysis revealed that the root cause was the insertion of a page/folio\nwith a page index of ULONG_MAX into the page cache via the GC ioctl.\nfilemap_get_folios_tag(), called by nilfs_lookup_dirty_data_buffers(),\nrepeatedly detects a dirty folio with a page index of ULONG_MAX due to\nindex wrap-around, leading to duplicate processing of dirty buffers.\n\nAs a preparatory step, the GC ioctl loads the page/folio of the block to\nbe moved during GC and inserts it into the page cache based on information\nin the nilfs_vdesc structure passed as an argument.  Normally, this does\nnot cause issues because the user-space GC library configures the\nnilfs_vdesc structure properly.  However, since there is no range check on\nthe parameters determining the page index, a request with artificially\ncrafted parameters -- such as those generated by Syzbot -- can result in a\npage/folio being inserted with a page index of ULONG_MAX, triggering the\nabove problem.\n\nThis resolves the issue by checking the ranges of 'vd_offset' and\n'vd_vblocknr' in the nilfs_vdesc structure that determine the page index,\nthereby preventing the invalid page/folio insertions.","source":"cvelist"}],"published":"2026-09-04T15:13:23.605Z","modified":"2026-10-19T09:17:15.380Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"898404cdf882d7b54f1132f75570984ca3214796","status":"affected"},{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"ba8a8b563a28d358c45c62a306d421434a058648","status":"affected"},{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"3bd064ccc70b85f9a3d53aece29dc8473be5a226","status":"affected"},{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"a5e776e2937581d67ec5b9b4d27b0f70d7baa6b1","status":"affected"},{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"68aa9ab6f8f2895713aa6ddf781463ed8ea5ba44","status":"affected"},{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"e447f7edb99bd00cec63d6f3049e2e5074946f71","status":"affected"},{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"ec6ddf271dfa4c7e3147bc2c8b2bad4315f316a1","status":"affected"},{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"fbcfb75c20d71a5b542ad4ac3b79d10b997c8152","status":"affected"},{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"a1735eae55448bc79c2da6593455791e886f6ed8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.30","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.30","status":"unaffected"},{"type":"semver","introduced":"5.10.269","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.220","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.187","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.156","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.108","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.47","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.11","lastAffected":"7.1.*","status":"unaffected"},{"type":"semver","introduced":"7.2.1","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/898404cdf882d7b54f1132f75570984ca3214796","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba8a8b563a28d358c45c62a306d421434a058648","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3bd064ccc70b85f9a3d53aece29dc8473be5a226","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a5e776e2937581d67ec5b9b4d27b0f70d7baa6b1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/68aa9ab6f8f2895713aa6ddf781463ed8ea5ba44","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e447f7edb99bd00cec63d6f3049e2e5074946f71","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ec6ddf271dfa4c7e3147bc2c8b2bad4315f316a1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fbcfb75c20d71a5b542ad4ac3b79d10b997c8152","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a1735eae55448bc79c2da6593455791e886f6ed8","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80807","url":"https://www.cve.org/CVERecord?id=CVE-2026-80807","licence":"CVE Terms of Use","modified":"2026-10-19T08:44:00.360Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80807","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80807","licence":"Public domain","modified":"2026-10-19T09:17:15.380Z"}],"updatedAt":"2026-11-25T22:59:36.332Z","epss":{"score":0.00201,"percentile":0.10501,"date":"2026-12-01T12:00:22.000Z"}}