Description
In the Linux kernel, the following vulnerability has been resolved:

xfs: fix memory leak in xfs_dqinode_metadir_create()

If xfs_metadir_create() fails in xfs_dqinode_metadir_create(), the current
code returns directly, leaking the allocated update and transaction state.
If the subsequent commit fails, the caller-owned inode reference is left
behind.

Fix this memory leak by routing the create failure path through
xfs_metadir_cancel(). For both create and commit failures, finish and
release any inode returned to the caller, mirroring the unwind pattern in
xfs_metadir_mkdir().

The bug was first flagged by an experimental analysis tool we are
developing for kernel memory-management bugs while analyzing
v6.13-rc1. The tool is still under development and is not yet publicly
available. Manual inspection confirms that the bug is still
present in v7.1.1.

An x86_64 allyesconfig build showed no new warnings. Runtime validation
used kprobe fault injection during `mount -o uquota` on a metadir XFS
image. Injecting xfs_metadir_create() reproduced the old active-update path
that left mount stuck later in mount setup; after this change, the same
injection reported cancel_hits=1 and irele_hits=1. Injecting
xfs_metadir_commit() exercised the old inode-reference leak path; after
this change, it reported irele_hits=1.
Published: 2026-07-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the Linux kernel’s XFS filesystem code, where a failure during the creation or commit of a file system metadir leaves behind allocated transaction state, update buffers and inode references. These leaked resources can accumulate with repeated operations, eventually exhausting kernel memory and causing instability or a denial-of-service. The flaw introduces a classic memory‑management weakness that does not expose a direct code-execution path but can degrade system availability through resource exhaustion.

Affected Systems

All Linux kernel builds that incorporate the XFS filesystem and that have not yet integrated the patch for xfs_dqinode_metadir_create() are affected. The flaw is tied to XFS and requires the filesystem to be enabled or used; systems that mount XFS in any mode, particularly with the uquota option, are at risk if they run a kernel version that retains the vulnerable code path.

Risk and Exploitability

The likely attack vector is a local mount or filesystem operation that triggers metadir creation or commit, such as mounting an XFS volume with the uquota option. The EPSS score of less than 1% reflects its low exploitation probability, and the CVSS rating of 5.5 indicates moderate likelihood that an attacker who can trigger the failure could exhaust memory. The vulnerability is not listed in the CISA KEV catalog, further suggesting that it is a low‑risk, local‑only exposure without a direct privilege escalation or remote attack surface.

Generated by OpenCVE AI on August 3, 2026 at 19:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that incorporates the fix for the XFS metadir creation path. If the patch is not yet available in your distribution, monitor vendor channels for an updated kernel that resolves the memory‑leak in xfs_dqinode_metadir_create() .
  • Reboot the system after applying the updated kernel so that the vulnerable code path is no longer loaded into memory.
  • If your environment does not require XFS quota functionality, consider disabling uquota or avoiding mounting XFS volumes with that option until the kernel is patched. Additionally, set up monitoring for abnormal kernel‑memory consumption patterns that could indicate a lingering memory‑leak in the filesystem subsystem.

Generated by OpenCVE AI on August 3, 2026 at 19:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 02 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Wed, 29 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Mon, 27 Jul 2026 06:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: xfs: fix memory leak in xfs_dqinode_metadir_create() If xfs_metadir_create() fails in xfs_dqinode_metadir_create(), the current code returns directly, leaking the allocated update and transaction state. If the subsequent commit fails, the caller-owned inode reference is left behind. Fix this memory leak by routing the create failure path through xfs_metadir_cancel(). For both create and commit failures, finish and release any inode returned to the caller, mirroring the unwind pattern in xfs_metadir_mkdir(). The bug was first flagged by an experimental analysis tool we are developing for kernel memory-management bugs while analyzing v6.13-rc1. The tool is still under development and is not yet publicly available. Manual inspection confirms that the bug is still present in v7.1.1. An x86_64 allyesconfig build showed no new warnings. Runtime validation used kprobe fault injection during `mount -o uquota` on a metadir XFS image. Injecting xfs_metadir_create() reproduced the old active-update path that left mount stuck later in mount setup; after this change, the same injection reported cancel_hits=1 and irele_hits=1. Injecting xfs_metadir_commit() exercised the old inode-reference leak path; after this change, it reported irele_hits=1.
Title xfs: fix memory leak in xfs_dqinode_metadir_create()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-25T08:50:14.049Z

Reserved: 2026-07-19T15:36:31.782Z

Link: CVE-2026-64356

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:18.040

Modified: 2026-08-11T15:01:50.637

Link: CVE-2026-64356

cve-icon Redhat

Severity : Low

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64356 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T19:15:04Z

Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime