{"id":"CVE-2026-53320","aliases":["CVE-2026-53320"],"related":[],"kind":"vulnerability","state":"published","title":"nilfs2: reject zero bd_oblocknr in nilfs_ioctl_mark_blocks_dirty()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: reject zero bd_oblocknr in nilfs_ioctl_mark_blocks_dirty()\n\nnilfs_ioctl_mark_blocks_dirty() uses bd_oblocknr to detect dead blocks\nby comparing it with the current block number bd_blocknr. If they differ,\nthe block is considered dead and skipped.\n\nHowever, bd_oblocknr should never be 0 since block 0 typically stores the\nprimary superblock and is never a valid GC target block. A corrupted ioctl\nrequest with bd_oblocknr set to 0 causes the comparison to incorrectly\nmatch when the lookup returns -ENOENT and sets bd_blocknr to 0, bypassing\nthe dead block check and calling nilfs_bmap_mark() on a non-existent\nblock. This causes nilfs_btree_do_lookup() to return -ENOENT, triggering\nthe WARN_ON(ret == -ENOENT).\n\nFix this by rejecting ioctl requests with bd_oblocknr set to 0 at the\nbeginning of each iteration.\n\n[ryusuke: slightly modified the commit message and comments for accuracy]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: reject zero bd_oblocknr in nilfs_ioctl_mark_blocks_dirty()\n\nnilfs_ioctl_mark_blocks_dirty() uses bd_oblocknr to detect dead blocks\nby comparing it with the current block number bd_blocknr. If they differ,\nthe block is considered dead and skipped.\n\nHowever, bd_oblocknr should never be 0 since block 0 typically stores the\nprimary superblock and is never a valid GC target block. A corrupted ioctl\nrequest with bd_oblocknr set to 0 causes the comparison to incorrectly\nmatch when the lookup returns -ENOENT and sets bd_blocknr to 0, bypassing\nthe dead block check and calling nilfs_bmap_mark() on a non-existent\nblock. This causes nilfs_btree_do_lookup() to return -ENOENT, triggering\nthe WARN_ON(ret == -ENOENT).\n\nFix this by rejecting ioctl requests with bd_oblocknr set to 0 at the\nbeginning of each iteration.\n\n[ryusuke: slightly modified the commit message and comments for accuracy]","source":"cvelist"}],"published":"2026-06-26T19:41:11.932Z","modified":"2026-07-06T20:12:14.333Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"e0a0c4903cbba351f0f5b5d104960d3a5b23202f","status":"affected"},{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"9472d37799a0b9ff9b99639f35961ac2f0b3c9be","status":"affected"},{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"65e07964b4b2daf9a54e686cf0fa72d74a9648a8","status":"affected"},{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"b88f905d4449b70da6bda547be546e365e44352e","status":"affected"},{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"4525658002be3ad310b16bf8db48c8adb6a55d32","status":"affected"},{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"e5ff0ba4b6983cdbcc826efc201e7179ece5d46f","status":"affected"},{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"94094e70fe292c9566502772d4d4d6d6a99204b1","status":"affected"},{"type":"git","introduced":"7942b919f7321f95a777d396ff7894a7a83dc9b0","fixed":"be3e5d10643d3be1cbac9d9939f220a99253f980","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.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.141","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.91","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.33","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.10","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":"2.6.30","fixed":"5.10.258"},{"status":"affected","introduced":"5.11","fixed":"5.15.209"},{"status":"affected","introduced":"5.16","fixed":"6.1.175"},{"status":"affected","introduced":"6.2","fixed":"6.6.141"},{"status":"affected","introduced":"6.7","fixed":"6.12.91"},{"status":"affected","introduced":"6.13","fixed":"6.18.33"},{"status":"affected","introduced":"6.19","fixed":"7.0.10"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e0a0c4903cbba351f0f5b5d104960d3a5b23202f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9472d37799a0b9ff9b99639f35961ac2f0b3c9be","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/65e07964b4b2daf9a54e686cf0fa72d74a9648a8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b88f905d4449b70da6bda547be546e365e44352e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4525658002be3ad310b16bf8db48c8adb6a55d32","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e5ff0ba4b6983cdbcc826efc201e7179ece5d46f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/94094e70fe292c9566502772d4d4d6d6a99204b1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/be3e5d10643d3be1cbac9d9939f220a99253f980","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53320","url":"https://www.cve.org/CVERecord?id=CVE-2026-53320","licence":"CVE Terms of Use","modified":"2026-06-26T19:41:11.932Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53320","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53320","licence":"Public domain","modified":"2026-07-06T20:12:14.333Z"}],"updatedAt":"2026-11-25T22:59:26.537Z","epss":{"score":0.00121,"percentile":0.02126,"date":"2026-12-01T12:00:22.000Z"}}