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

High 7.8 Published Updated

A missing validation check in the Linux kernel pvrusb2 driver allows an out-of-bounds array index, potentially causing a denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-49478?

CVE-2022-49478 is a high-severity vulnerability in Linux kernel, published on 26 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-129

Which versions are affected by CVE-2022-49478?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49478?

Apply the vendor's patch.

Is CVE-2022-49478 being exploited?

There is no known exploitation of CVE-2022-49478 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49478, GHSA-jgh8-6hmw-5f93, UBUNTU-CVE-2022-49478.

Is CVE-2022-49478 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free