{"id":"CVE-2026-139389","aliases":["CVE-2026-139389"],"related":[],"kind":"vulnerability","state":"published","title":"ocfs2: validate chunk and block counts of the local quota file","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:34:18.254Z","modified":"2026-12-01T06:17:45.610Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"9e33d69f553aaf11377307e8d6f82deb3385e351","fixed":"e1ea7a8462b9c3495bd51d2953b4c6f767864ba6","status":"affected"},{"type":"git","introduced":"9e33d69f553aaf11377307e8d6f82deb3385e351","fixed":"cff711aeeaebe97c890811570432c1a9b38b0507","status":"affected"},{"type":"git","introduced":"9e33d69f553aaf11377307e8d6f82deb3385e351","fixed":"3a1b4b31fb8b2495e80cfc441eeeff7efc66aca1","status":"affected"},{"type":"git","introduced":"9e33d69f553aaf11377307e8d6f82deb3385e351","fixed":"0a6b9398588bc689e1bd7753b61cf2f7880ec3a2","status":"affected"},{"type":"git","introduced":"9e33d69f553aaf11377307e8d6f82deb3385e351","fixed":"a57473aba28a1720fdd3ab7f1d9a229d638a6e56","status":"affected"},{"type":"git","introduced":"9e33d69f553aaf11377307e8d6f82deb3385e351","fixed":"784bafa48e475fe824556edc6f77133869d178e0","status":"affected"},{"type":"git","introduced":"9e33d69f553aaf11377307e8d6f82deb3385e351","fixed":"285d5188187af8f91e7d866f3e524527cde7b181","status":"affected"},{"type":"git","introduced":"9e33d69f553aaf11377307e8d6f82deb3385e351","fixed":"b10ef5d2c2083ea4c40e963c10a73a154793c5d4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.29","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.29","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e1ea7a8462b9c3495bd51d2953b4c6f767864ba6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cff711aeeaebe97c890811570432c1a9b38b0507","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3a1b4b31fb8b2495e80cfc441eeeff7efc66aca1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0a6b9398588bc689e1bd7753b61cf2f7880ec3a2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a57473aba28a1720fdd3ab7f1d9a229d638a6e56","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/784bafa48e475fe824556edc6f77133869d178e0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/285d5188187af8f91e7d866f3e524527cde7b181","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b10ef5d2c2083ea4c40e963c10a73a154793c5d4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139389","url":"https://www.cve.org/CVERecord?id=CVE-2026-139389","licence":"CVE Terms of Use","modified":"2026-12-01T05:42:47.485Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139389","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139389","licence":"Public domain","modified":"2026-12-01T06:17:45.610Z"}],"updatedAt":"2026-12-01T06:32:24.363Z","epss":{"score":0.00196,"percentile":0.09733,"date":"2026-12-01T12:00:22.000Z"}}