Skip to content
Heist/ feed
Back to feed
HighFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.14.283, 4.19.247, 4.9.318, 5.10.121, 5.15.46, 5.17.14, 5.18.3, 5.4.198
CVEs
CVE-2022-49478
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 02:13 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 26 Feb 2025, 02:13 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.

osv:CVE-2022-49478

Kernel

Fixed versions: 4.9.318, 4.14.283, 4.19.247, 5.4.198, 5.10.121, 5.15.46, 5.17.14, 5.18.3

Complete source record
{
  "id": "7fc3deae8e3288701c8e951fc4964a67ccd104a1e98588a51b71ee3be770f5b2",
  "url": "https://osv.dev/vulnerability/CVE-2022-49478",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "media: pvrusb2: fix array-index-out-of-bounds in pvr2_i2c_core_init",
    "summary": "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.",
    "evidence": "osv:CVE-2022-49478",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.9.318",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "4.14.283",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "4.19.247",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.198",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.121",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.46",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.17.14",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.18.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-49478",
      "aliases": [
        "CVE-2022-49478"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d855497edbfbf9e19a17f4a1154bca69cb4bd9ba"
                },
                {
                  "fixed": "4351bfe36aba9fa7dc9d68d498d25d41a0f45e67"
                },
                {
                  "fixed": "2e004fe914b243db41fa96f9e583385f360ea58e"
                },
                {
                  "fixed": "a3660e06675bccec4bf149c7229ea1d491ba10d7"
                },
                {
                  "fixed": "1310fc3538dcc375a2f46ef0a438512c2ca32827"
                },
                {
                  "fixed": "a3304766d9384886e6d3092c776273526947a2e9"
                },
                {
                  "fixed": "3309c2c574e13b21b44729f5bdbf21f60189b79a"
                },
                {
                  "fixed": "f99a8b1ec0eddc2931aeaa4f490277a15b39f511"
                },
                {
                  "fixed": "24e807541e4a9263ed928e6ae3498de3ad43bd1e"
                },
                {
                  "fixed": "471bec68457aaf981add77b4f590d65dd7da1059"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49478.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.18"
                },
                {
                  "fixed": "4.9.318"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.10.0"
                },
                {
                  "fixed": "4.14.283"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.15.0"
                },
                {
                  "fixed": "4.19.247"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.198"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.121"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.46"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "5.17.14"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.18.0"
                },
                {
                  "fixed": "5.18.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49478.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.994023682Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/1310fc3538dcc375a2f46ef0a438512c2ca32827",
        "https://git.kernel.org/stable/c/24e807541e4a9263ed928e6ae3498de3ad43bd1e",
        "https://git.kernel.org/stable/c/2e004fe914b243db41fa96f9e583385f360ea58e",
        "https://git.kernel.org/stable/c/3309c2c574e13b21b44729f5bdbf21f60189b79a",
        "https://git.kernel.org/stable/c/4351bfe36aba9fa7dc9d68d498d25d41a0f45e67",
        "https://git.kernel.org/stable/c/471bec68457aaf981add77b4f590d65dd7da1059",
        "https://git.kernel.org/stable/c/a3304766d9384886e6d3092c776273526947a2e9",
        "https://git.kernel.org/stable/c/a3660e06675bccec4bf149c7229ea1d491ba10d7",
        "https://git.kernel.org/stable/c/f99a8b1ec0eddc2931aeaa4f490277a15b39f511",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49478.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49478",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49478.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49478",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517270,
  "published_at": "2025-02-26T02:13:19.33+00:00"
}