Skip to content
Heist/ feed
Back to feed
MediumFix available

pinctrl: renesas: core: Fix possible null-ptr-deref in sh_pfc_map_resources()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: pinctrl: renesas: core: Fix possible null-ptr-deref in sh_pfc_map_resources() It will cause null-ptr-deref when using 'res', if platform_get_resource() returns NULL, so move using 'res' after devm_ioremap_resource() that will check it to avoid null-ptr-deref. And use devm_platform_get_and_ioremap_resource() to simplify code.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.121, 5.15.46, 5.17.14, 5.18.3
CVEs
CVE-2022-49445
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 18:06 UTC · Revision 1

Source evidence

pinctrl: renesas: core: Fix possible null-ptr-deref in sh_pfc_map_resources()

core-osv · Original source

Published 26 Feb 2025, 02:12 UTC

In the Linux kernel, the following vulnerability has been resolved: pinctrl: renesas: core: Fix possible null-ptr-deref in sh_pfc_map_resources() It will cause null-ptr-deref when using 'res', if platform_get_resource() returns NULL, so move using 'res' after devm_ioremap_resource() that will check it to avoid null-ptr-deref. And use devm_platform_get_and_ioremap_resource() to simplify code.

osv:CVE-2022-49445

Kernel

Fixed versions: 5.10.121, 5.15.46, 5.17.14, 5.18.3

Complete source record
{
  "id": "98d4b1557dd324e362b76b3285b982ccfa5127072aa3473139fe3c929ef329c3",
  "url": "https://osv.dev/vulnerability/CVE-2022-49445",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "pinctrl: renesas: core: Fix possible null-ptr-deref in sh_pfc_map_resources()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: pinctrl: renesas: core: Fix possible null-ptr-deref in sh_pfc_map_resources() It will cause null-ptr-deref when using 'res', if platform_get_resource() returns NULL, so move using 'res' after devm_ioremap_resource() that will check it to avoid null-ptr-deref. And use devm_platform_get_and_ioremap_resource() to simplify code.",
    "evidence": "osv:CVE-2022-49445",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "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-49445",
      "aliases": [
        "CVE-2022-49445"
      ],
      "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": "c7977ec4a33633c8e8d9267dd014356cf857351c"
                },
                {
                  "fixed": "f991879762392c19661af5b722578089a12b305f"
                },
                {
                  "fixed": "5ed0519d425619b435150372cce2ffeec71581fa"
                },
                {
                  "fixed": "e3a1ad8fd0ac11f4fa1260c23b5db71a25473254"
                },
                {
                  "fixed": "fb4f022b3ad1f3ff3cafdbc7d51896090ae17701"
                },
                {
                  "fixed": "5376e3d904532e657fd7ca1a9b1ff3d351527b90"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49445.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.3.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-49445.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.093809361Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/5376e3d904532e657fd7ca1a9b1ff3d351527b90",
        "https://git.kernel.org/stable/c/5ed0519d425619b435150372cce2ffeec71581fa",
        "https://git.kernel.org/stable/c/e3a1ad8fd0ac11f4fa1260c23b5db71a25473254",
        "https://git.kernel.org/stable/c/f991879762392c19661af5b722578089a12b305f",
        "https://git.kernel.org/stable/c/fb4f022b3ad1f3ff3cafdbc7d51896090ae17701",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49445.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49445",
        "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-49445.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49445",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 515847,
  "published_at": "2025-02-26T02:12:57.249+00:00"
}