misc: enclosure: fix UAF on device_register() failure
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
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).
| Product | Versions |
|---|---|
| Linux Linux | d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8 to before 13db96be1ee73c99acb0e40a6adeb6c89adb6320 Affectedd569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8 to before f9c667d654657c75d5f3a322877d411772bd284c Affectedd569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8 to before 59e32463d83c1ed9a6940af1a6ea62b4a62adbd3 Affectedd569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8 to before f32bcc15dd0dd8478e4b43bd2919f288aab84c61 Affectedd569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8 to before 88ba765d2f4614e8efaf37be086c23f84a05dae4 Affectedd569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8 to before 686bdcc0aaee08f519c8ae9625a0637b5804b4b7 Affectedd569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8 to before 7b138cd144ef18f8cd9ff99cc00f11c465cc3d56 Affectedd569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8 to before 0f3b12bab74e13a2b8686a49c5b83099da61e032 Affected |
| Linux Linux | 2.6.25 Affectedbefore 2.6.25 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
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
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.