{"id":"CVE-2026-100097","aliases":["CVE-2026-100097"],"related":[],"kind":"vulnerability","state":"published","title":"f2fs: convert inline quota files when turning quota on","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: convert inline quota files when turning quota on\n\nWith a block size larger than 4KB, the inline data area is large enough\nto hold a freshly created quota file (quotacheck writes 6KB), so\naquota.user/aquota.group stay inline after quotaon. f2fs does not\nexpect quota files to be inline, and this causes two problems:\n\n1. Quota file corruption. f2fs_write_single_data_page() sends quota\n   inodes straight to f2fs_do_write_data_page(), which sees NULL_ADDR\n   for index 0, treats the folio as truncated and drops it. Updates to\n   the quota file are lost once the folio is reclaimed, so the quota\n   tree reads stale data: chown/chgrp fail with EIO and quota entries\n   of users disappear. For example, the kernel log shows:\n\n     find_free_dqentry: Data block full but it shouldn't\n     qtree_write_dquot: Error -5 occurred while creating quota\n\n2. Deadlock. Writing a quota file past MAX_INLINE_DATA converts it from\n   f2fs_write_begin() under f2fs_lock_op(). dquot_transfer() is called\n   from f2fs_setattr() with f2fs_lock_op() already held, so chown/chgrp\n   take cp_rwsem for read twice and hang, together with the checkpoint\n   and every other writer, once a checkpoint waits for cp_rwsem in\n   between (seen with generic/232).\n\nQuota files only grow and there are at most MAXQUOTAS of them, so there\nis no point in keeping them inline. Convert them in f2fs_quota_on() and\nafter dquot_quota_on_mount(), which keeps every block size on the same\npath as 4KB blocks, where quota files never fit inline. Quota sysfiles\nare created by mkfs with real blocks and are not affected.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: convert inline quota files when turning quota on\n\nWith a block size larger than 4KB, the inline data area is large enough\nto hold a freshly created quota file (quotacheck writes 6KB), so\naquota.user/aquota.group stay inline after quotaon. f2fs does not\nexpect quota files to be inline, and this causes two problems:\n\n1. Quota file corruption. f2fs_write_single_data_page() sends quota\n   inodes straight to f2fs_do_write_data_page(), which sees NULL_ADDR\n   for index 0, treats the folio as truncated and drops it. Updates to\n   the quota file are lost once the folio is reclaimed, so the quota\n   tree reads stale data: chown/chgrp fail with EIO and quota entries\n   of users disappear. For example, the kernel log shows:\n\n     find_free_dqentry: Data block full but it shouldn't\n     qtree_write_dquot: Error -5 occurred while creating quota\n\n2. Deadlock. Writing a quota file past MAX_INLINE_DATA converts it from\n   f2fs_write_begin() under f2fs_lock_op(). dquot_transfer() is called\n   from f2fs_setattr() with f2fs_lock_op() already held, so chown/chgrp\n   take cp_rwsem for read twice and hang, together with the checkpoint\n   and every other writer, once a checkpoint waits for cp_rwsem in\n   between (seen with generic/232).\n\nQuota files only grow and there are at most MAXQUOTAS of them, so there\nis no point in keeping them inline. Convert them in f2fs_quota_on() and\nafter dquot_quota_on_mount(), which keeps every block size on the same\npath as 4KB blocks, where quota files never fit inline. Quota sysfiles\nare created by mkfs with real blocks and are not affected.","source":"cvelist"}],"published":"2026-11-30T13:23:44.975Z","modified":"2026-11-30T14:17:28.270Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"d7e9a9037de27b642d5a3edef7c69e2a2b460287","fixed":"aeeb55044b0af2168c4f5dcd91289f73031efbbd","status":"affected"},{"type":"git","introduced":"d7e9a9037de27b642d5a3edef7c69e2a2b460287","fixed":"1f49d6a95e9599430c69efeaaae55f746f1b89d3","status":"affected"},{"type":"git","introduced":"d7e9a9037de27b642d5a3edef7c69e2a2b460287","fixed":"e14dbb9eda4a4bd9edc09f26b5edb3f760617c7a","status":"affected"},{"type":"git","introduced":"d7e9a9037de27b642d5a3edef7c69e2a2b460287","fixed":"a85e09bd6cc80059b9e0ef5cd1467719aa3129a8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.7","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","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/aeeb55044b0af2168c4f5dcd91289f73031efbbd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1f49d6a95e9599430c69efeaaae55f746f1b89d3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e14dbb9eda4a4bd9edc09f26b5edb3f760617c7a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a85e09bd6cc80059b9e0ef5cd1467719aa3129a8","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-100097","url":"https://www.cve.org/CVERecord?id=CVE-2026-100097","licence":"CVE Terms of Use","modified":"2026-11-30T13:23:44.975Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-100097","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100097","licence":"Public domain","modified":"2026-11-30T14:17:28.270Z"}],"updatedAt":"2026-11-30T14:32:29.095Z","epss":{"score":0.00176,"percentile":0.0741,"date":"2026-12-01T12:00:22.000Z"}}