CVE-2026-64356
xfs: fix memory leak in xfs_dqinode_metadir_create()
Reported by linux · Published July 25, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf6.18 | Amazon Linux | 1:6.18.39-79.141.amzn2023 |
| kernel6.18-headers | Amazon Linux | 1:6.18.39-79.141.amzn2023 |
| kernel6.18-tools | Amazon Linux | 1:6.18.39-79.141.amzn2023 |
| Linux | Linux | 6.13 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84, e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84, e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84 |
| Linux | Linux | 6.13, 0, 6.18.39 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| Linux | Linux | 6.18.39, 7.2, 7.1.4 |
| linux | linux_kernel | 6.13, 6.13, 6.13 |
| amazon:2023 | kernel-livepatch-6.18.39-79.141 | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
Timeline
- Jul 25, 2026 EPSS Score (11 in total, the first dated here)
- Jul 25, 2026 Coalition ESS Score
- Jul 25, 2026 CVE Published
- Jul 26, 2026 Security Advisory (20 in total, the first dated here)
- Aug 12, 2026 Distribution Patch (21 in total, the first dated here)
- Nov 6, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-64356
vulnetix vdb fixes CVE-2026-64356
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64356/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart