CVE-2026-139040

media: vidtv: fix frontend reference leak on unbind

No CVSS score yet EPSS 0.37%

Published 30 Nov 2026 Updated 30 Nov 2026 CNA: Linux

Check your servers for CVE-2026-139040

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

media: vidtv: fix frontend reference leak on unbind

dvb_register_frontend() keeps two references to the frontend. One is released by dvb_unregister_frontend(), and the other by dvb_frontend_detach(). vidtv only called dvb_unregister_frontend(), so the second reference was never released. As a result, __dvb_frontend_free() was never called, leaking the frontend private data and its struct dvb_device.

The detach call was removed by commit 63101b756893 ("media: vidtv: fix driver unbind/remove") because it caused an OOPS. The demod .release callback freed vidtv_demod_state, and the I2C remove callbacks then accessed the freed state.

That commit also removed those accesses from the I2C remove callbacks. Restore the detach call, but remove the demod .release callback. vidtv_demod_state is owned by the I2C client and is already freed by vidtv_demod_i2c_remove(), so the frontend detach path should not free it.

Tested with kmemleak and KASAN over 10 bind/unbind cycles. The reported frontend and dvb_device leaks were present before the fix and were gone after it, with no KASAN reports.

Exploitation

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

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 63101b75689331c5392c9330291f57b9fd2ef94c, before 2b45bc494aa22e56e3d7292a9b02841439584fee
affected from 63101b75689331c5392c9330291f57b9fd2ef94c, before 2c755e120cefdf10cf2cb35e85e64e2bc8a03727
affected from 63101b75689331c5392c9330291f57b9fd2ef94c, before 7121f1fffce20419ffdb352650a49bb94aeef800
affected from 63101b75689331c5392c9330291f57b9fd2ef94c, before d2e17624f28f1c4805795f7cbb2e6f92554b9a75
affected from 63101b75689331c5392c9330291f57b9fd2ef94c, before 22797db3f9ca19e253cb2816a66fcbc9251464cb
affected from 63101b75689331c5392c9330291f57b9fd2ef94c, before b0f8a0f8058e2e5811ed975cc24757f64c2962ce
affected from 63101b75689331c5392c9330291f57b9fd2ef94c, before f438de68eb13e77b616f8e6373695d17598fbc7c
affected from 63101b75689331c5392c9330291f57b9fd2ef94c, before 6f412f9fe6a1f3ce9694757f50353bbec221d832
Other versions: unaffected
Linux
affected 5.10
unaffected before 5.10
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.117 up to and including 6.12.*
unaffected from 6.18.63 up to and including 6.18.*
unaffected from 7.3.4 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-139040 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139040

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

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