VDB

CVE-2026-64376

CVE-2026-64376 PUBLISHED

firmware_loader: fix device reference leak in firmware_upload_register()

Reported by linux · Published July 25, 2026

In the Linux kernel, the following vulnerability has been resolved: firmware_loader: fix device reference leak in firmware_upload_register() firmware_upload_register() -> fw_create_instance() -> device_initialize() After fw_create_instance() succeeds, the lifetime of the embedded struct device is expected to be managed through the device core reference counting, since fw_create_instance() has already called device_initialize(). In firmware_upload_register(), if alloc_lookup_fw_priv() fails after fw_create_instance() succeeds, the code reaches free_fw_sysfs and frees fw_sysfs directly instead of releasing the device reference with put_device(). This may leave the reference count of the embedded struct device unbalanced, resulting in a refcount leak. The issue was identified by a static analysis tool I developed and confirmed by manual review. Fix this by using put_device(fw_dev) in the failure path and letting fw_dev_release() handle the final cleanup, instead of freeing the instance directly from the error path.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.18Amazon Linux1:6.18.39-79.141.amzn2023
kernel6.18-develAmazon Linux1:6.18.39-79.141.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.39-79.141.amzn2023
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
python3-perf6.18Amazon Linux1:6.18.39-79.141.amzn2023
linux_kernellinux7.1.4, 6.18.39, 6.12.96, 6.6.145, 6.1.178

Affected products

VendorProductVersions
LinuxLinux97730bbb242cde22b7140acd202ffd88823886c9, 97730bbb242cde22b7140acd202ffd88823886c9, 97730bbb242cde22b7140acd202ffd88823886c9
LinuxLinux5.19, 0, 6.1.178
amazon:2023kernel6.180
amazon:2023kernel6.18-devel0
amazon:2023kernel6.18-tools-devel0
amazon:2023perf6.180
amazon:2023kernel6.18-headers0
amazon:2023kernel6.18-tools0
amazon:2023python3-perf6.180
linuxlinux_kernel5.19, 5.19, 5.19
amazon:2023kernel-livepatch-6.18.39-79.1410
amazon:2023bpftool6.180
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.18-modules-extra0
amazon:2023microvm-kernel6.180
LinuxLinux97730bbb242cde22b7140acd202ffd88823886c9, 97730bbb242cde22b7140acd202ffd88823886c9, 97730bbb242cde22b7140acd202ffd88823886c9

Timeline

  • Jul 25, 2026 EPSS Score (9 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 9, 2026 CVE Updated
  • Aug 12, 2026 Distribution Patch (21 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-64376
vulnetix vdb fixes CVE-2026-64376

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-64376/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 ›