{"api_version":"1","generated_at":"2026-07-12T10:30:21+00:00","cve":"CVE-2026-53320","urls":{"html":"https://cve.report/CVE-2026-53320","api":"https://cve.report/api/cve/CVE-2026-53320.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-53320","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-53320"},"summary":{"title":"nilfs2: reject zero bd_oblocknr in nilfs_ioctl_mark_blocks_dirty()","description":"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]","state":"PUBLISHED","assigner":"Linux","published_at":"2026-06-26 20:17:25","updated_at":"2026-07-06 20:12:14"},"problem_types":["NVD-CWE-noinfo"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"5.5","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}}],"references":[{"url":"https://git.kernel.org/stable/c/e0a0c4903cbba351f0f5b5d104960d3a5b23202f","name":"https://git.kernel.org/stable/c/e0a0c4903cbba351f0f5b5d104960d3a5b23202f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4525658002be3ad310b16bf8db48c8adb6a55d32","name":"https://git.kernel.org/stable/c/4525658002be3ad310b16bf8db48c8adb6a55d32","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/94094e70fe292c9566502772d4d4d6d6a99204b1","name":"https://git.kernel.org/stable/c/94094e70fe292c9566502772d4d4d6d6a99204b1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/65e07964b4b2daf9a54e686cf0fa72d74a9648a8","name":"https://git.kernel.org/stable/c/65e07964b4b2daf9a54e686cf0fa72d74a9648a8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b88f905d4449b70da6bda547be546e365e44352e","name":"https://git.kernel.org/stable/c/b88f905d4449b70da6bda547be546e365e44352e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e5ff0ba4b6983cdbcc826efc201e7179ece5d46f","name":"https://git.kernel.org/stable/c/e5ff0ba4b6983cdbcc826efc201e7179ece5d46f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/be3e5d10643d3be1cbac9d9939f220a99253f980","name":"https://git.kernel.org/stable/c/be3e5d10643d3be1cbac9d9939f220a99253f980","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9472d37799a0b9ff9b99639f35961ac2f0b3c9be","name":"https://git.kernel.org/stable/c/9472d37799a0b9ff9b99639f35961ac2f0b3c9be","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-53320","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53320","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7942b919f7321f95a777d396ff7894a7a83dc9b0 e0a0c4903cbba351f0f5b5d104960d3a5b23202f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7942b919f7321f95a777d396ff7894a7a83dc9b0 9472d37799a0b9ff9b99639f35961ac2f0b3c9be git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7942b919f7321f95a777d396ff7894a7a83dc9b0 65e07964b4b2daf9a54e686cf0fa72d74a9648a8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7942b919f7321f95a777d396ff7894a7a83dc9b0 b88f905d4449b70da6bda547be546e365e44352e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7942b919f7321f95a777d396ff7894a7a83dc9b0 4525658002be3ad310b16bf8db48c8adb6a55d32 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7942b919f7321f95a777d396ff7894a7a83dc9b0 e5ff0ba4b6983cdbcc826efc201e7179ece5d46f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7942b919f7321f95a777d396ff7894a7a83dc9b0 94094e70fe292c9566502772d4d4d6d6a99204b1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7942b919f7321f95a777d396ff7894a7a83dc9b0 be3e5d10643d3be1cbac9d9939f220a99253f980 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.30","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.30 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.258 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.209 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.175 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.141 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.91 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.33 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0.10 7.0.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2026","cve_id":"53320","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"53320","cve":"CVE-2026-53320","epss":"0.001730000","percentile":"0.069080000","score_date":"2026-07-04","updated_at":"2026-07-05 00:02:27"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/nilfs2/ioctl.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"e0a0c4903cbba351f0f5b5d104960d3a5b23202f","status":"affected","version":"7942b919f7321f95a777d396ff7894a7a83dc9b0","versionType":"git"},{"lessThan":"9472d37799a0b9ff9b99639f35961ac2f0b3c9be","status":"affected","version":"7942b919f7321f95a777d396ff7894a7a83dc9b0","versionType":"git"},{"lessThan":"65e07964b4b2daf9a54e686cf0fa72d74a9648a8","status":"affected","version":"7942b919f7321f95a777d396ff7894a7a83dc9b0","versionType":"git"},{"lessThan":"b88f905d4449b70da6bda547be546e365e44352e","status":"affected","version":"7942b919f7321f95a777d396ff7894a7a83dc9b0","versionType":"git"},{"lessThan":"4525658002be3ad310b16bf8db48c8adb6a55d32","status":"affected","version":"7942b919f7321f95a777d396ff7894a7a83dc9b0","versionType":"git"},{"lessThan":"e5ff0ba4b6983cdbcc826efc201e7179ece5d46f","status":"affected","version":"7942b919f7321f95a777d396ff7894a7a83dc9b0","versionType":"git"},{"lessThan":"94094e70fe292c9566502772d4d4d6d6a99204b1","status":"affected","version":"7942b919f7321f95a777d396ff7894a7a83dc9b0","versionType":"git"},{"lessThan":"be3e5d10643d3be1cbac9d9939f220a99253f980","status":"affected","version":"7942b919f7321f95a777d396ff7894a7a83dc9b0","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/nilfs2/ioctl.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.30"},{"lessThan":"2.6.30","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.258","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.209","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.175","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.141","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.91","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.33","versionType":"semver"},{"lessThanOrEqual":"7.0.*","status":"unaffected","version":"7.0.10","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.258","versionStartIncluding":"2.6.30","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.209","versionStartIncluding":"2.6.30","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.175","versionStartIncluding":"2.6.30","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.141","versionStartIncluding":"2.6.30","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.91","versionStartIncluding":"2.6.30","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.33","versionStartIncluding":"2.6.30","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.0.10","versionStartIncluding":"2.6.30","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.1","versionStartIncluding":"2.6.30","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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]"}],"providerMetadata":{"dateUpdated":"2026-06-26T19:41:11.932Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/e0a0c4903cbba351f0f5b5d104960d3a5b23202f"},{"url":"https://git.kernel.org/stable/c/9472d37799a0b9ff9b99639f35961ac2f0b3c9be"},{"url":"https://git.kernel.org/stable/c/65e07964b4b2daf9a54e686cf0fa72d74a9648a8"},{"url":"https://git.kernel.org/stable/c/b88f905d4449b70da6bda547be546e365e44352e"},{"url":"https://git.kernel.org/stable/c/4525658002be3ad310b16bf8db48c8adb6a55d32"},{"url":"https://git.kernel.org/stable/c/e5ff0ba4b6983cdbcc826efc201e7179ece5d46f"},{"url":"https://git.kernel.org/stable/c/94094e70fe292c9566502772d4d4d6d6a99204b1"},{"url":"https://git.kernel.org/stable/c/be3e5d10643d3be1cbac9d9939f220a99253f980"}],"title":"nilfs2: reject zero bd_oblocknr in nilfs_ioctl_mark_blocks_dirty()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-53320","datePublished":"2026-06-26T19:41:11.932Z","dateReserved":"2026-06-09T07:44:35.398Z","dateUpdated":"2026-06-26T19:41:11.932Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-06-26 20:17:25","lastModifiedDate":"2026-07-06 20:12:14","problem_types":["NVD-CWE-noinfo"],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":3.6}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.30","versionEndExcluding":"5.10.258","matchCriteriaId":"0667B78C-D301-44C7-8283-B3C136C52986"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.209","matchCriteriaId":"919C10A9-7951-4A74-BADD-C135A0A8D8B4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.1.175","matchCriteriaId":"92385813-D91D-480D-83A1-F423D2CBB2BA"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.6.141","matchCriteriaId":"97A9FFFA-22BB-4D5C-9790-5A2286E392F7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.12.91","matchCriteriaId":"C918746B-DE6F-448F-A93E-A04C5481688D"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.18.33","matchCriteriaId":"96D99E49-380D-43AB-BDBA-25C3AD018A9C"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.0.10","matchCriteriaId":"A13475D2-59BF-4716-94B5-7C1D239A2CF4"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"53320","Ordinal":"1","Title":"nilfs2: reject zero bd_oblocknr in nilfs_ioctl_mark_blocks_dirty","CVE":"CVE-2026-53320","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"53320","Ordinal":"1","NoteData":"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]","Type":"Description","Title":"nilfs2: reject zero bd_oblocknr in nilfs_ioctl_mark_blocks_dirty"}]}}}