CVE-2026-100097
publishedf2fs: convert inline quota files when turning quota on
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxd7e9a9037de27b642d5a3edef7c69e2a2b460287 to < aeeb55044b0af2168c4f5dcd91289f73031efbbd · d7e9a9037de27b642d5a3edef7c69e2a2b460287 to < 1f49d6a95e9599430c69efeaaae55f746f1b89d3 · d7e9a9037de27b642d5a3edef7c69e2a2b460287 to < e14dbb9eda4a4bd9edc09f26b5edb3f760617c7a · d7e9a9037de27b642d5a3edef7c69e2a2b460287 to < a85e09bd6cc80059b9e0ef5cd1467719aa3129a8 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.7 (affected) · 0 to < 6.7 (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 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: f2fs: convert inline quota files when turning quota on With a block size larger than 4KB, the inline data area is large enough to hold a freshly created quota file (quotacheck writes 6KB), so aquota.user/aquota.group stay inline after quotaon. f2fs does not expect quota files to be inline, and this causes two problems: 1. Quota file corruption. f2fs_write_single_data_page() sends quota inodes straight to f2fs_do_write_data_page(), which sees NULL_ADDR for index 0, treats the folio as truncated and drops it. Updates to the quota file are lost once the folio is reclaimed, so the quota tree reads stale data: chown/chgrp fail with EIO and quota entries of users disappear. For example, the kernel log shows: find_free_dqentry: Data block full but it shouldn't qtree_write_dquot: Error -5 occurred while creating quota 2. Deadlock. Writing a quota file past MAX_INLINE_DATA converts it from f2fs_write_begin() under f2fs_lock_op(). dquot_transfer() is called from f2fs_setattr() with f2fs_lock_op() already held, so chown/chgrp take cp_rwsem for read twice and hang, together with the checkpoint and every other writer, once a checkpoint waits for cp_rwsem in between (seen with generic/232). Quota files only grow and there are at most MAXQUOTAS of them, so there is no point in keeping them inline. Convert them in f2fs_quota_on() and after dquot_quota_on_mount(), which keeps every block size on the same path as 4KB blocks, where quota files never fit inline. Quota sysfiles are created by mkfs with real blocks and are not affected.
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.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | d7e9a9037de27b642d5a3edef7c69e2a2b460287 to < aeeb55044b0af2168c4f5dcd91289f73031efbbd (affected · git)d7e9a9037de27b642d5a3edef7c69e2a2b460287 to < 1f49d6a95e9599430c69efeaaae55f746f1b89d3 (affected · git)d7e9a9037de27b642d5a3edef7c69e2a2b460287 to < e14dbb9eda4a4bd9edc09f26b5edb3f760617c7a (affected · git)d7e9a9037de27b642d5a3edef7c69e2a2b460287 to < a85e09bd6cc80059b9e0ef5cd1467719aa3129a8 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.7 (affected)0 to < 6.7 (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
f2fs: convert inline quota files when turning quota on
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- bafc5ecc561458713624f686938a0dad82ed3c57532de4f9f2dba94e240ee006
- Ingested
- 30 Nov 2026, 13:30:06 UTC
- Source record
- Official CVE record