CVE-2026-139557
misc: enclosure: fix UAF on device_register() failure
Check your servers for CVE-2026-139557
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139557 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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).
Exploitation
EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.49% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8, before 13db96be1ee73c99acb0e40a6adeb6c89adb6320 affected from d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8, before f9c667d654657c75d5f3a322877d411772bd284c affected from d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8, before 59e32463d83c1ed9a6940af1a6ea62b4a62adbd3 affected from d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8, before f32bcc15dd0dd8478e4b43bd2919f288aab84c61 affected from d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8, before 88ba765d2f4614e8efaf37be086c23f84a05dae4 affected from d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8, before 686bdcc0aaee08f519c8ae9625a0637b5804b4b7 affected from d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8, before 7b138cd144ef18f8cd9ff99cc00f11c465cc3d56 affected from d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8, before 0f3b12bab74e13a2b8686a49c5b83099da61e032
Other versions: unaffected
|
| Linux |
affected 2.6.25 unaffected before 2.6.25 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139557 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139557
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139557
trivy image --scanners vuln IMAGE | grep CVE-2026-139557
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/13db96be1ee73c99acb0e40a6adeb6c89adb6320 git.kernel.org
- https://git.kernel.org/stable/c/f9c667d654657c75d5f3a322877d411772bd284c git.kernel.org
- https://git.kernel.org/stable/c/59e32463d83c1ed9a6940af1a6ea62b4a62adbd3 git.kernel.org
- https://git.kernel.org/stable/c/f32bcc15dd0dd8478e4b43bd2919f288aab84c61 git.kernel.org
- https://git.kernel.org/stable/c/88ba765d2f4614e8efaf37be086c23f84a05dae4 git.kernel.org
- https://git.kernel.org/stable/c/686bdcc0aaee08f519c8ae9625a0637b5804b4b7 git.kernel.org
- https://git.kernel.org/stable/c/7b138cd144ef18f8cd9ff99cc00f11c465cc3d56 git.kernel.org
- https://git.kernel.org/stable/c/0f3b12bab74e13a2b8686a49c5b83099da61e032 git.kernel.org
Source: the record CVE-2026-139557 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse