Bugzilla – Bug 979022
VUL-0: CVE-2016-4568: kernel: [media] videobuf2-v4l2: Verify planes array in buffer dequeueing
Last modified: 2020-06-29 06:24:59 UTC
CVE-2016-4568 References: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4568 http://seclists.org/oss-sec/2016/q2/273
Upstream patch is 2c1f6951a8a8 ("[media] videobuf2-v4l2: Verify planes array in buffer dequeueing") and the one it fixes is b0e0e1f83de3 ("[media] media: videobuf2: Prepare to divide videobuf2") which is upstream since 4.4. Fix 2c1f6951a8a8 is tagged for stable and since we haven't released 12PS2 yet, I'll wait for that fix to trickle down with the stable updates. Leaving it assigned to me until then.
Ok, a bit of change of plans. We're reverting: http://git.kernel.org/cgit/linux/kernel/git/mchehab/linux-media.git/commit/?h=media/v4.6-6&id=93f0750dcdaed083d6209b01e952e98ca730db66 https://lkml.kernel.org/r/20160513083224.1c2935c6@recife.lan Looks like we'll be getting another fix ...
does it affect older products?
problem introduced in kernel 4.4, so only sles12 sp2 affected.
Ok, looked again, so the revert is CC:stable and we'll get it eventually. However, the problem the reverted was trying to fix still persists in b0e0e1f83de3 ("[media] media: videobuf2: Prepare to divide videobuf2") but we'll get another fix which should also be CC:stable apparently.
FTR, the new fixes seem to be: 126f402 [media] vb2: core: Skip planes array verification if pb is NULL 83934b7 [media] videobuf2-v4l2: Verify planes array in buffer dequeueing They are currently in linux-next, not yet upstream. Both are tagged for stable. The second patch is identical to the original fix ('2c1f6951a8a8').
On their way upstream: https://lkml.kernel.org/r/20160725081835.1812283e@recife.lan Leaving it open until it lands in stable and then in 12SP2.
Ok, patches are in 12SP2, bouncing back. FTR, the reason for this confusion is that the first patch: 2c1f6951a8a8 [media] videobuf2-v4l2: Verify planes array in buffer dequeueing was committed before this one: 126f40298446 ("[media] vb2: core: Skip planes array verification if pb is NULL") which caused the breakage on pb being NULL. They're both in now so we should be good.
126f40298446 is in patches.kernel.org/patch-4.4.18-19 we released it in SLES 12 SP2 GA already.