# CVE-2026-64356: xfs: fix memory leak in xfs\_dqinode\_metadir\_create()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2026-07-25T08:50:14.049Z
- **Modified:** 2026-11-06T17:18:51.337Z

## Who should check

- Anyone running Linux \>= e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84, \< c3d3d2212c2966973dd7d603c6c6e6ed6fc7fbe1; \>= e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84, \< 06a2e6dbaa26c0740ac76dfa66b0aedc78d05820; \>= e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84, \< 45de375b25060edf46e20abb36521ba530336ceb
- Anyone running Linux 6.13

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

## Affected and fixed versions

- Linux: \>= e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84, \< c3d3d2212c2966973dd7d603c6c6e6ed6fc7fbe1; \>= e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84, \< 06a2e6dbaa26c0740ac76dfa66b0aedc78d05820; \>= e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84, \< 45de375b25060edf46e20abb36521ba530336ceb (cvelist)
- Linux: 6.13 (cvelist)

## Mitigation

- Upgrade Linux to 45de375b25060edf46e20abb36521ba530336ceb or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-64356.md
Affected: Linux >= e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84, < c3d3d2212c2966973dd7d603c6c6e6ed6fc7fbe1; >= e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84, < 06a2e6dbaa26c0740ac76dfa66b0aedc78d05820; >= e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84, < 45de375b25060edf46e20abb36521ba530336ceb; Linux 6.13
Fixed in: Linux 06a2e6dbaa26c0740ac76dfa66b0aedc78d05820, Linux 45de375b25060edf46e20abb36521ba530336ceb

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-2026-64356 being exploited?

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

### How serious is CVE-2026-64356?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-64356?

Linux \>= e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84, \< c3d3d2212c2966973dd7d603c6c6e6ed6fc7fbe1; \>= e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84, \< 06a2e6dbaa26c0740ac76dfa66b0aedc78d05820; \>= e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84, \< 45de375b25060edf46e20abb36521ba530336ceb; Linux 6.13.

### Is there a fix for CVE-2026-64356?

Yes. Fixed in Linux 06a2e6dbaa26c0740ac76dfa66b0aedc78d05820, Linux 45de375b25060edf46e20abb36521ba530336ceb. Upgrade Linux to 45de375b25060edf46e20abb36521ba530336ceb or later.

### How do I check if I'm affected by CVE-2026-64356?

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/c3d3d2212c2966973dd7d603c6c6e6ed6fc7fbe1>
- patch: <https://git.kernel.org/stable/c/06a2e6dbaa26c0740ac76dfa66b0aedc78d05820>
- patch: <https://git.kernel.org/stable/c/45de375b25060edf46e20abb36521ba530336ceb>

## 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-2026-64356>

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