CVE-2026-139557
misc: enclosure: fix UAF on device_register() failure
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).
INFO
Published Date :
Nov. 30, 2026, 2:19 p.m.
Last Modified :
Nov. 30, 2026, 2:19 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Apply the kernel patch for the enclosure driver.
- Ensure proper device release on registration failure.
- Follow device lifetime rules in error paths.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-139557.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-139557 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-139557
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-139557 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-139557 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 30, 2026
Action Type Old Value New Value Added 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). Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/139xxx/CVE-2026-139557.json">CVE-2026-139557</a> Added Reference https://git.kernel.org/stable/c/0f3b12bab74e13a2b8686a49c5b83099da61e032 Added Reference https://git.kernel.org/stable/c/13db96be1ee73c99acb0e40a6adeb6c89adb6320 Added Reference https://git.kernel.org/stable/c/59e32463d83c1ed9a6940af1a6ea62b4a62adbd3 Added Reference https://git.kernel.org/stable/c/686bdcc0aaee08f519c8ae9625a0637b5804b4b7 Added Reference https://git.kernel.org/stable/c/7b138cd144ef18f8cd9ff99cc00f11c465cc3d56 Added Reference https://git.kernel.org/stable/c/88ba765d2f4614e8efaf37be086c23f84a05dae4 Added Reference https://git.kernel.org/stable/c/f32bcc15dd0dd8478e4b43bd2919f288aab84c61 Added Reference https://git.kernel.org/stable/c/f9c667d654657c75d5f3a322877d411772bd284c