Skip to content
Heist/ feed
Back to feed
MediumFix available

drm/rockchip: vop: fix possible null-ptr-deref in vop_bind()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: drm/rockchip: vop: fix possible null-ptr-deref in vop_bind() It will cause null-ptr-deref in resource_size(), if platform_get_resource() returns NULL, move calling resource_size() after devm_ioremap_resource() that will check 'res' to avoid null-ptr-deref.

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-49491
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 18:25 UTC · Revision 1

Source evidence

drm/rockchip: vop: fix possible null-ptr-deref in vop_bind()

core-osv · Original source

Published 26 Feb 2025, 02:13 UTC

In the Linux kernel, the following vulnerability has been resolved: drm/rockchip: vop: fix possible null-ptr-deref in vop_bind() It will cause null-ptr-deref in resource_size(), if platform_get_resource() returns NULL, move calling resource_size() after devm_ioremap_resource() that will check 'res' to avoid null-ptr-deref.

osv:CVE-2022-49491

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": "45d1872d7c1839a3a389cce685462678854670af6395b16c6965021b1f47fd98",
  "url": "https://osv.dev/vulnerability/CVE-2022-49491",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "drm/rockchip: vop: fix possible null-ptr-deref in vop_bind()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: drm/rockchip: vop: fix possible null-ptr-deref in vop_bind() It will cause null-ptr-deref in resource_size(), if platform_get_resource() returns NULL, move calling resource_size() after devm_ioremap_resource() that will check 'res' to avoid null-ptr-deref.",
    "evidence": "osv:CVE-2022-49491",
    "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": "medium",
    "structured": {
      "id": "CVE-2022-49491",
      "aliases": [
        "CVE-2022-49491"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "2048e3286f347db5667708e47448176b5329e8d8"
                },
                {
                  "fixed": "452922955df215a417c80d09dab72bbc667a1861"
                },
                {
                  "fixed": "fcd6a886443730c39170b8383411e52118aec0a3"
                },
                {
                  "fixed": "6ff986e057bf28e2f7690dad410768b2270f9453"
                },
                {
                  "fixed": "a9b4599665e437de8a1152799c34841b799a2e1c"
                },
                {
                  "fixed": "3451852312303d54a003c73bd0ae39cebb960bd5"
                },
                {
                  "fixed": "b54926bd558d97c888c3d2d87886f3c159d3254a"
                },
                {
                  "fixed": "769c53bb6116d0eaec0f1fe4ec4b27a74465cad1"
                },
                {
                  "fixed": "ecfa52654d0c9c333c1fe1611f47105f6bce9591"
                },
                {
                  "fixed": "f8c242908ad15bbd604d3bcb54961b7d454c43f8"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49491.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.19.0"
                },
                {
                  "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-49491.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:47.858585874Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/3451852312303d54a003c73bd0ae39cebb960bd5",
        "https://git.kernel.org/stable/c/452922955df215a417c80d09dab72bbc667a1861",
        "https://git.kernel.org/stable/c/6ff986e057bf28e2f7690dad410768b2270f9453",
        "https://git.kernel.org/stable/c/769c53bb6116d0eaec0f1fe4ec4b27a74465cad1",
        "https://git.kernel.org/stable/c/a9b4599665e437de8a1152799c34841b799a2e1c",
        "https://git.kernel.org/stable/c/b54926bd558d97c888c3d2d87886f3c159d3254a",
        "https://git.kernel.org/stable/c/ecfa52654d0c9c333c1fe1611f47105f6bce9591",
        "https://git.kernel.org/stable/c/f8c242908ad15bbd604d3bcb54961b7d454c43f8",
        "https://git.kernel.org/stable/c/fcd6a886443730c39170b8383411e52118aec0a3",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49491.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49491",
        "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-49491.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49491",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 515877,
  "published_at": "2025-02-26T02:13:28.158+00:00"
}