{"id":"CVE-2026-31599","aliases":["CVE-2026-31599"],"related":[],"kind":"vulnerability","state":"published","title":"media: vidtv: fix NULL pointer dereference in vidtv_channel_pmt_match_sections","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vidtv: fix NULL pointer dereference in vidtv_channel_pmt_match_sections\n\nsyzbot reported a general protection fault in vidtv_psi_desc_assign [1].\n\nvidtv_psi_pmt_stream_init() can return NULL on memory allocation\nfailure, but vidtv_channel_pmt_match_sections() does not check for\nthis. When tail is NULL, the subsequent call to\nvidtv_psi_desc_assign(&tail->descriptor, desc) dereferences a NULL\npointer offset, causing a general protection fault.\n\nAdd a NULL check after vidtv_psi_pmt_stream_init(). On failure, clean\nup the already-allocated stream chain and return.\n\n[1]\nOops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI\nKASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]\nRIP: 0010:vidtv_psi_desc_assign+0x24/0x90 drivers/media/test-drivers/vidtv/vidtv_psi.c:629\nCall Trace:\n <TASK>\n vidtv_channel_pmt_match_sections drivers/media/test-drivers/vidtv/vidtv_channel.c:349 [inline]\n vidtv_channel_si_init+0x1445/0x1a50 drivers/media/test-drivers/vidtv/vidtv_channel.c:479\n vidtv_mux_init+0x526/0xbe0 drivers/media/test-drivers/vidtv/vidtv_mux.c:519\n vidtv_start_streaming drivers/media/test-drivers/vidtv/vidtv_bridge.c:194 [inline]\n vidtv_start_feed+0x33e/0x4d0 drivers/media/test-drivers/vidtv/vidtv_bridge.c:239","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vidtv: fix NULL pointer dereference in vidtv_channel_pmt_match_sections\n\nsyzbot reported a general protection fault in vidtv_psi_desc_assign [1].\n\nvidtv_psi_pmt_stream_init() can return NULL on memory allocation\nfailure, but vidtv_channel_pmt_match_sections() does not check for\nthis. When tail is NULL, the subsequent call to\nvidtv_psi_desc_assign(&tail->descriptor, desc) dereferences a NULL\npointer offset, causing a general protection fault.\n\nAdd a NULL check after vidtv_psi_pmt_stream_init(). On failure, clean\nup the already-allocated stream chain and return.\n\n[1]\nOops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI\nKASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]\nRIP: 0010:vidtv_psi_desc_assign+0x24/0x90 drivers/media/test-drivers/vidtv/vidtv_psi.c:629\nCall Trace:\n <TASK>\n vidtv_channel_pmt_match_sections drivers/media/test-drivers/vidtv/vidtv_channel.c:349 [inline]\n vidtv_channel_si_init+0x1445/0x1a50 drivers/media/test-drivers/vidtv/vidtv_channel.c:479\n vidtv_mux_init+0x526/0xbe0 drivers/media/test-drivers/vidtv/vidtv_mux.c:519\n vidtv_start_streaming drivers/media/test-drivers/vidtv/vidtv_bridge.c:194 [inline]\n vidtv_start_feed+0x33e/0x4d0 drivers/media/test-drivers/vidtv/vidtv_bridge.c:239","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmedia: vidtv: corregir desreferencia de puntero NULL en vidtv_channel_pmt_match_sections\n\nsyzbot informó un fallo de protección general en vidtv_psi_desc_assign [1].\n\nvidtv_psi_pmt_stream_init() puede devolver NULL en caso de fallo de asignación de memoria, pero vidtv_channel_pmt_match_sections() no comprueba esto. Cuando tail es NULL, la llamada subsiguiente a vidtv_psi_desc_assign(ref:tail  ->  descriptor, desc) desreferencia un desplazamiento de puntero NULL, causando un fallo de protección general.\n\nAñadir una comprobación de NULL después de vidtv_psi_pmt_stream_init(). En caso de fallo, limpiar la cadena de flujo ya asignada y retornar.\n\n[1]\nOops: fallo de protección general, probablemente para dirección no canónica 0x dffffc0000000000: 0000 [#1] SMP KASAN PTI\nKASAN: desreferencia de puntero nulo en el rango [0x 0000000000000000-0x 0000000000000007]\nRIP: 0010:vidtv_psi_desc_assign+0x24/0x90 drivers/media/test-drivers/vidtv/vidtv_psi.c:629\nTraza de Llamada:\n [TASK]\n vidtv_channel_pmt_match_sections drivers/media/test-drivers/vidtv/vidtv_channel.c:349 [inline]\n vidtv_channel_si_init+0x 1445/0x 1a50 drivers/media/test-drivers/vidtv/vidtv_channel.c:479\n vidtv_mux_init+0x526/0xbe0 drivers/media/test-drivers/vidtv/vidtv_mux.c:519\n vidtv_start_streaming drivers/media/test-drivers/vidtv/vidtv_bridge.c:194 [inline]\n vidtv_start_feed+0x33e/0x4d0 drivers/media/test-drivers/vidtv/vidtv_bridge.c:239","source":"nvd"}],"published":"2026-04-24T14:42:23.961Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"54e18a23e62e81b8335cec3e8e9c5cb33fd88665","status":"affected"},{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"5c986b77200b5ea754ba6636deacc7e0942fec9b","status":"affected"},{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"93d9e747a9e8a5ca9e3c5e37dcff76b40399139f","status":"affected"},{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"b7efb4c94797c504a1c678edb48c2aa311d3309f","status":"affected"},{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"e589de36da106ef739ba98f66f5a5c2023370706","status":"affected"},{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"2dff11fb5098ae453651f8f77e94ad499c078022","status":"affected"},{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"b832cfd516b8504e95884622cee60bf9a39b7945","status":"affected"},{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"07c1e474cf9acf777f09d14a8f8dfcef5b84e46f","status":"affected"},{"type":"git","introduced":"f90cf6079bf67988f8b1ad1ade70fc89d0080905","fixed":"f8e1fc918a9fe67103bcda01d20d745f264d00a7","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.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.136","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.83","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.24","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.14","lastAffected":"6.19.*","status":"unaffected"},{"type":"semver","introduced":"7.0.1","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.10","fixed":"6.6.136"},{"status":"affected","introduced":"6.7","fixed":"6.12.83"},{"status":"affected","introduced":"6.13","fixed":"6.18.24"},{"status":"affected","introduced":"6.19","fixed":"6.19.14"},{"status":"affected","introduced":"7.0","fixed":"7.0.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/54e18a23e62e81b8335cec3e8e9c5cb33fd88665","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c986b77200b5ea754ba6636deacc7e0942fec9b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/93d9e747a9e8a5ca9e3c5e37dcff76b40399139f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b7efb4c94797c504a1c678edb48c2aa311d3309f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e589de36da106ef739ba98f66f5a5c2023370706","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2dff11fb5098ae453651f8f77e94ad499c078022","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b832cfd516b8504e95884622cee60bf9a39b7945","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/07c1e474cf9acf777f09d14a8f8dfcef5b84e46f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f8e1fc918a9fe67103bcda01d20d745f264d00a7","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31599","url":"https://www.cve.org/CVERecord?id=CVE-2026-31599","licence":"CVE Terms of Use","modified":"2026-06-14T17:42:40.045Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31599","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31599","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.506Z","epss":{"score":0.0013,"percentile":0.02851,"date":"2026-12-01T12:00:22.000Z"}}