{"id":24566,"date":"2026-09-16T20:32:29","date_gmt":"2026-09-16T12:32:29","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-89879"},"modified":"2026-09-16T20:32:29","modified_gmt":"2026-09-16T12:32:29","slug":"cve-2026-89879","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-89879","title":{"rendered":"CVE-2026-89879 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: s2255: bound J"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>media: s2255: bound JPEG frame size before copying into the buffer<\/p>\n<p>s2255_fillbuff() memcpy()s vc-&gt;jpg_size bytes of a captured JPEG\/MJPEG<br \/>\nframe into the vb2 plane.  vc-&gt;jpg_size is taken verbatim from the<br \/>\nS2255_MARKER_FRAME header the device sends (pdword[4] in save_frame())<br \/>\nand, unlike the frame payload length just above it, is never bounded:<\/p>\n<p>\tpayload = le32_to_cpu(pdword[3]);<br \/>\n\tif (payload &gt; vc-&gt;req_image_size)\t\/* payload is checked &#8230; *\/<br \/>\n\t\treturn -EINVAL;<br \/>\n\tvc-&gt;pkt_size = payload;<br \/>\n\tvc-&gt;jpg_size = le32_to_cpu(pdword[4]);\t\/* &#8230; jpg_size is not *\/<\/p>\n<p>A malicious or malfunctioning device can therefore report a jpg_size<br \/>\nlarger than the destination vb2 plane, and the memcpy() writes past it.<br \/>\njpg_size is a signed int, so a value with the top bit set also turns<br \/>\ninto a huge length.<\/p>\n<p>Reject a frame whose jpg_size is negative or exceeds the plane size<br \/>\nbefore copying it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>media: s2255: bound JPEG frame size before copying into the buffer<\/p>\n<p>s2255_fillbuff() memcpy()s vc-&gt;jpg_size bytes of a captured JPE<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-24566","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/24566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}