Skip to content
Heist/ feed
Back to feed
UnratedFix available

ipu3-imgu: Fix NULL pointer dereference in imgu_subdev_set_selection()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: ipu3-imgu: Fix NULL pointer dereference in imgu_subdev_set_selection() Calling v4l2_subdev_get_try_crop() and v4l2_subdev_get_try_compose() with a subdev state of NULL leads to a NULL pointer dereference. This can currently happen in imgu_subdev_set_selection() when the state passed in is NULL, as this method first gets pointers to both the "try" and "active" states and only then decides which to use. The same issue has been addressed for imgu_subdev_get_selection() with commit 30d03a0de650 ("ipu3-imgu: Fix NULL pointer dereference in active selection access"). However the issue still persists in imgu_subdev_set_selection(). Therefore, apply a similar fix as done in the aforementioned commit to imgu_subdev_set_selection(). To keep things a bit cleaner, introduce helper functions for "crop" and "compose" access and use them in both imgu_subdev_set_selection() and imgu_subdev_get_selection().

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.87, 6.0.18, 6.1.4
CVEs
CVE-2022-50826
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 18:38 UTC · Revision 1

Source evidence

ipu3-imgu: Fix NULL pointer dereference in imgu_subdev_set_selection()

core-osv · Original source

Published 30 Dec 2025, 12:08 UTC

In the Linux kernel, the following vulnerability has been resolved: ipu3-imgu: Fix NULL pointer dereference in imgu_subdev_set_selection() Calling v4l2_subdev_get_try_crop() and v4l2_subdev_get_try_compose() with a subdev state of NULL leads to a NULL pointer dereference. This can currently happen in imgu_subdev_set_selection() when the state passed in is NULL, as this method first gets pointers to both the "try" and "active" states and only then decides which to use. The same issue has been addressed for imgu_subdev_get_selection() with commit 30d03a0de650 ("ipu3-imgu: Fix NULL pointer dereference in active selection access"). However the issue still persists in imgu_subdev_set_selection(). Therefore, apply a similar fix as done in the aforementioned commit to imgu_subdev_set_selection(). To keep things a bit cleaner, introduce helper functions for "crop" and "compose" access and use them in both imgu_subdev_set_selection() and imgu_subdev_get_selection().

osv:CVE-2022-50826

Kernel

Fixed versions: 5.15.87, 6.0.18, 6.1.4

Complete source record
{
  "id": "cd05b0b8828bedecc91266713381d5738ea47c26308cea57466d2186f22f652a",
  "url": "https://osv.dev/vulnerability/CVE-2022-50826",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ipu3-imgu: Fix NULL pointer dereference in imgu_subdev_set_selection()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: ipu3-imgu: Fix NULL pointer dereference in imgu_subdev_set_selection() Calling v4l2_subdev_get_try_crop() and v4l2_subdev_get_try_compose() with a subdev state of NULL leads to a NULL pointer dereference. This can currently happen in imgu_subdev_set_selection() when the state passed in is NULL, as this method first gets pointers to both the \"try\" and \"active\" states and only then decides which to use. The same issue has been addressed for imgu_subdev_get_selection() with commit 30d03a0de650 (\"ipu3-imgu: Fix NULL pointer dereference in active selection access\"). However the issue still persists in imgu_subdev_set_selection(). Therefore, apply a similar fix as done in the aforementioned commit to imgu_subdev_set_selection(). To keep things a bit cleaner, introduce helper functions for \"crop\" and \"compose\" access and use them in both imgu_subdev_set_selection() and imgu_subdev_get_selection().",
    "evidence": "osv:CVE-2022-50826",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.87",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.0.18",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-50826",
      "aliases": [
        "CVE-2022-50826"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0d346d2a6f54f06f36b224fd27cd6eafe8c83be9"
                },
                {
                  "fixed": "fa6bbb4894b9b947063c6ff90018a954c5f9f4b3"
                },
                {
                  "fixed": "611d617bdb6c5d636a9861ec1c98e813fc8a5556"
                },
                {
                  "fixed": "5038ee677606106c91564f9c4557d808d14bad70"
                },
                {
                  "fixed": "dc608edf7d45ba0c2ad14c06eccd66474fec7847"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50826.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.14.0"
                },
                {
                  "fixed": "5.15.87"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.0.18"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.1.0"
                },
                {
                  "fixed": "6.1.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50826.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.173940653Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/5038ee677606106c91564f9c4557d808d14bad70",
        "https://git.kernel.org/stable/c/611d617bdb6c5d636a9861ec1c98e813fc8a5556",
        "https://git.kernel.org/stable/c/dc608edf7d45ba0c2ad14c06eccd66474fec7847",
        "https://git.kernel.org/stable/c/fa6bbb4894b9b947063c6ff90018a954c5f9f4b3",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50826.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-50826",
        "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/50xxx/CVE-2022-50826.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-50826",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 505767,
  "published_at": "2025-12-30T12:08:38.95+00:00"
}