LiveActive security incident?Get immediate response
CVE Record

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

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

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.
Prepared
Confidence
medium
Sources
7

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.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

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.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux3e6ff207cd5bd924ad94cd1a7c633bcdac0ba1cb, bcacb52a985f1b6d280f698a470b873dfe52728a, 8ea87e34792258825d290f4dc5216276e91cb224, ac6f420291b3fee1113f21d612fa88b628afab5b, ac6f420291b3fee1113f21d612fa88b628afab5b, a5abba5e0e586e258ded3e798fe5f69c66fec198, 6f3821acd7c3143145999248087de5fb4b48cf26, ab6cfcf8ed2c7496f55d020b65b1d8cd55d9a2cb, 6.1.120, 6.6.64, 6.12.4, 5.4.287, 5.10.231, 5.15.174unaffected
LinuxLinux6.13, 0, 6.1.178, 6.6.114, 6.12.54, 6.17.4, 6.18affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.