CVE-2026-31599

MEDIUM

media: vidtv: fix NULL pointer dereference in vidtv_channel_pmt_match_sections

Title source: cna
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: media: vidtv: fix NULL pointer dereference in vidtv_channel_pmt_match_sections syzbot reported a general protection fault in vidtv_psi_desc_assign [1]. vidtv_psi_pmt_stream_init() can return NULL on memory allocation failure, but vidtv_channel_pmt_match_sections() does not check for this. When tail is NULL, the subsequent call to vidtv_psi_desc_assign(&tail->descriptor, desc) dereferences a NULL pointer offset, causing a general protection fault. Add a NULL check after vidtv_psi_pmt_stream_init(). On failure, clean up the already-allocated stream chain and return. [1] Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] RIP: 0010:vidtv_psi_desc_assign+0x24/0x90 drivers/media/test-drivers/vidtv/vidtv_psi.c:629 Call Trace: <TASK> vidtv_channel_pmt_match_sections drivers/media/test-drivers/vidtv/vidtv_channel.c:349 [inline] vidtv_channel_si_init+0x1445/0x1a50 drivers/media/test-drivers/vidtv/vidtv_channel.c:479 vidtv_mux_init+0x526/0xbe0 drivers/media/test-drivers/vidtv/vidtv_mux.c:519 vidtv_start_streaming drivers/media/test-drivers/vidtv/vidtv_bridge.c:194 [inline] vidtv_start_feed+0x33e/0x4d0 drivers/media/test-drivers/vidtv/vidtv_bridge.c:239

Scores

CVSS v3 5.5
EPSS 0.0001
EPSS Percentile 2.3%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-476
Status published
Products (19)
Linux/Linux < 5.10
Linux/Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 - 07c1e474cf9acf777f09d14a8f8dfcef5b84e46f
Linux/Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 - 2dff11fb5098ae453651f8f77e94ad499c078022
Linux/Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 - b832cfd516b8504e95884622cee60bf9a39b7945
Linux/Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 - e589de36da106ef739ba98f66f5a5c2023370706
Linux/Linux 5.10
Linux/Linux 6.12.83 - 6.12.*
Linux/Linux 6.18.24 - 6.18.*
Linux/Linux 6.19.14 - 6.19.*
Linux/Linux 6.6.136 - 6.6.*
... and 9 more
Published Apr 24, 2026
Tracked Since Apr 24, 2026