{"id":"CVE-2026-142851","summary":"media: em28xx: fix inverted tuner capability check for VBI device","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: em28xx: fix inverted tuner capability check for VBI device\n\nCommit 8e53399c63c3 (\"media: em28xx: Add support for Empia em2828X\nbridge\") changed the condition for setting V4L2_CAP_TUNER on the VBI\ndevice from \"dev-\u003etuner_type != TUNER_ABSENT\" to a check of the video\ndevice's capabilities, but inverted it: the VBI node now advertises a\ntuner only when the video node does not have one.\n\nOn boards without a tuner (e.g. the MyGica iGrabber, card=105) the VBI\ndevice's device_caps therefore contain V4L2_CAP_TUNER, while the shared\nvidioc_querycap() correctly omits it from cap-\u003ecapabilities. This trips\nthe sanity check in v4l_querycap() whenever the VBI node is queried,\nfor example by udev's v4l_id on every hotplug:\n\n  WARNING: drivers/media/v4l2-core/v4l2-ioctl.c:1119 at v4l_querycap+0xff/0x110 [videodev]\n  (cap-\u003ecapabilities & (vfd-\u003edevice_caps | V4L2_CAP_DEVICE_CAPS)) != (vfd-\u003edevice_caps | V4L2_CAP_DEVICE_CAPS)\n\nIt also leaves the tuner ioctls enabled on the VBI node of tuner-less\nboards and disables them on boards that do have a tuner.\n\nRestore the intended logic so the VBI device has V4L2_CAP_TUNER exactly\nwhen the video device does.","modified":"2026-12-03T05:00:49.990544752Z","published":"2026-12-03T03:20:58.034Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142851.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a8296bfabd1112e690aad9acc7de3c431f39d0e6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d4855cfbaf1c41a35a5fc54d6245d7924934e14b"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142851.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142851"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8e53399c63c3152fd572596acedcdaea4cabbc45"},{"fixed":"d4855cfbaf1c41a35a5fc54d6245d7924934e14b"},{"fixed":"a8296bfabd1112e690aad9acc7de3c431f39d0e6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142851.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.1.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142851.json"}}],"schema_version":"1.9.2"}