CVE-2026-139557

Source
https://cve.org/CVERecord?id=CVE-2026-139557
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139557.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139557
Downstream
Published
2026-11-30T13:35:51Z
Modified
2026-11-30T15:02:29Z
Summary
misc: enclosure: fix UAF on device_register() failure
Details

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).

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139557.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8
Fixed
13db96be1ee73c99acb0e40a6adeb6c89adb6320
Fixed
f9c667d654657c75d5f3a322877d411772bd284c
Fixed
59e32463d83c1ed9a6940af1a6ea62b4a62adbd3
Fixed
f32bcc15dd0dd8478e4b43bd2919f288aab84c61
Fixed
88ba765d2f4614e8efaf37be086c23f84a05dae4
Fixed
686bdcc0aaee08f519c8ae9625a0637b5804b4b7
Fixed
7b138cd144ef18f8cd9ff99cc00f11c465cc3d56
Fixed
0f3b12bab74e13a2b8686a49c5b83099da61e032

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139557.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.25
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139557.json"