media: vidtv: fix pass-by-value structs causing MSAN warnings
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f90cf6079bf67988f8b1ad1ade70fc89d0080905 · < 6d75a9ec5bdb8cf8382eaf8f8fe831ba7d58a9d4| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's vidtv media component passes two argument structs by value, causing MemorySanitizer uninitialized-value warnings. The input does not describe an attacker action, access requirements, or user interaction.
Engineers running the Linux kernel should check whether their build includes the affected vidtv functions; affected versions are not specified.