CVE-2025-40196: fs: quota: create dedicated workqueue for quota_release_work
In the Linux kernel, the following vulnerability has been resolved:
fs: quota: create dedicated workqueue for quota_release_work
There is a kernel panic due to WARN_ONCE when panic_on_warn is set.
This issue occurs when writeback is triggered due to sync call for an
opened file(ie, writeback reason is WB_REASON_SYNC). When f2fs balance
is needed at sync path, flush for quota_release_work is triggered.
By default quota_release_work is queued to "events_unbound" queue which
does not have WQ_MEM_RECLAIM flag. During f2fs balance "writeback"
workqueue tries to flush quota_release_work causing kernel panic due to
MEM_RECLAIM flag mismatch errors.
This patch creates dedicated workqueue with WQ_MEM_RECLAIM flag
for work quota_release_work.
------------[ cut here ]------------
WARNING: CPU: 4 PID: 14867 at kernel/workqueue.c:3721 check_flush_dependency+0x13c/0x148
Call trace:
check_flush_dependency+0x13c/0x148
__flush_work+0xd0/0x398
flush_delayed_work+0x44/0x5c
dquot_writeback_dquots+0x54/0x318
f2fs_do_quota_sync+0xb8/0x1a8
f2fs_write_checkpoint+0x3cc/0x99c
f2fs_gc+0x190/0x750
f2fs_balance_fs+0x110/0x168
f2fs_write_single_data_page+0x474/0x7dc
f2fs_write_data_pages+0x7d0/0xd0c
do_writepages+0xe0/0x2f4
__writeback_single_inode+0x44/0x4ac
writeback_sb_inodes+0x30c/0x538
wb_writeback+0xf4/0x440
wb_workfn+0x128/0x5d4
process_scheduled_works+0x1c4/0x45c
worker_thread+0x32c/0x3e8
kthread+0x11c/0x1b0
ret_from_fork+0x10/0x20
Kernel panic - not syncing: kernel: panic_on_warn set ...
Security readout for executives and security teams
Plain-English summary
A Linux kernel workqueue mismatch can turn a particular F2FS quota writeback condition into a kernel panic when panic_on_warn is enabled. The resulting system outage may interrupt workloads and require recovery or restart. The supplied record provides no evidence of data theft, privilege escalation, or active exploitation.
Executive priority
Schedule remediation through normal-to-expedited kernel maintenance, prioritizing exposed production systems where an unexpected reboot would materially disrupt operations. Escalate urgency if matching panics are observed. Current sources support availability risk, but not widespread or active exploitation.
Technical view
During synchronous writeback, F2FS balancing may flush quota_release_work from a memory-reclaim writeback context. That work previously used events_unbound, which lacks WQ_MEM_RECLAIM, triggering check_flush_dependency and WARN_ONCE. With panic_on_warn enabled, the warning becomes a kernel panic. The upstream fix moves quota_release_work to a dedicated WQ_MEM_RECLAIM workqueue.
Likely exposure
Exposure is most plausible on affected Linux kernel builds using F2FS and filesystem quotas, where synchronous writeback can trigger balancing. Operational impact is highest when panic_on_warn is enabled. The supplied version data is unusual and should be confirmed against the distribution's kernel advisory and backport status.
Exploitation context
The source bundle does not establish active exploitation, and this CVE is not listed as KEV in the supplied data. It describes a workload-dependent availability failure, but does not document attacker prerequisites, remote reachability, or a reliable security-boundary bypass. Treat exploitability as unconfirmed.
Researcher notes
The root cause is an incompatible workqueue dependency during memory-reclaim writeback. The fix assigns quota_release_work a dedicated WQ_MEM_RECLAIM queue. No CVSS score or CWE is supplied. The affected-version entries include commits and release values with unclear range semantics, so precise exposure requires distribution-specific package and backport verification.
Mitigation direction
Install a vendor-supported kernel update containing the dedicated WQ_MEM_RECLAIM workqueue fix.
Confirm distribution backport status instead of relying only on upstream version numbers.
Prioritize systems using F2FS, filesystem quotas, and panic_on_warn.
Review vendor guidance before considering configuration changes as temporary risk reduction.
Validation and detection
Record the running kernel release and distribution package build.
Determine whether affected systems mount and actively use F2FS filesystems.
Verify whether filesystem quotas are enabled on relevant F2FS mounts.
Check whether panic_on_warn is enabled under production configuration.
Confirm the installed kernel contains the referenced stable fix or vendor backport.
Review kernel logs for check_flush_dependency warnings and matching quota/F2FS call traces.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-40196 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
0CVSS vectors
3Timeline events
0ADP providers
6Source links
Vulnerability timeline
Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.
CVE reservedCVE Program
The CVE ID was reserved by the assigning CNA.
CVE publishedCVE Program
The CVE record was published.
Nov 12, 2025, 21:56 UTC (UTC+00:00)
CVE updatedCVE Program
The CVE record metadata indicates this as the latest update time.