CVE-2026-31599

media: vidtv: fix NULL pointer dereference in vidtv_channel_pmt_match_sections

State
Published
Severity
Not scored
Published
Apr 24, 2026
Updated
Jun 14, 2026
Reserved
Mar 9, 2026

Read the record on cve.org

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

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • f90cf6079bf67988f8b1ad1ade70fc89d0080905 to before 54e18a23e62e81b8335cec3e8e9c5cb33fd88665Affected
  • f90cf6079bf67988f8b1ad1ade70fc89d0080905 to before 5c986b77200b5ea754ba6636deacc7e0942fec9bAffected
  • f90cf6079bf67988f8b1ad1ade70fc89d0080905 to before 93d9e747a9e8a5ca9e3c5e37dcff76b40399139fAffected
  • f90cf6079bf67988f8b1ad1ade70fc89d0080905 to before b7efb4c94797c504a1c678edb48c2aa311d3309fAffected
  • f90cf6079bf67988f8b1ad1ade70fc89d0080905 to before e589de36da106ef739ba98f66f5a5c2023370706Affected
  • f90cf6079bf67988f8b1ad1ade70fc89d0080905 to before 2dff11fb5098ae453651f8f77e94ad499c078022Affected
  • f90cf6079bf67988f8b1ad1ade70fc89d0080905 to before b832cfd516b8504e95884622cee60bf9a39b7945Affected
  • f90cf6079bf67988f8b1ad1ade70fc89d0080905 to before 07c1e474cf9acf777f09d14a8f8dfcef5b84e46fAffected
  • f90cf6079bf67988f8b1ad1ade70fc89d0080905 to before f8e1fc918a9fe67103bcda01d20d745f264d00a7Affected
LinuxLinux
  • 5.10Affected
  • before 5.10Not affected
  • 5.10.258 through 5.10.*Not affected
  • 5.15.209 through 5.15.*Not affected
  • 6.1.175 through 6.1.*Not affected
  • 6.6.136 through 6.6.*Not affected
  • 6.12.83 through 6.12.*Not affected
  • 6.18.24 through 6.18.*Not affected
  • 6.19.14 through 6.19.*Not affected
  • 7.0.1 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.