Skip to content
Heist/ feed
Back to feed
HighFix available

media: imx-jpeg: fix a bug of accessing array out of bounds

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: media: imx-jpeg: fix a bug of accessing array out of bounds When error occurs in parsing jpeg, the slot isn't acquired yet, it may be the default value MXC_MAX_SLOTS. If the driver access the slot using the incorrect slot number, it will access array out of bounds. The result is the driver will change num_domains, which follows slot_data in struct mxc_jpeg_dev. Then the driver won't detach the pm domain at rmmod, which will lead to kernel panic when trying to insmod again.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.33, 5.16.19, 5.17.2
CVEs
CVE-2022-49163
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:59 UTC · Revision 1

Source evidence

media: imx-jpeg: fix a bug of accessing array out of bounds

core-osv · Original source

Published 26 Feb 2025, 01:55 UTC

In the Linux kernel, the following vulnerability has been resolved: media: imx-jpeg: fix a bug of accessing array out of bounds When error occurs in parsing jpeg, the slot isn't acquired yet, it may be the default value MXC_MAX_SLOTS. If the driver access the slot using the incorrect slot number, it will access array out of bounds. The result is the driver will change num_domains, which follows slot_data in struct mxc_jpeg_dev. Then the driver won't detach the pm domain at rmmod, which will lead to kernel panic when trying to insmod again.

osv:CVE-2022-49163

Kernel

Fixed versions: 5.15.33, 5.16.19, 5.17.2

Complete source record
{
  "id": "d095b07e47c5895c650b8eb0f0fa6680765164a4757ccdab4a9b3c2794ab51de",
  "url": "https://osv.dev/vulnerability/CVE-2022-49163",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "media: imx-jpeg: fix a bug of accessing array out of bounds",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: media: imx-jpeg: fix a bug of accessing array out of bounds When error occurs in parsing jpeg, the slot isn't acquired yet, it may be the default value MXC_MAX_SLOTS. If the driver access the slot using the incorrect slot number, it will access array out of bounds. The result is the driver will change num_domains, which follows slot_data in struct mxc_jpeg_dev. Then the driver won't detach the pm domain at rmmod, which will lead to kernel panic when trying to insmod again.",
    "evidence": "osv:CVE-2022-49163",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.33",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.16.19",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.17.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-49163",
      "aliases": [
        "CVE-2022-49163"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "2db16c6ed72ce644d5639b3ed15e5817442db4ba"
                },
                {
                  "fixed": "02f9f97d54ffc85b50ad77f5b1f3c8f69cd17747"
                },
                {
                  "fixed": "20c8b90430c5d6c4a3936eaa7c35aac670581487"
                },
                {
                  "fixed": "e209e6db2e527db6a93b14c2deedf969caca78fc"
                },
                {
                  "fixed": "97558d170a1236280407e8d29a7d095d2c2ed554"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49163.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.13.0"
                },
                {
                  "fixed": "5.15.33"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "5.16.19"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.17.0"
                },
                {
                  "fixed": "5.17.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49163.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.674360832Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/02f9f97d54ffc85b50ad77f5b1f3c8f69cd17747",
        "https://git.kernel.org/stable/c/20c8b90430c5d6c4a3936eaa7c35aac670581487",
        "https://git.kernel.org/stable/c/97558d170a1236280407e8d29a7d095d2c2ed554",
        "https://git.kernel.org/stable/c/e209e6db2e527db6a93b14c2deedf969caca78fc",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49163.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49163",
        "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-49163.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49163",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 505060,
  "published_at": "2025-02-26T01:55:24.043+00:00"
}