Use-after-free in Linux kernel enclosure driver on registration error
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
The Linux kernel from 2.6.25 is affected by a flaw in the enclosure driver's error path. When device_register() fails, the driver frees the enclosure object directly instead of releasing its embedded device with put_device(), so the device core can still hold a reference to freed memory, which is a use-after-free.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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).
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 2.6.25 and later | 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1 | Patch available | CNA |
- Linux VendorLinux Affected 2.6.25 and later Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1 Patch available CNA
Remediation
The Linux kernel is fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 and 7.4-rc1.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA Linux (Linux) Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139557
- 2026-11-30 Alias added: GHSA-vfjf-q8j3-6m6g
References
Other 8
- https://git.kernel.org/stable/c/13db96be1ee73c99acb0e40a6adeb6c89adb6320
- https://git.kernel.org/stable/c/f9c667d654657c75d5f3a322877d411772bd284c
- https://git.kernel.org/stable/c/59e32463d83c1ed9a6940af1a6ea62b4a62adbd3
- https://git.kernel.org/stable/c/f32bcc15dd0dd8478e4b43bd2919f288aab84c61
- https://git.kernel.org/stable/c/88ba765d2f4614e8efaf37be086c23f84a05dae4
- https://git.kernel.org/stable/c/686bdcc0aaee08f519c8ae9625a0637b5804b4b7
- https://git.kernel.org/stable/c/7b138cd144ef18f8cd9ff99cc00f11c465cc3d56
- https://git.kernel.org/stable/c/0f3b12bab74e13a2b8686a49c5b83099da61e032
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-139557 · CVE Program
- CVE-2026-139557 · NVD
- GHSA-vfjf-q8j3-6m6g · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences