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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-11-30T13:35:51.738Z
- Modified: 2026-11-30T14:19:36.313Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8 before 13db96be1ee73c99acb0e40a6adeb6c89adb6320; from d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8 before f9c667d654657c75d5f3a322877d411772bd284c; from d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8 before 59e32463d83c1ed9a6940af1a6ea62b4a62adbd3; from d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8 before f32bcc15dd0dd8478e4b43bd2919f288aab84c61; from d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8 before 88ba765d2f4614e8efaf37be086c23f84a05dae4; from d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8 before 686bdcc0aaee08f519c8ae9625a0637b5804b4b7; from d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8 before 7b138cd144ef18f8cd9ff99cc00f11c465cc3d56; from d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8 before 0f3b12bab74e13a2b8686a49c5b83099da61e032; 2.6.25 (not affected: before 2.6.25; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

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

## Sources

- CVE List: [CVE-2026-139557](https://www.cve.org/CVERecord?id=CVE-2026-139557), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139557](https://nvd.nist.gov/vuln/detail/CVE-2026-139557), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139557 · Whole record: https://cve.day/CVE-2026-139557.json · Rebuilt by cve.day 2026-11-30T14:33:27.370Z
