CVE-2026-53382: media: vidtv: fix NULL pointer dereference in vidtv_mux_push_si
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: vidtv: fix NULL pointer dereference in vidtv_mux_push_si
syzbot reported a general protection fault invidtv_psi_ts_psi_write_into [1].
vidtv_mux_get_pid_ctx() can return NULL, but vidtv_mux_push_si() does not check for this before dereferencing the returned pointer to access the continuity counter. This leads to a general protection fault when accessing a near-NULL address.
The root cause is that vidtv_mux_pid_ctx_init() does not check the return value of vidtv_mux_create_pid_ctx_once() for PMT section PIDs. If the allocation fails, the PID context is never created, but init returns success. The subsequent vidtv_mux_push_si() call then gets NULL from vidtv_mux_get_pid_ctx() and crashes.
Fix both the root cause (add error check in vidtv_mux_pid_ctx_init for PMT PIDs) and add defensive NULL checks in vidtv_mux_push_si for all vidtv_mux_get_pid_ctx() calls.
[1]
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] Workqueue: events vidtv_mux_tick RIP: 0010:vidtv_psi_ts_psi_write_into+0x54a/0xbc0 drivers/media/test-drivers/vidtv/vidtv_psi.c:197 Call Trace: <TASK> vidtv_psi_table_header_write_into drivers/media/test-drivers/vidtv/vidtv_psi.c:799 [inline] vidtv_psi_pmt_write_into+0x3b2/0xa70 drivers/media/test-drivers/vidtv/vidtv_psi.c:1231 vidtv_mux_push_si+0x932/0xe80 drivers/media/test-drivers/vidtv/vidtv_mux.c:196 vidtv_mux_tick+0xe9b/0x1480 drivers/media/test-drivers/vidtv/vidtv_mux.c:408
The Linux kernel CVE team has assigned CVE-2026-53382 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10 with commit f90cf6079bf67988f8b1ad1ade70fc89d0080905 and fixed in 5.10.260 with commit 455bc12e7b73ab5a2dfcb47822e91e772bc6c42e Issue introduced in 5.10 with commit f90cf6079bf67988f8b1ad1ade70fc89d0080905 and fixed in 5.15.211 with commit f0f5a1d7056980a0d512456fdb370cfb72bba86a Issue introduced in 5.10 with commit f90cf6079bf67988f8b1ad1ade70fc89d0080905 and fixed in 6.1.177 with commit 6df7e16d4f742c80add58995a6e69385b97aa9e6 Issue introduced in 5.10 with commit f90cf6079bf67988f8b1ad1ade70fc89d0080905 and fixed in 6.6.144 with commit cd923dadefadb9671b5ac341b672ff424d429c39 Issue introduced in 5.10 with commit f90cf6079bf67988f8b1ad1ade70fc89d0080905 and fixed in 6.12.95 with commit 353d9578951dd38bc9679308f5b618ceed1f20fa Issue introduced in 5.10 with commit f90cf6079bf67988f8b1ad1ade70fc89d0080905 and fixed in 6.18.37 with commit f965cf22dda7f512f4922415894c3e528269a4ae Issue introduced in 5.10 with commit f90cf6079bf67988f8b1ad1ade70fc89d0080905 and fixed in 7.0.14 with commit b28b12be6e8910489e6800ed93ea4d41dfe19683 Issue introduced in 5.10 with commit f90cf6079bf67988f8b1ad1ade70fc89d0080905 and fixed in 7.1.2 with commit 232e4b313ea342672edf8947e067c0de4328405b Issue introduced in 5.10 with commit f90cf6079bf67988f8b1ad1ade70fc89d0080905 and fixed in 7.2-rc1 with commit 7d8bf3d8f91073f4db347ed3aa6302b56107499c
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-53382
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/media/test-drivers/vidtv/vidtv_mux.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/455bc12e7b73ab5a2dfcb47822e91e772bc6c42e https://git.kernel.org/stable/c/f0f5a1d7056980a0d512456fdb370cfb72bba86a https://git.kernel.org/stable/c/6df7e16d4f742c80add58995a6e69385b97aa9e6 https://git.kernel.org/stable/c/cd923dadefadb9671b5ac341b672ff424d429c39 https://git.kernel.org/stable/c/353d9578951dd38bc9679308f5b618ceed1f20fa https://git.kernel.org/stable/c/f965cf22dda7f512f4922415894c3e528269a4ae https://git.kernel.org/stable/c/b28b12be6e8910489e6800ed93ea4d41dfe19683 https://git.kernel.org/stable/c/232e4b313ea342672edf8947e067c0de4328405b https://git.kernel.org/stable/c/7d8bf3d8f91073f4db347ed3aa6302b56107499c