{"id":"CVE-2026-139040","aliases":["CVE-2026-139040"],"related":[],"kind":"vulnerability","state":"published","title":"media: vidtv: fix frontend reference leak on unbind","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vidtv: fix frontend reference leak on unbind\n\ndvb_register_frontend() keeps two references to the frontend. One is\nreleased by dvb_unregister_frontend(), and the other by\ndvb_frontend_detach(). vidtv only called dvb_unregister_frontend(), so\nthe second reference was never released. As a result,\n__dvb_frontend_free() was never called, leaking the frontend private\ndata and its struct dvb_device.\n\nThe detach call was removed by commit 63101b756893 (\"media: vidtv: fix\ndriver unbind/remove\") because it caused an OOPS. The demod .release\ncallback freed vidtv_demod_state, and the I2C remove callbacks then\naccessed the freed state.\n\nThat commit also removed those accesses from the I2C remove callbacks.\nRestore the detach call, but remove the demod .release callback.\nvidtv_demod_state is owned by the I2C client and is already freed by\nvidtv_demod_i2c_remove(), so the frontend detach path should not free\nit.\n\nTested with kmemleak and KASAN over 10 bind/unbind cycles. The reported\nfrontend and dvb_device leaks were present before the fix and were gone\nafter it, with no KASAN reports.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vidtv: fix frontend reference leak on unbind\n\ndvb_register_frontend() keeps two references to the frontend. One is\nreleased by dvb_unregister_frontend(), and the other by\ndvb_frontend_detach(). vidtv only called dvb_unregister_frontend(), so\nthe second reference was never released. As a result,\n__dvb_frontend_free() was never called, leaking the frontend private\ndata and its struct dvb_device.\n\nThe detach call was removed by commit 63101b756893 (\"media: vidtv: fix\ndriver unbind/remove\") because it caused an OOPS. The demod .release\ncallback freed vidtv_demod_state, and the I2C remove callbacks then\naccessed the freed state.\n\nThat commit also removed those accesses from the I2C remove callbacks.\nRestore the detach call, but remove the demod .release callback.\nvidtv_demod_state is owned by the I2C client and is already freed by\nvidtv_demod_i2c_remove(), so the frontend detach path should not free\nit.\n\nTested with kmemleak and KASAN over 10 bind/unbind cycles. The reported\nfrontend and dvb_device leaks were present before the fix and were gone\nafter it, with no KASAN reports.","source":"cvelist"}],"published":"2026-11-30T13:27:18.704Z","modified":"2026-11-30T14:18:08.570Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"63101b75689331c5392c9330291f57b9fd2ef94c","fixed":"2b45bc494aa22e56e3d7292a9b02841439584fee","status":"affected"},{"type":"git","introduced":"63101b75689331c5392c9330291f57b9fd2ef94c","fixed":"2c755e120cefdf10cf2cb35e85e64e2bc8a03727","status":"affected"},{"type":"git","introduced":"63101b75689331c5392c9330291f57b9fd2ef94c","fixed":"7121f1fffce20419ffdb352650a49bb94aeef800","status":"affected"},{"type":"git","introduced":"63101b75689331c5392c9330291f57b9fd2ef94c","fixed":"d2e17624f28f1c4805795f7cbb2e6f92554b9a75","status":"affected"},{"type":"git","introduced":"63101b75689331c5392c9330291f57b9fd2ef94c","fixed":"22797db3f9ca19e253cb2816a66fcbc9251464cb","status":"affected"},{"type":"git","introduced":"63101b75689331c5392c9330291f57b9fd2ef94c","fixed":"b0f8a0f8058e2e5811ed975cc24757f64c2962ce","status":"affected"},{"type":"git","introduced":"63101b75689331c5392c9330291f57b9fd2ef94c","fixed":"f438de68eb13e77b616f8e6373695d17598fbc7c","status":"affected"},{"type":"git","introduced":"63101b75689331c5392c9330291f57b9fd2ef94c","fixed":"6f412f9fe6a1f3ce9694757f50353bbec221d832","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/2b45bc494aa22e56e3d7292a9b02841439584fee","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2c755e120cefdf10cf2cb35e85e64e2bc8a03727","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7121f1fffce20419ffdb352650a49bb94aeef800","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d2e17624f28f1c4805795f7cbb2e6f92554b9a75","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/22797db3f9ca19e253cb2816a66fcbc9251464cb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b0f8a0f8058e2e5811ed975cc24757f64c2962ce","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f438de68eb13e77b616f8e6373695d17598fbc7c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6f412f9fe6a1f3ce9694757f50353bbec221d832","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139040","url":"https://www.cve.org/CVERecord?id=CVE-2026-139040","licence":"CVE Terms of Use","modified":"2026-11-30T13:27:18.704Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139040","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139040","licence":"Public domain","modified":"2026-11-30T14:18:08.570Z"}],"updatedAt":"2026-11-30T14:32:33.889Z","epss":{"score":0.00371,"percentile":0.33102,"date":"2026-12-01T12:00:22.000Z"}}