CVE-2022-49478

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

High · published February 26, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
20.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00292 · 20.6th percentile
Published
2025-02-26T02:13Z
EPSS history
Timeline
  • 26 FEB 02:13Z
    media: pvrusb2: fix array-index-out-of-bounds in pvr2_i2c_core_init
    cvelistv5