VDB

CVE-2026-64356

CVE-2026-64356 PUBLISHED

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.

PackageEcosystemFixed in
perf6.18Amazon Linux1:6.18.39-79.141.amzn2023
kernel6.18-headersAmazon Linux1:6.18.39-79.141.amzn2023
kernel6.18-toolsAmazon Linux1:6.18.39-79.141.amzn2023
LinuxLinux6.13

Affected products

VendorProductVersions
LinuxLinuxe80fbe1ad8eff7d7d1363e14f1e493d84dd37c84, e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84, e80fbe1ad8eff7d7d1363e14f1e493d84dd37c84
LinuxLinux6.13, 0, 6.18.39
amazon:2023perf6.180
amazon:2023kernel6.18-headers0
amazon:2023kernel6.18-tools0
LinuxLinux6.18.39, 7.2, 7.1.4
linuxlinux_kernel6.13, 6.13, 6.13
amazon:2023kernel-livepatch-6.18.39-79.1410
amazon:2023kernel6.180
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.18-tools-devel0
amazon:2023microvm-kernel6.180
amazon:2023kernel6.18-modules-extra0
amazon:2023bpftool6.180
amazon:2023kernel6.18-devel0
amazon:2023python3-perf6.180

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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›