VDB

CVE-2026-53320

CVE-2026-53320 PUBLISHED

nilfs2: reject zero bd_oblocknr in nilfs_ioctl_mark_blocks_dirty()

Reported by linux · Published June 26, 2026

In the Linux kernel, the following vulnerability has been resolved: nilfs2: reject zero bd_oblocknr in nilfs_ioctl_mark_blocks_dirty() nilfs_ioctl_mark_blocks_dirty() uses bd_oblocknr to detect dead blocks by comparing it with the current block number bd_blocknr. If they differ, the block is considered dead and skipped. However, bd_oblocknr should never be 0 since block 0 typically stores the primary superblock and is never a valid GC target block. A corrupted ioctl request with bd_oblocknr set to 0 causes the comparison to incorrectly match when the lookup returns -ENOENT and sets bd_blocknr to 0, bypassing the dead block check and calling nilfs_bmap_mark() on a non-existent block. This causes nilfs_btree_do_lookup() to return -ENOENT, triggering the WARN_ON(ret == -ENOENT). Fix this by rejecting ioctl requests with bd_oblocknr set to 0 at the beginning of each iteration. [ryusuke: slightly modified the commit message and comments for accuracy]

EPSS 0.17% · 6.8th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux7.0.10, 6.18.33, 6.12.91, 6.6.141, 6.1.175, 5.15.209, 5.10.258

Risk scores

EPSS Score
0.17%
6.8th percentile

Affected products

VendorProductVersions
LinuxLinux7942b919f7321f95a777d396ff7894a7a83dc9b0, 7942b919f7321f95a777d396ff7894a7a83dc9b0, 7942b919f7321f95a777d396ff7894a7a83dc9b0
LinuxLinux2.6.30, 0, 5.10.258
linuxlinux_kernel2.6.30, 2.6.30, 2.6.30
LinuxLinux7942b919f7321f95a777d396ff7894a7a83dc9b0, 7942b919f7321f95a777d396ff7894a7a83dc9b0, 7942b919f7321f95a777d396ff7894a7a83dc9b0

Timeline

  • Jun 26, 2026 CVE Published
  • Jun 27, 2026 EPSS Score (13 in total, the first dated here)
  • Jun 27, 2026 Coalition ESS Score
  • Jun 29, 2026 Security Advisory (31 in total, the first dated here)
  • Aug 11, 2026 Distribution Patch (29 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-53320
vulnetix vdb fixes CVE-2026-53320

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-53320/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›