CVE-2026-139128

block: fix use-after-free of the disk in sync_bdevs()

No CVSS score yet EPSS 0.38%

Published 30 Nov 2026 Updated 30 Nov 2026 CNA: Linux

Check your servers for CVE-2026-139128

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

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

block: fix use-after-free of the disk in sync_bdevs()

sync_bdevs() holds a reference to the bdev inode while it takes bd_disk->open_mutex. For a partition the inode doesn't keep the gendisk alive, the device reference does: part_release() drops the disk as soon as the last reference to the partition device is gone. A sync(2) racing with the last close of a partition of an already deleted disk locks a freed open_mutex.

Take a device reference before touching the disk, like blkdev_get_no_open() does, and skip the bdev if it's on its way out.

Exploitation

EPSS 0.38%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 33.9% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from a8698707a1835be3abd12a3b28079a80999f8dee, before 179c1c3c2adccf55743e00dc5bb073f9ed260ec7
affected from a8698707a1835be3abd12a3b28079a80999f8dee, before 5c3dcf8103ed7c87c046e1be47892f7256238ca0
affected from a8698707a1835be3abd12a3b28079a80999f8dee, before 8f5c60c3a04e06c0512a4816d690c249f78237fe
affected from a8698707a1835be3abd12a3b28079a80999f8dee, before c98a383aaa585e7535e4f2486474a907cf3958cd
affected from a8698707a1835be3abd12a3b28079a80999f8dee, before 28ec6d30c573893a478829e0e7c4222c3d0642cd
affected from a8698707a1835be3abd12a3b28079a80999f8dee, before 86a3554597ca63d77dd75713c409c815e2ef0eb2
affected from a8698707a1835be3abd12a3b28079a80999f8dee, before cebb1c2331c2af1b7f1c822ac672a7f77b54bd90
Other versions: unaffected
Linux
affected 5.14
unaffected before 5.14
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-139128 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139128

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-139128
trivy image --scanners vuln IMAGE | grep CVE-2026-139128

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

Source: the record CVE-2026-139128 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.