CVE-2026-53320 (GCVE-0-2026-53320)
Vulnerability from cvelistv5 – Published: 2026-06-26 19:41 – Updated: 2026-06-26 19:41
VLAI
Title
nilfs2: reject zero bd_oblocknr in nilfs_ioctl_mark_blocks_dirty()
Summary
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]
Severity
5.5 (Medium)
Assigner
References
8 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Linux | Linux |
Affected:
7942b919f7321f95a777d396ff7894a7a83dc9b0 , < e0a0c4903cbba351f0f5b5d104960d3a5b23202f
(git)
Affected: 7942b919f7321f95a777d396ff7894a7a83dc9b0 , < 9472d37799a0b9ff9b99639f35961ac2f0b3c9be (git) Affected: 7942b919f7321f95a777d396ff7894a7a83dc9b0 , < 65e07964b4b2daf9a54e686cf0fa72d74a9648a8 (git) Affected: 7942b919f7321f95a777d396ff7894a7a83dc9b0 , < b88f905d4449b70da6bda547be546e365e44352e (git) Affected: 7942b919f7321f95a777d396ff7894a7a83dc9b0 , < 4525658002be3ad310b16bf8db48c8adb6a55d32 (git) Affected: 7942b919f7321f95a777d396ff7894a7a83dc9b0 , < e5ff0ba4b6983cdbcc826efc201e7179ece5d46f (git) Affected: 7942b919f7321f95a777d396ff7894a7a83dc9b0 , < 94094e70fe292c9566502772d4d4d6d6a99204b1 (git) Affected: 7942b919f7321f95a777d396ff7894a7a83dc9b0 , < be3e5d10643d3be1cbac9d9939f220a99253f980 (git) |
|
| Linux | Linux |
Affected:
2.6.30
Unaffected: 0 , < 2.6.30 (semver) Unaffected: 5.10.258 , ≤ 5.10.* (semver) Unaffected: 5.15.209 , ≤ 5.15.* (semver) Unaffected: 6.1.175 , ≤ 6.1.* (semver) Unaffected: 6.6.141 , ≤ 6.6.* (semver) Unaffected: 6.12.91 , ≤ 6.12.* (semver) Unaffected: 6.18.33 , ≤ 6.18.* (semver) Unaffected: 7.0.10 , ≤ 7.0.* (semver) Unaffected: 7.1 , ≤ * (original_commit_for_fix) |
{
"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",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-53320",
"date": "2026-07-07",
"epss": "0.00121",
"percentile": "0.02273"
},
"nvd": "{\"cve\":{\"id\":\"CVE-2026-53320\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-06-26T20:17:25.330\",\"lastModified\":\"2026-07-06T20:12:14.333\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"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]\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"fs/nilfs2/ioctl.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"7942b919f7321f95a777d396ff7894a7a83dc9b0\",\"lessThan\":\"e0a0c4903cbba351f0f5b5d104960d3a5b23202f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"7942b919f7321f95a777d396ff7894a7a83dc9b0\",\"lessThan\":\"9472d37799a0b9ff9b99639f35961ac2f0b3c9be\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"7942b919f7321f95a777d396ff7894a7a83dc9b0\",\"lessThan\":\"65e07964b4b2daf9a54e686cf0fa72d74a9648a8\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"7942b919f7321f95a777d396ff7894a7a83dc9b0\",\"lessThan\":\"b88f905d4449b70da6bda547be546e365e44352e\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"7942b919f7321f95a777d396ff7894a7a83dc9b0\",\"lessThan\":\"4525658002be3ad310b16bf8db48c8adb6a55d32\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"7942b919f7321f95a777d396ff7894a7a83dc9b0\",\"lessThan\":\"e5ff0ba4b6983cdbcc826efc201e7179ece5d46f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"7942b919f7321f95a777d396ff7894a7a83dc9b0\",\"lessThan\":\"94094e70fe292c9566502772d4d4d6d6a99204b1\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"7942b919f7321f95a777d396ff7894a7a83dc9b0\",\"lessThan\":\"be3e5d10643d3be1cbac9d9939f220a99253f980\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"fs/nilfs2/ioctl.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"2.6.30\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"2.6.30\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.258\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.209\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.175\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.141\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.91\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.33\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.0.10\",\"lessThanOrEqual\":\"7.0.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"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}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"NVD-CWE-noinfo\"}]}],\"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\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/4525658002be3ad310b16bf8db48c8adb6a55d32\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/65e07964b4b2daf9a54e686cf0fa72d74a9648a8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/94094e70fe292c9566502772d4d4d6d6a99204b1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/9472d37799a0b9ff9b99639f35961ac2f0b3c9be\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/b88f905d4449b70da6bda547be546e365e44352e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/be3e5d10643d3be1cbac9d9939f220a99253f980\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/e0a0c4903cbba351f0f5b5d104960d3a5b23202f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/e5ff0ba4b6983cdbcc826efc201e7179ece5d46f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}"
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…