PT-2026-64597 · Linux · Linux
CVE-2026-64376
·
Published
2026-07-25
·
Updated
2026-07-25
None
No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
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.
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Linux