CVE-2026-64376
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.18 | Amazon Linux | 1:6.18.39-79.141.amzn2023 |
| kernel6.18-devel | Amazon Linux | 1:6.18.39-79.141.amzn2023 |
| kernel6.18-tools-devel | Amazon Linux | 1:6.18.39-79.141.amzn2023 |
| 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 |
| python3-perf6.18 | Amazon Linux | 1:6.18.39-79.141.amzn2023 |
| linux_kernel | linux | 7.1.4, 6.18.39, 6.12.96, 6.6.145, 6.1.178 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 97730bbb242cde22b7140acd202ffd88823886c9, 97730bbb242cde22b7140acd202ffd88823886c9, 97730bbb242cde22b7140acd202ffd88823886c9 |
| Linux | Linux | 5.19, 0, 6.1.178 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| linux | linux_kernel | 5.19, 5.19, 5.19 |
| amazon:2023 | kernel-livepatch-6.18.39-79.141 | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| Linux | Linux | 97730bbb242cde22b7140acd202ffd88823886c9, 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