media: vidtv: fix frontend reference leak on unbind

Summary

CVECVE-2026-139040
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:18:08 UTC
Updated2026-11-30 14:18:08 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 63101b75689331c5392c9330291f57b9fd2ef94c 2b45bc494aa22e56e3d7292a9b02841439584fee git Not specified
CNA Linux Linux affected 63101b75689331c5392c9330291f57b9fd2ef94c 2c755e120cefdf10cf2cb35e85e64e2bc8a03727 git Not specified
CNA Linux Linux affected 63101b75689331c5392c9330291f57b9fd2ef94c 7121f1fffce20419ffdb352650a49bb94aeef800 git Not specified
CNA Linux Linux affected 63101b75689331c5392c9330291f57b9fd2ef94c d2e17624f28f1c4805795f7cbb2e6f92554b9a75 git Not specified
CNA Linux Linux affected 63101b75689331c5392c9330291f57b9fd2ef94c 22797db3f9ca19e253cb2816a66fcbc9251464cb git Not specified
CNA Linux Linux affected 63101b75689331c5392c9330291f57b9fd2ef94c b0f8a0f8058e2e5811ed975cc24757f64c2962ce git Not specified
CNA Linux Linux affected 63101b75689331c5392c9330291f57b9fd2ef94c f438de68eb13e77b616f8e6373695d17598fbc7c git Not specified
CNA Linux Linux affected 63101b75689331c5392c9330291f57b9fd2ef94c 6f412f9fe6a1f3ce9694757f50353bbec221d832 git Not specified
CNA Linux Linux affected 5.10 Not specified
CNA Linux Linux unaffected 5.10 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.63 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/22797db3f9ca19e253cb2816a66fcbc9251464cb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2c755e120cefdf10cf2cb35e85e64e2bc8a03727 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2b45bc494aa22e56e3d7292a9b02841439584fee 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/6f412f9fe6a1f3ce9694757f50353bbec221d832 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f438de68eb13e77b616f8e6373695d17598fbc7c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7121f1fffce20419ffdb352650a49bb94aeef800 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d2e17624f28f1c4805795f7cbb2e6f92554b9a75 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b0f8a0f8058e2e5811ed975cc24757f64c2962ce 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report