Skip to content
Heist/ feed
Back to feed
UnratedFix available

pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map Here is the BUG report by KASAN about null pointer dereference: BUG: KASAN: null-ptr-deref in strcmp+0x2e/0x50 Read of size 1 at addr 0000000000000000 by task python3/2640 Call Trace: strcmp __of_find_property of_find_property pinctrl_dt_to_map kasprintf() would return NULL pointer when kmalloc() fail to allocate. So directly return ENOMEM, if kasprintf() return NULL pointer.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.14.300, 4.19.267, 4.9.334, 5.10.156, 5.15.80, 5.4.225, 6.0.10
CVEs
CVE-2022-49832
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 16:35 UTC · Revision 1

Source evidence

pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map

core-osv · Original source

Published 1 May 2025, 14:09 UTC

In the Linux kernel, the following vulnerability has been resolved: pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map Here is the BUG report by KASAN about null pointer dereference: BUG: KASAN: null-ptr-deref in strcmp+0x2e/0x50 Read of size 1 at addr 0000000000000000 by task python3/2640 Call Trace: strcmp __of_find_property of_find_property pinctrl_dt_to_map kasprintf() would return NULL pointer when kmalloc() fail to allocate. So directly return ENOMEM, if kasprintf() return NULL pointer.

osv:CVE-2022-49832

Kernel

Fixed versions: 4.9.334, 4.14.300, 4.19.267, 5.4.225, 5.10.156, 5.15.80, 6.0.10

Complete source record
{
  "id": "6fb4e369a1175295d71def9236e3f3992af6b5a8da5c98a7eaf07198561c10c9",
  "url": "https://osv.dev/vulnerability/CVE-2022-49832",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map Here is the BUG report by KASAN about null pointer dereference: BUG: KASAN: null-ptr-deref in strcmp+0x2e/0x50 Read of size 1 at addr 0000000000000000 by task python3/2640 Call Trace: strcmp __of_find_property of_find_property pinctrl_dt_to_map kasprintf() would return NULL pointer when kmalloc() fail to allocate. So directly return ENOMEM, if kasprintf() return NULL pointer.",
    "evidence": "osv:CVE-2022-49832",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.9.334",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "4.14.300",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "4.19.267",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.225",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.156",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.80",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.0.10",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-49832",
      "aliases": [
        "CVE-2022-49832"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "57291ce295c0aca738dd284c4a9c591c09ebee71"
                },
                {
                  "fixed": "aaf552c5d53abe4659176e099575fe870d2e4768"
                },
                {
                  "fixed": "b4d9f55cd38435358bc16d580612bc0d798d7b4c"
                },
                {
                  "fixed": "a988dcd3dd9e691c5ccc3324b209688f3b5453e9"
                },
                {
                  "fixed": "040f726fecd88121f3b95e70369785ad452dddf9"
                },
                {
                  "fixed": "777430aa4ddccaa5accec6db90ffc1d47f00d471"
                },
                {
                  "fixed": "97e5b508e96176f1a73888ed89df396d7041bfcb"
                },
                {
                  "fixed": "5834a3a98cd266ad35a229923c0adbd0addc8d68"
                },
                {
                  "fixed": "91d5c5060ee24fe8da88cd585bb43b843d2f0dce"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49832.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.5.0"
                },
                {
                  "fixed": "4.9.334"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.10.0"
                },
                {
                  "fixed": "4.14.300"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.15.0"
                },
                {
                  "fixed": "4.19.267"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.225"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.156"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.80"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.0.10"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49832.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.793455409Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/040f726fecd88121f3b95e70369785ad452dddf9",
        "https://git.kernel.org/stable/c/5834a3a98cd266ad35a229923c0adbd0addc8d68",
        "https://git.kernel.org/stable/c/777430aa4ddccaa5accec6db90ffc1d47f00d471",
        "https://git.kernel.org/stable/c/91d5c5060ee24fe8da88cd585bb43b843d2f0dce",
        "https://git.kernel.org/stable/c/97e5b508e96176f1a73888ed89df396d7041bfcb",
        "https://git.kernel.org/stable/c/a988dcd3dd9e691c5ccc3324b209688f3b5453e9",
        "https://git.kernel.org/stable/c/aaf552c5d53abe4659176e099575fe870d2e4768",
        "https://git.kernel.org/stable/c/b4d9f55cd38435358bc16d580612bc0d798d7b4c",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49832.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49832",
        "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-49832.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49832",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 497438,
  "published_at": "2025-05-01T14:09:50.435+00:00"
}