# CVE-2025-23132: f2fs: quota: fix to avoid warning in dquot\_writeback\_dquots()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-28)
- **Published:** 2025-04-16T14:13:13.697Z
- **Modified:** 2026-10-21T13:18:05.027Z

## Who should check

- Anyone running Linux \>= af033b2aa8a874fd5737fafe90d159136527b5b4, \< 9ec535db9da76dafa05c89f8b58a0b1d7dddba1c; \>= af033b2aa8a874fd5737fafe90d159136527b5b4, \< d7acf0a6c87aa282c86a36dbaa2f92fda88c5884; \>= af033b2aa8a874fd5737fafe90d159136527b5b4, \< eb85c2410d6f581e957cd03a644ff6ddbe592af9
- Anyone running Linux 4.20

## 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.

## Affected and fixed versions

- Linux: \>= af033b2aa8a874fd5737fafe90d159136527b5b4, \< 9ec535db9da76dafa05c89f8b58a0b1d7dddba1c; \>= af033b2aa8a874fd5737fafe90d159136527b5b4, \< d7acf0a6c87aa282c86a36dbaa2f92fda88c5884; \>= af033b2aa8a874fd5737fafe90d159136527b5b4, \< eb85c2410d6f581e957cd03a644ff6ddbe592af9 (cvelist)
- Linux: 4.20 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-23132. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-23132.md
Affected: Linux >= af033b2aa8a874fd5737fafe90d159136527b5b4, < 9ec535db9da76dafa05c89f8b58a0b1d7dddba1c; >= af033b2aa8a874fd5737fafe90d159136527b5b4, < d7acf0a6c87aa282c86a36dbaa2f92fda88c5884; >= af033b2aa8a874fd5737fafe90d159136527b5b4, < eb85c2410d6f581e957cd03a644ff6ddbe592af9; Linux 4.20
Fixed in: Linux 9ec535db9da76dafa05c89f8b58a0b1d7dddba1c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-23132 being exploited?

There is no confirmed exploitation: CVE-2025-23132 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-23132?

High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-23132?

Linux \>= af033b2aa8a874fd5737fafe90d159136527b5b4, \< 9ec535db9da76dafa05c89f8b58a0b1d7dddba1c; \>= af033b2aa8a874fd5737fafe90d159136527b5b4, \< d7acf0a6c87aa282c86a36dbaa2f92fda88c5884; \>= af033b2aa8a874fd5737fafe90d159136527b5b4, \< eb85c2410d6f581e957cd03a644ff6ddbe592af9; Linux 4.20.

### Is there a fix for CVE-2025-23132?

Yes. Fixed in Linux 9ec535db9da76dafa05c89f8b58a0b1d7dddba1c. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-23132?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/d7acf0a6c87aa282c86a36dbaa2f92fda88c5884>
- patch: <https://git.kernel.org/stable/c/eb85c2410d6f581e957cd03a644ff6ddbe592af9>
- other: <https://git.kernel.org/stable/c/9ec535db9da76dafa05c89f8b58a0b1d7dddba1c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-23132>

HTML: <https://flawdb.com/CVE-2025-23132> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-23132>
