media: meson: vdec: fix NULL pointer deref in vdec_try_fmt_common
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: media: meson: vdec: fix NULL pointer deref in vdec_try_fmt_common When VIDIOC_TRY_FMT is called with an unsupported pixel format on the OUTPUT queue, vdec_try_fmt_common() falls back to V4L2_PIX_FMT_MPEG2. However, if a distro has locally patched MPEG2 support out (as it has been broken for some time) the platform format table does not contain MPEG2 so find_format() returns NULL and the subsequent dereference of fmt_out->max_width triggers a NULL pointer dereference. Fix this by falling back to the first format in the platform's format array instead of hardcoding V4L2_PIX_FMT_MPEG2. This is always valid since every platform defines at least one format.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 3e7f51bd96077acad6acd7b45668f65b44233c4e · fixed in 276f28672bb6d5d5feca78db4219c7b5adf1be26; From 3e7f51bd96077acad6acd7b45668f65b44233c4e · fixed in c620906fb1b2ad75d408ea9d06040d66952d4a31; From 3e7f51bd96077acad6acd7b45668f65b44233c4e · fixed in 3839b6be2279fc4f558723f2c0fbfc9c42070958; From 3e7f51bd96077acad6acd7b45668f65b44233c4e · fixed in 680a89683197cdfe4e03e6fd7755454c647d39c1; From 3e7f51bd96077acad6acd7b45668f65b44233c4e · fixed in f2375a308640e401c142c5426d52c3d10e016d25; From 3e7f51bd96077acad6acd7b45668f65b44233c4e · fixed in 96dafbae77f50bfe2228bcfedcd8652c5e5f08e8; From 3e7f51bd96077acad6acd7b45668f65b44233c4e · fixed in d61ba609c3226af3c84268ba606ea06ee63e511b; From 3e7f51bd96077acad6acd7b45668f65b44233c4e · fixed in 20aa934ace6917262ff579a73ec018d06a7bad1c
- Linux Linux
5.3
- KernelLinux
From 5.3.0 · fixed in 5.10.270; From 5.11.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.51; From 6.19.0 · fixed in 7.2.5
References 8
git.kernel.org
- stable/c/276f28672bb6d5d5feca78db4219c7b5adf1be26
- stable/c/c620906fb1b2ad75d408ea9d06040d66952d4a31
- stable/c/3839b6be2279fc4f558723f2c0fbfc9c42070958
- stable/c/680a89683197cdfe4e03e6fd7755454c647d39c1
- stable/c/f2375a308640e401c142c5426d52c3d10e016d25
- stable/c/96dafbae77f50bfe2228bcfedcd8652c5e5f08e8
- stable/c/d61ba609c3226af3c84268ba606ea06ee63e511b
- stable/c/20aa934ace6917262ff579a73ec018d06a7bad1c