CVE-2026-139557 misc: enclosure: fix UAF on device_register() failure

Published Updated

CVSS score

Not scored

No CVSS score published yet
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
See affected versions
Attack path
Not stated

What is CVE-2026-139557?

CVE-2026-139557 is a vulnerability in Linux, published on 30 Nov 2026.

Official description

In the Linux kernel, the following vulnerability has been resolved:

misc: enclosure: fix UAF on device_register() failure

After device_register() fails, the embedded struct device has already been initialized and must be released with put_device() so that enclosure_release() can drop the parent reference and free edev.

The error path currently does put_device(parent) + kfree(edev), which skips the device lifetime rules and can free the object while the device core still owns a reference (use-after-free).

Which versions are affected by CVE-2026-139557?

How do I fix CVE-2026-139557?

Upgrade to a fixed version.

Is CVE-2026-139557 being exploited?

There is no known exploitation of CVE-2026-139557 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2026-139557, DEBIAN-CVE-2026-139557, GHSA-vfjf-q8j3-6m6g, UBUNTU-CVE-2026-139557.

Is CVE-2026-139557 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free