Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2024-50288

media: vivid: fix buffer overwrite when using > 32 buffers

Description

In the Linux kernel, the following vulnerability has been resolved: media: vivid: fix buffer overwrite when using > 32 buffers The maximum number of buffers that can be requested was increased to 64 for the video capture queue. But video capture used a must_blank array that was still sized for 32 (VIDEO_MAX_FRAME). This caused an out-of-bounds write when using buffer indices >= 32. Create a new define MAX_VID_CAP_BUFFERS that is used to access the must_blank array and set max_num_buffers for the video capture queue. This solves a crash reported by: https://bugzilla.kernel.org/show_bug.cgi?id=219258

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • cea70ed416b428f8214be196d62cc7ffaa11f1b8 to < e6bacd8f2178b22859fe6d9f755f19dfcd9d3862affected
  • cea70ed416b428f8214be196d62cc7ffaa11f1b8 to < 96d8569563916fe2f8fe17317e20e43f54f9ba4baffected

Linux Linux

Default version status: affected

  • 6.8affected
  • 0 to < 6.8unaffected
  • 6.11.8 to ≤ 6.11.*unaffected
  • 6.12 to ≤ *unaffected

References