CVE-2026-139040

Source
https://cve.org/CVERecord?id=CVE-2026-139040
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139040.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139040
Downstream
Published
2026-11-30T13:27:18Z
Modified
2026-11-30T15:01:59Z
Summary
media: vidtv: fix frontend reference leak on unbind
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139040.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
63101b75689331c5392c9330291f57b9fd2ef94c
Fixed
2b45bc494aa22e56e3d7292a9b02841439584fee
Fixed
2c755e120cefdf10cf2cb35e85e64e2bc8a03727
Fixed
7121f1fffce20419ffdb352650a49bb94aeef800
Fixed
d2e17624f28f1c4805795f7cbb2e6f92554b9a75
Fixed
22797db3f9ca19e253cb2816a66fcbc9251464cb
Fixed
b0f8a0f8058e2e5811ed975cc24757f64c2962ce
Fixed
f438de68eb13e77b616f8e6373695d17598fbc7c
Fixed
6f412f9fe6a1f3ce9694757f50353bbec221d832

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139040.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.10.0
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139040.json"