{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139389","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.931Z","datePublished":"2026-11-30T13:34:18.254Z","dateUpdated":"2026-12-01T05:42:47.485Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:42:47.485Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: validate chunk and block counts of the local quota file\n\nocfs2_local_read_info() trusts dqi_chunks and dqi_blocks from the local\nquota file header.  If dqi_blocks is too small,\nocfs2_extend_local_quota_file() computes a bogus chunk length, extends the\nfile, and maps logical block dqi_blocks, which is already in the inode's\nmetadata cache (the header or a chunk header read at mount).  sb_getblk()\nreturns that cached buffer and ocfs2_set_new_buffer_uptodate() hits\nBUG_ON(ocfs2_buffer_cached()):\n\n  kernel BUG at fs/ocfs2/uptodate.c:509!\n  ocfs2_extend_local_quota_file+0x45c/0x1100\n  ocfs2_create_local_dquot+0x8ac/0xb50\n  ocfs2_acquire_dquot+0x614/0xae0\n  ocfs2_get_init_inode+0xe9/0x1b0\n  ocfs2_mkdir+0x174/0x430\n\nocfs2_local_quota_add_chunk() has the same exposure.\n\nReject a header whose counts don't fit the chunk layout or exceed i_size.\n\nReproduced with a crafted image (dqi_blocks = 1, chunk 0 dqc_free = 0);\nsyzbot has no reproducer for this report."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI: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.\nS:U - The corruption and the crash both stay inside the kernel that mounted the image. No VM, IOMMU or sandbox boundary is crossed.\nC: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.\nI: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.\nA: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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/quota_local.c"],"versions":[{"version":"9e33d69f553aaf11377307e8d6f82deb3385e351","lessThan":"e1ea7a8462b9c3495bd51d2953b4c6f767864ba6","status":"affected","versionType":"git"},{"version":"9e33d69f553aaf11377307e8d6f82deb3385e351","lessThan":"cff711aeeaebe97c890811570432c1a9b38b0507","status":"affected","versionType":"git"},{"version":"9e33d69f553aaf11377307e8d6f82deb3385e351","lessThan":"3a1b4b31fb8b2495e80cfc441eeeff7efc66aca1","status":"affected","versionType":"git"},{"version":"9e33d69f553aaf11377307e8d6f82deb3385e351","lessThan":"0a6b9398588bc689e1bd7753b61cf2f7880ec3a2","status":"affected","versionType":"git"},{"version":"9e33d69f553aaf11377307e8d6f82deb3385e351","lessThan":"a57473aba28a1720fdd3ab7f1d9a229d638a6e56","status":"affected","versionType":"git"},{"version":"9e33d69f553aaf11377307e8d6f82deb3385e351","lessThan":"784bafa48e475fe824556edc6f77133869d178e0","status":"affected","versionType":"git"},{"version":"9e33d69f553aaf11377307e8d6f82deb3385e351","lessThan":"285d5188187af8f91e7d866f3e524527cde7b181","status":"affected","versionType":"git"},{"version":"9e33d69f553aaf11377307e8d6f82deb3385e351","lessThan":"b10ef5d2c2083ea4c40e963c10a73a154793c5d4","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ocfs2/quota_local.c"],"versions":[{"version":"2.6.29","status":"affected"},{"version":"0","lessThan":"2.6.29","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/e1ea7a8462b9c3495bd51d2953b4c6f767864ba6"},{"url":"https://git.kernel.org/stable/c/cff711aeeaebe97c890811570432c1a9b38b0507"},{"url":"https://git.kernel.org/stable/c/3a1b4b31fb8b2495e80cfc441eeeff7efc66aca1"},{"url":"https://git.kernel.org/stable/c/0a6b9398588bc689e1bd7753b61cf2f7880ec3a2"},{"url":"https://git.kernel.org/stable/c/a57473aba28a1720fdd3ab7f1d9a229d638a6e56"},{"url":"https://git.kernel.org/stable/c/784bafa48e475fe824556edc6f77133869d178e0"},{"url":"https://git.kernel.org/stable/c/285d5188187af8f91e7d866f3e524527cde7b181"},{"url":"https://git.kernel.org/stable/c/b10ef5d2c2083ea4c40e963c10a73a154793c5d4"}],"title":"ocfs2: validate chunk and block counts of the local quota file","x_generator":{"engine":"bippy-1.2.0"}}}}