CVE-2025-23132
published high CVSS 3.1 · 7.0f2fs: quota: fix to avoid warning in dquot_writeback_dquots()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxaf033b2aa8a874fd5737fafe90d159136527b5b4 to < 9ec535db9da76dafa05c89f8b58a0b1d7dddba1c · af033b2aa8a874fd5737fafe90d159136527b5b4 to < d7acf0a6c87aa282c86a36dbaa2f92fda88c5884 · af033b2aa8a874fd5737fafe90d159136527b5b4 to < eb85c2410d6f581e957cd03a644ff6ddbe592af9 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.20 (affected) · 0 to < 4.20 (unaffected · semver) · 6.12.114 through 6.12.* (unaffected · semver) · 6.14.2 through 6.14.* (unaffected · semver) · 6.15 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 |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.115-2~deb12u1 | DLA-4904-1 |
| Ubuntu | jammy | linux-aws-6.8 | Advisory build | 6.8.0-1070.76~22.04.1 | USN-9173-2 |
| Debian | trixie | linux | Advisory build | 6.12.115-2 | DSA-6602-1 |
| Ubuntu | jammy | linux-aws-6.8-cloud-tools-6.8.0-1070 | Advisory build | 6.8.0-1070.76~22.04.1 | USN-9173-2 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | jammy | linux-aws-6.8-headers-6.8.0-1070 | Advisory build | 6.8.0-1070.76~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-aws-6.8-tools-6.8.0-1070 | Advisory build | 6.8.0-1070.76~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-azure-6.8 | Advisory build | 6.8.0-1074.83~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-azure-6.8-cloud-tools-6.8.0-1074 | Advisory build | 6.8.0-1074.83~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-azure-6.8-headers-6.8.0-1074 | Advisory build | 6.8.0-1074.83~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-azure-6.8-tools-6.8.0-1074 | Advisory build | 6.8.0-1074.83~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-azure-fde-6.8 | Advisory build | 6.8.0-1072.79~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-azure-fde-6.8-cloud-tools-6.8.0-1072 | Advisory build | 6.8.0-1072.79~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-azure-fde-6.8-headers-6.8.0-1072 | Advisory build | 6.8.0-1072.79~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-azure-fde-6.8-tools-6.8.0-1072 | Advisory build | 6.8.0-1072.79~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1068-nvidia | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1068-nvidia-64k | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1068-oracle | Advisory build | 6.8.0-1068.72~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1068-oracle-64k | Advisory build | 6.8.0-1068.72~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1070-aws | Advisory build | 6.8.0-1070.76~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1070-aws-64k | Advisory build | 6.8.0-1070.76~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1070-ibm | Advisory build | 6.8.0-1070.71~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1072-azure-fde | Advisory build | 6.8.0-1072.79~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1074-azure | Advisory build | 6.8.0-1074.83~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1074-gcp | Advisory build | 6.8.0-1074.82~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1074-gcp-64k | Advisory build | 6.8.0-1074.82~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.1-1065-realtime | Advisory build | 6.8.1-1065.66~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1070-aws | Advisory build | 6.8.0-1070.76~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1070-aws-64k | Advisory build | 6.8.0-1070.76~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1072-azure-fde | Advisory build | 6.8.0-1072.79~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1074-azure | Advisory build | 6.8.0-1074.83~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.1-1065-realtime | Advisory build | 6.8.1-1065.66~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-gcp-6.8 | Advisory build | 6.8.0-1074.82~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-gcp-6.8-headers-6.8.0-1074 | Advisory build | 6.8.0-1074.82~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-gcp-6.8-tools-6.8.0-1074 | Advisory build | 6.8.0-1074.82~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1068-nvidia | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1068-nvidia-64k | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1068-oracle | Advisory build | 6.8.0-1068.72~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1068-oracle-64k | Advisory build | 6.8.0-1068.72~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1070-aws | Advisory build | 6.8.0-1070.76~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-headers-6.8.0-1070-aws-64k | Advisory build | 6.8.0-1070.76~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-headers-6.8.0-1070-ibm | Advisory build | 6.8.0-1070.71~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1072-azure-fde | Advisory build | 6.8.0-1072.79~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1074-azure | Advisory build | 6.8.0-1074.83~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1074-gcp | Advisory build | 6.8.0-1074.82~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1074-gcp-64k | Advisory build | 6.8.0-1074.82~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-headers-6.8.1-1065-realtime | Advisory build | 6.8.1-1065.66~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-ibm-6.8 | Advisory build | 6.8.0-1070.71~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-ibm-6.8-headers-6.8.0-1070 | Advisory build | 6.8.0-1070.71~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-ibm-6.8-tools-6.8.0-1070 | Advisory build | 6.8.0-1070.71~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1068-nvidia | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1068-nvidia-64k | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1068-oracle | Advisory build | 6.8.0-1068.72~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1068-oracle-64k | Advisory build | 6.8.0-1068.72~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1070-aws | Advisory build | 6.8.0-1070.76~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1070-aws-64k | Advisory build | 6.8.0-1070.76~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1070-ibm | Advisory build | 6.8.0-1070.71~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1072-azure-fde | Advisory build | 6.8.0-1072.79~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1074-azure | Advisory build | 6.8.0-1074.83~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1074-gcp | Advisory build | 6.8.0-1074.82~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1074-gcp-64k | Advisory build | 6.8.0-1074.82~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.1-1065-realtime | Advisory build | 6.8.1-1065.66~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-modules-6.8.0-1068-nvidia | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1068-nvidia-64k | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1068-oracle | Advisory build | 6.8.0-1068.72~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1068-oracle-64k | Advisory build | 6.8.0-1068.72~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1070-aws | Advisory build | 6.8.0-1070.76~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-modules-6.8.0-1070-aws-64k | Advisory build | 6.8.0-1070.76~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-modules-6.8.0-1070-ibm | Advisory build | 6.8.0-1070.71~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1072-azure-fde | Advisory build | 6.8.0-1072.79~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1074-azure | Advisory build | 6.8.0-1074.83~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1074-gcp | Advisory build | 6.8.0-1074.82~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1074-gcp-64k | Advisory build | 6.8.0-1074.82~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-modules-6.8.1-1065-realtime | Advisory build | 6.8.1-1065.66~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1068-nvidia | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1068-oracle | Advisory build | 6.8.0-1068.72~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1068-oracle-64k | Advisory build | 6.8.0-1068.72~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1070-aws | Advisory build | 6.8.0-1070.76~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1070-aws-64k | Advisory build | 6.8.0-1070.76~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1070-ibm | Advisory build | 6.8.0-1070.71~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1072-azure-fde | Advisory build | 6.8.0-1072.79~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1074-azure | Advisory build | 6.8.0-1074.83~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1074-gcp | Advisory build | 6.8.0-1074.82~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1074-gcp-64k | Advisory build | 6.8.0-1074.82~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.1-1065-realtime | Advisory build | 6.8.1-1065.66~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-modules-involflt-6.8.0-1072-azure-fde | Advisory build | 6.8.0-1072.79~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-modules-involflt-6.8.0-1074-azure | Advisory build | 6.8.0-1074.83~22.04.1 | USN-9191-1 |
| Ubuntu | jammy | linux-modules-iwlwifi-6.8.0-1070-ibm | Advisory build | 6.8.0-1070.71~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-modules-iwlwifi-6.8.1-1065-realtime | Advisory build | 6.8.1-1065.66~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-modules-nvidia-fs-6.8.0-1068-nvidia | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-modules-nvidia-fs-6.8.0-1068-nvidia-64k | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-nvidia-6.8 | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-nvidia-6.8-headers-6.8.0-1068 | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-nvidia-6.8-tools-6.8.0-1068 | Advisory build | 6.8.0-1068.71~22.04.1 | USN-9192-1 |
| Ubuntu | jammy | linux-oracle-6.8 | Advisory build | 6.8.0-1068.72~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-oracle-6.8-headers-6.8.0-1068 | Advisory build | 6.8.0-1068.72~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-oracle-6.8-tools-6.8.0-1068 | Advisory build | 6.8.0-1068.72~22.04.1 | USN-9173-1 |
| Ubuntu | jammy | linux-realtime-6.8 | Advisory build | 6.8.1-1065.66~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-realtime-6.8-cloud-tools-6.8.1-1065 | Advisory build | 6.8.1-1065.66~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-realtime-6.8-headers-6.8.1-1065 | Advisory build | 6.8.1-1065.66~22.04.1 | USN-9173-2 |
| Ubuntu | jammy | linux-realtime-6.8-tools-6.8.1-1065 | Advisory build | 6.8.1-1065.66~22.04.1 | USN-9173-2 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: f2fs: quota: fix to avoid warning in dquot_writeback_dquots() F2FS-fs (dm-59): checkpoint=enable has some unwritten data. ------------[ cut here ]------------ WARNING: CPU: 6 PID: 8013 at fs/quota/dquot.c:691 dquot_writeback_dquots+0x2fc/0x308 pc : dquot_writeback_dquots+0x2fc/0x308 lr : f2fs_quota_sync+0xcc/0x1c4 Call trace: dquot_writeback_dquots+0x2fc/0x308 f2fs_quota_sync+0xcc/0x1c4 f2fs_write_checkpoint+0x3d4/0x9b0 f2fs_issue_checkpoint+0x1bc/0x2c0 f2fs_sync_fs+0x54/0x150 f2fs_do_sync_file+0x2f8/0x814 __f2fs_ioctl+0x1960/0x3244 f2fs_ioctl+0x54/0xe0 __arm64_sys_ioctl+0xa8/0xe4 invoke_syscall+0x58/0x114 checkpoint and f2fs_remount may race as below, resulting triggering warning in dquot_writeback_dquots(). atomic write remount - do_remount - down_write(&sb->s_umount); - f2fs_remount - ioctl - f2fs_do_sync_file - f2fs_sync_fs - f2fs_write_checkpoint - block_operations - locked = down_read_trylock(&sbi->sb->s_umount) : fail to lock due to the write lock was held by remount - up_write(&sb->s_umount); - f2fs_quota_sync - dquot_writeback_dquots - WARN_ON_ONCE(!rwsem_is_locked(&sb->s_umount)) : trigger warning because s_umount lock was unlocked by remount If checkpoint comes from mount/umount/remount/freeze/quotactl, caller of checkpoint has already held s_umount lock, calling dquot_writeback_dquots() in the context should be safe. So let's record task to sbi->umount_lock_holder, so that checkpoint can know whether the lock has held in the context or not by checking current w/ it. In addition, in order to not misrepresent caller of checkpoint, we should not allow to trigger async checkpoint for those callers: mount/umount/remount/ freeze/quotactl.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable path is entered purely through local syscalls against a mounted f2fs volume — `syncfs()`, `fsync()` or `__f2fs_ioctl()` reaching `f2fs_sync_fs` → `f2fs_issue_checkpoint` → `block_operations`. There is no remote or network-facing route into f2fs checkpointing. AC:H - The attacker can spam the checkpoint side at will, but `down_read_trylock(&sb->s_umount)` only fails while a *writer* holds the lock, and every writer (mount/remount/umount/freeze/quotaon-off/shutdown ioctl) is a CAP_SYS_ADMIN operation the unprivileged attacker cannot initiate; the lock must additionally be released or be tearing down quota within the narrow window before `dquot_writeback_dquots()`. That timing dependency on an administrative mount-state change is beyond the attacker's control. PR:L - The attacker-facing half needs no privilege at all — any local user with a file or fd on the f2fs mount can loop on `syncfs()`/`fsync()` to drive checkpoints, which is the case on every Android device where `/data` is f2fs with the `quota_ino` feature enabled by default. No capability, and no user namespace, is required on the triggering path. UI:N - The attacker issues the triggering syscall themselves and nothing must be opened, mounted or clicked on their behalf. The concurrent administrative remount is a timing precondition already accounted for in Attack Complexity, not victim participation in the attack. S:U - The damage is confined to kernel memory and kernel-managed quota/filesystem state within the same security authority. No hypervisor, IOMMU or sandbox boundary is crossed. C:H - Running `dquot_writeback_dquots()`/`f2fs_quota_sync_file()` without `s_umount` removes exactly the protection that keeps quota state alive — `dqopt->files[type]->i_mapping` is dereferenced after only a lockless `sb_has_quota_active()` check, and `dqopt->info[cnt].dqi_dirty_list` is walked while `invalidate_dquots()` frees its entries. A use-after-free read of `struct inode`/`struct dquot` in a general-purpose slab is leverageable for disclosure of adjacent kernel objects. I:H - The same unsynchronized window lets `filemap_fdatawrite()` and `dquot_write_dquot()` write through a quota inode that `vfs_cleanup_quota_inode()` has already `iput()`ed and NULLed, giving a write into freed slab memory alongside corruption of on-disk quota accounting (f2fs flags `SBI_QUOTA_NEED_REPAIR`, requiring fsck). A use-after-free write is a classic route to control-flow hijack. A:H - The immediate, reported effect is a `WARNING` splat that taints the kernel and is an outright panic on the many hardened Android, cloud and embedded builds that set `panic_on_warn=1`. Beyond that, the lost lock readily oopses the kernel via NULL dereference of a cleared `dqopt->files[type]` or a use-after-free on the quota inode.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | af033b2aa8a874fd5737fafe90d159136527b5b4 to < 9ec535db9da76dafa05c89f8b58a0b1d7dddba1c (affected · git)af033b2aa8a874fd5737fafe90d159136527b5b4 to < d7acf0a6c87aa282c86a36dbaa2f92fda88c5884 (affected · git)af033b2aa8a874fd5737fafe90d159136527b5b4 to < eb85c2410d6f581e957cd03a644ff6ddbe592af9 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.20 (affected)0 to < 4.20 (unaffected · semver)6.12.114 through 6.12.* (unaffected · semver)6.14.2 through 6.14.* (unaffected · semver)6.15 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
2Linux · cna
f2fs: quota: fix to avoid warning in dquot_writeback_dquots()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- aee24c4e13dd890e67ccdf3e7301948681d897d6a683c8f3524605d1ef9b10b4
- Ingested
- 21 Oct 2026, 12:48:59 UTC
- Source record
- Official CVE record