{"id":"CVE-2026-138928","aliases":["CVE-2026-138928"],"related":[],"kind":"vulnerability","state":"published","title":"media: tw686x: fix V4L2 device lifetime on probe failure","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: tw686x: fix V4L2 device lifetime on probe failure\n\ntw686x_video_init() registers the V4L2 device, which initializes its\nreference count. Successfully registered video devices take additional\nreferences to the V4L2 device as well.\n\nThe probe failure paths currently tear down the PCI resources and then\nfree the channel arrays and the tw686x device directly. This bypasses\nthe V4L2 device reference count and the tw686x_dev_release() callback.\n\nIf a video device still holds a reference, its eventual release will\ndrop a reference to the already freed V4L2 device. Even when no extra\nreferences remain, directly freeing the device bypasses the lifetime\nmanagement established by v4l2_device_register().\n\nAfter cleaning up the PCI resources, check whether the V4L2 device was\nregistered. If so, mark the hardware unavailable and drop the driver's\nV4L2 device reference, letting tw686x_dev_release() free the backing\nobjects when the final reference is released. Keep the existing direct\nfree path for failures that occur before V4L2 device registration.\n\nThis issue was found by manual code inspection.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: tw686x: fix V4L2 device lifetime on probe failure\n\ntw686x_video_init() registers the V4L2 device, which initializes its\nreference count. Successfully registered video devices take additional\nreferences to the V4L2 device as well.\n\nThe probe failure paths currently tear down the PCI resources and then\nfree the channel arrays and the tw686x device directly. This bypasses\nthe V4L2 device reference count and the tw686x_dev_release() callback.\n\nIf a video device still holds a reference, its eventual release will\ndrop a reference to the already freed V4L2 device. Even when no extra\nreferences remain, directly freeing the device bypasses the lifetime\nmanagement established by v4l2_device_register().\n\nAfter cleaning up the PCI resources, check whether the V4L2 device was\nregistered. If so, mark the hardware unavailable and drop the driver's\nV4L2 device reference, letting tw686x_dev_release() free the backing\nobjects when the final reference is released. Keep the existing direct\nfree path for failures that occur before V4L2 device registration.\n\nThis issue was found by manual code inspection.","source":"cvelist"}],"published":"2026-11-30T13:26:17.310Z","modified":"2026-12-01T06:17:31.630Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"704a84ccdbf19fdce9adfda0b936dfdcac52fa49","fixed":"3cf093341c49293e3ca9d43a7053753fcb6532fa","status":"affected"},{"type":"git","introduced":"704a84ccdbf19fdce9adfda0b936dfdcac52fa49","fixed":"b407fbdb19ac4e79cd58fcaaa0f00d619db7e48d","status":"affected"},{"type":"git","introduced":"704a84ccdbf19fdce9adfda0b936dfdcac52fa49","fixed":"5f6c914516b4c0b1bd18d4122ee6d01b05339e3a","status":"affected"},{"type":"git","introduced":"704a84ccdbf19fdce9adfda0b936dfdcac52fa49","fixed":"bd24b2b9f49f4b00c8217d01f636d1f3c5913661","status":"affected"},{"type":"git","introduced":"704a84ccdbf19fdce9adfda0b936dfdcac52fa49","fixed":"75e716e458f3093ee5cf5d38383b08c43821f435","status":"affected"},{"type":"git","introduced":"704a84ccdbf19fdce9adfda0b936dfdcac52fa49","fixed":"c1b1e81ed8b2bae7299243c5722332451b0c3338","status":"affected"},{"type":"git","introduced":"704a84ccdbf19fdce9adfda0b936dfdcac52fa49","fixed":"546536807ad441e63c92ee902860318e245182c1","status":"affected"},{"type":"git","introduced":"704a84ccdbf19fdce9adfda0b936dfdcac52fa49","fixed":"ce6c6dd632b3b4a2c2bfc9efd8f656f4d2137dbd","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.7","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/3cf093341c49293e3ca9d43a7053753fcb6532fa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b407fbdb19ac4e79cd58fcaaa0f00d619db7e48d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f6c914516b4c0b1bd18d4122ee6d01b05339e3a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd24b2b9f49f4b00c8217d01f636d1f3c5913661","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/75e716e458f3093ee5cf5d38383b08c43821f435","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c1b1e81ed8b2bae7299243c5722332451b0c3338","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/546536807ad441e63c92ee902860318e245182c1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ce6c6dd632b3b4a2c2bfc9efd8f656f4d2137dbd","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138928","url":"https://www.cve.org/CVERecord?id=CVE-2026-138928","licence":"CVE Terms of Use","modified":"2026-12-01T05:40:46.502Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138928","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138928","licence":"Public domain","modified":"2026-12-01T06:17:31.630Z"}],"updatedAt":"2026-12-01T06:32:16.967Z","epss":{"score":0.00182,"percentile":0.0814,"date":"2026-12-01T12:00:22.000Z"}}