Bug 2348228 (CVE-2022-49478) - CVE-2022-49478 kernel: media: pvrusb2: fix array-index-out-of-bounds in pvr2_i2c_core_init
Summary: CVE-2022-49478 kernel: media: pvrusb2: fix array-index-out-of-bounds in pvr2_...
Keywords:
Status: NEW
Alias: CVE-2022-49478
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:22 UTC by OSIDB Bzimport
Modified: 2025-04-20 17:58 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:22:07 UTC
In the Linux kernel, the following vulnerability has been resolved:

media: pvrusb2: fix array-index-out-of-bounds in pvr2_i2c_core_init

Syzbot reported that -1 is used as array index. The problem was in
missing validation check.

hdw->unit_number is initialized with -1 and then if init table walk fails
this value remains unchanged. Since code blindly uses this member for
array indexing adding sanity check is the easiest fix for that.

hdw->workpoll initialization moved upper to prevent warning in
__flush_work.

Comment 1 Avinash Hanwate 2025-02-26 22:05:30 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022604-CVE-2022-49478-4f2d@gregkh/T


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