Skip to content
Heist/ feed
Back to feed
MediumFix available

pinctrl: renesas: rzn1: 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: rzn1: 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-49449
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 04:16 UTC · Revision 1

Source evidence

pinctrl: renesas: rzn1: 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: rzn1: 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-49449

Kernel

Fixed versions: 5.10.121, 5.15.46, 5.17.14, 5.18.3

Complete source record
{
  "id": "44066052d12bb31437734f615aac2b9ef1f72f67ee8fed588ec934381362da5c",
  "url": "https://osv.dev/vulnerability/CVE-2022-49449",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "pinctrl: renesas: rzn1: Fix possible null-ptr-deref in sh_pfc_map_resources()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: pinctrl: renesas: rzn1: 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-49449",
    "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-49449",
      "aliases": [
        "CVE-2022-49449"
      ],
      "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": "4e53b5004745ef26a37bca4933b2d3ea71313f2a"
                },
                {
                  "fixed": "b646e0cfeb38bf5f1944fd548f1dfa9b129fa00c"
                },
                {
                  "fixed": "c16b59d445135c8026a04e388d8b2762feaa3b3b"
                },
                {
                  "fixed": "34c719b8fdfbd0c7c54cae56e6b0f16e9f8bf03e"
                },
                {
                  "fixed": "01f9e02e0f13df3fd291676dc80054e977be1601"
                },
                {
                  "fixed": "2f661477c2bb8068194dbba9738d05219f111c6e"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49449.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.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-49449.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.786124796Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/01f9e02e0f13df3fd291676dc80054e977be1601",
        "https://git.kernel.org/stable/c/2f661477c2bb8068194dbba9738d05219f111c6e",
        "https://git.kernel.org/stable/c/34c719b8fdfbd0c7c54cae56e6b0f16e9f8bf03e",
        "https://git.kernel.org/stable/c/b646e0cfeb38bf5f1944fd548f1dfa9b129fa00c",
        "https://git.kernel.org/stable/c/c16b59d445135c8026a04e388d8b2762feaa3b3b",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49449.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49449",
        "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-49449.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49449",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 510209,
  "published_at": "2025-02-26T02:12:59.709+00:00"
}