CVE-2026-43058: media: vidtv: fix pass-by-value structs causing MSAN warnings
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: vidtv: fix pass-by-value structs causing MSAN warnings
vidtv_ts_null_write_into() and vidtv_ts_pcr_write_into() take their argument structs by value, causing MSAN to report uninit-value warnings. While only vidtv_ts_null_write_into() has triggered a report so far, both functions share the same issue.
Fix by passing both structs by const pointer instead, avoiding the stack copy of the struct along with its MSAN shadow and origin metadata. The functions do not modify the structs, which is enforced by the const qualifier.
The Linux kernel CVE team has assigned CVE-2026-43058 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10 with commit f90cf6079bf67988f8b1ad1ade70fc89d0080905 and fixed in 6.6.136 with commit e3957eb26a3d570aefc6bb184fa8b8a1e9a4e508 Issue introduced in 5.10 with commit f90cf6079bf67988f8b1ad1ade70fc89d0080905 and fixed in 6.12.83 with commit be57e52e27c7cbfb400a8f255e475cbcff242baa Issue introduced in 5.10 with commit f90cf6079bf67988f8b1ad1ade70fc89d0080905 and fixed in 6.18.24 with commit 6d75a9ec5bdb8cf8382eaf8f8fe831ba7d58a9d4 Issue introduced in 5.10 with commit f90cf6079bf67988f8b1ad1ade70fc89d0080905 and fixed in 6.19.14 with commit 57b01d945ed68cebe486d495dadc4901a96d3aaa Issue introduced in 5.10 with commit f90cf6079bf67988f8b1ad1ade70fc89d0080905 and fixed in 7.0.1 with commit 1b2820c8a9887981634020db19f1a2425558b88e Issue introduced in 5.10 with commit f90cf6079bf67988f8b1ad1ade70fc89d0080905 and fixed in 7.1-rc1 with commit 5f8e73bde67e931468bc2a1860d78d72f0c6ba41
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-43058
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 drivers/media/test-drivers/vidtv/vidtv_ts.c drivers/media/test-drivers/vidtv/vidtv_ts.h
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/e3957eb26a3d570aefc6bb184fa8b8a1e9a4e508 https://git.kernel.org/stable/c/be57e52e27c7cbfb400a8f255e475cbcff242baa https://git.kernel.org/stable/c/6d75a9ec5bdb8cf8382eaf8f8fe831ba7d58a9d4 https://git.kernel.org/stable/c/57b01d945ed68cebe486d495dadc4901a96d3aaa https://git.kernel.org/stable/c/1b2820c8a9887981634020db19f1a2425558b88e https://git.kernel.org/stable/c/5f8e73bde67e931468bc2a1860d78d72f0c6ba41