Bug 2327191 (CVE-2024-50287) - CVE-2024-50287 kernel: media: v4l2-tpg: prevent the risk of a division by zero
Summary: CVE-2024-50287 kernel: media: v4l2-tpg: prevent the risk of a division by zero
Keywords:
Status: NEW
Alias: CVE-2024-50287
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2327228
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-19 02:02 UTC by OSIDB Bzimport
Modified: 2024-11-21 19:04 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-11-19 02:02:54 UTC
In the Linux kernel, the following vulnerability has been resolved:

media: v4l2-tpg: prevent the risk of a division by zero

As reported by Coverity, the logic at tpg_precalculate_line()
blindly rescales the buffer even when scaled_witdh is equal to
zero. If this ever happens, this will cause a division by zero.

Instead, add a WARN_ON_ONCE() to trigger such cases and return
without doing any precalculation.

Comment 1 Avinash Hanwate 2024-11-19 04:54:44 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024111949-CVE-2024-50287-bf9b@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.