CVE-2026-139389
published high CVSS 3.1 · 7.8ocfs2: validate chunk and block counts of the local quota file
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux9e33d69f553aaf11377307e8d6f82deb3385e351 to < e1ea7a8462b9c3495bd51d2953b4c6f767864ba6 · 9e33d69f553aaf11377307e8d6f82deb3385e351 to < cff711aeeaebe97c890811570432c1a9b38b0507 · 9e33d69f553aaf11377307e8d6f82deb3385e351 to < 3a1b4b31fb8b2495e80cfc441eeeff7efc66aca1 · 9e33d69f553aaf11377307e8d6f82deb3385e351 to < 0a6b9398588bc689e1bd7753b61cf2f7880ec3a2 · 9e33d69f553aaf11377307e8d6f82deb3385e351 to < a57473aba28a1720fdd3ab7f1d9a229d638a6e56 · 9e33d69f553aaf11377307e8d6f82deb3385e351 to < 784bafa48e475fe824556edc6f77133869d178e0 · 9e33d69f553aaf11377307e8d6f82deb3385e351 to < 285d5188187af8f91e7d866f3e524527cde7b181 · 9e33d69f553aaf11377307e8d6f82deb3385e351 to < b10ef5d2c2083ea4c40e963c10a73a154793c5d4 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.29 (affected) · 0 to < 2.6.29 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: ocfs2: validate chunk and block counts of the local quota file ocfs2_local_read_info() trusts dqi_chunks and dqi_blocks from the local quota file header. If dqi_blocks is too small, ocfs2_extend_local_quota_file() computes a bogus chunk length, extends the file, and maps logical block dqi_blocks, which is already in the inode's metadata cache (the header or a chunk header read at mount). sb_getblk() returns that cached buffer and ocfs2_set_new_buffer_uptodate() hits BUG_ON(ocfs2_buffer_cached()): kernel BUG at fs/ocfs2/uptodate.c:509! ocfs2_extend_local_quota_file+0x45c/0x1100 ocfs2_create_local_dquot+0x8ac/0xb50 ocfs2_acquire_dquot+0x614/0xae0 ocfs2_get_init_inode+0xe9/0x1b0 ocfs2_mkdir+0x174/0x430 ocfs2_local_quota_add_chunk() has the same exposure. Reject a header whose counts don't fit the chunk layout or exceed i_size. Reproduced with a crafted image (dqi_blocks = 1, chunk 0 dqc_free = 0); syzbot has no reproducer for this report.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bad dqi_chunks/dqi_blocks come from the on-disk local quota file header that ocfs2_local_read_info() reads at mount. They are tripped by a local mkdir/create via ocfs2_acquire_dquot()->ocfs2_create_local_dquot()->ocfs2_extend_local_quota_file(). No network protocol carries the malformed values. AC:L - Once the crafted image is mounted, the first inode creation for any uid/gid deterministically takes the extend path. The image author picks dqi_blocks to hit the cached-block BUG_ON or to place the out-of-bounds bit anywhere, so nothing outside the attacker's control is involved. PR:N - The attacker only supplies the image. ocfs2_fs_type is FS_REQUIRES_DEV and not FS_USERNS_MOUNT, so the mount itself is a privileged victim action, scored under UI:R rather than as attacker privilege. UI:R - A victim or an automount has to mount the attacker-supplied ocfs2 image (local-mount feature, quota enabled) before any file creation reaches the corrupted quota header. S:U - The corruption and the crash both stay inside the kernel that mounted the image. No VM, IOMMU or sandbox boundary is crossed. C:H - With dqi_blocks too large, ocfs2_find_free_entry() computes a len past the chunk bitmap and scans adjacent kernel memory. The extend path also gives an attacker-placed bit write into kernel memory that could be used to reach disclosure. I:H - ocfs2_extend_local_quota_file() returns offset=chunk_blocks*epb, with chunk_blocks taken from the unchecked dqi_blocks. olq_alloc_dquot() then calls ocfs2_set_bit_unaligned() up to ~256MB past the chunk header bh, and ocfs2_local_release_dquot() later clears that bit, giving a repeatable out-of-bounds kernel write. A:H - A dqi_blocks that is too small makes the extend or add-chunk path map an already-cached header block. ocfs2_set_new_buffer_uptodate() then hits BUG_ON(ocfs2_buffer_cached()) and the kernel crashes. The out-of-bounds bit writes can also crash it.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 9e33d69f553aaf11377307e8d6f82deb3385e351 to < e1ea7a8462b9c3495bd51d2953b4c6f767864ba6 (affected · git)9e33d69f553aaf11377307e8d6f82deb3385e351 to < cff711aeeaebe97c890811570432c1a9b38b0507 (affected · git)9e33d69f553aaf11377307e8d6f82deb3385e351 to < 3a1b4b31fb8b2495e80cfc441eeeff7efc66aca1 (affected · git)9e33d69f553aaf11377307e8d6f82deb3385e351 to < 0a6b9398588bc689e1bd7753b61cf2f7880ec3a2 (affected · git)9e33d69f553aaf11377307e8d6f82deb3385e351 to < a57473aba28a1720fdd3ab7f1d9a229d638a6e56 (affected · git)9e33d69f553aaf11377307e8d6f82deb3385e351 to < 784bafa48e475fe824556edc6f77133869d178e0 (affected · git)9e33d69f553aaf11377307e8d6f82deb3385e351 to < 285d5188187af8f91e7d866f3e524527cde7b181 (affected · git)9e33d69f553aaf11377307e8d6f82deb3385e351 to < b10ef5d2c2083ea4c40e963c10a73a154793c5d4 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.29 (affected)0 to < 2.6.29 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/0a6b9398588bc689e1bd7753b61cf2f7880ec3a2
- https://git.kernel.org/stable/c/285d5188187af8f91e7d866f3e524527cde7b181
- https://git.kernel.org/stable/c/3a1b4b31fb8b2495e80cfc441eeeff7efc66aca1
- https://git.kernel.org/stable/c/784bafa48e475fe824556edc6f77133869d178e0
- https://git.kernel.org/stable/c/a57473aba28a1720fdd3ab7f1d9a229d638a6e56
- https://git.kernel.org/stable/c/b10ef5d2c2083ea4c40e963c10a73a154793c5d4
- https://git.kernel.org/stable/c/cff711aeeaebe97c890811570432c1a9b38b0507
- https://git.kernel.org/stable/c/e1ea7a8462b9c3495bd51d2953b4c6f767864ba6
Provider assertions
1Linux · cna
ocfs2: validate chunk and block counts of the local quota file
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d89a659520820fe1d3f6fefc0a9ddffd81a1d3a579a3ce3778b4f628b9370e58
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record