CVE-2026-45868 (GCVE-0-2026-45868)

Vulnerability from cvelistv5 – Published: 2026-05-27 12:15 – Updated: 2026-05-27 12:15
VLAI
Title
pinctrl: single: fix refcount leak in pcs_add_gpio_func()
Summary
In the Linux kernel, the following vulnerability has been resolved: pinctrl: single: fix refcount leak in pcs_add_gpio_func() of_parse_phandle_with_args() returns a device_node pointer with refcount incremented in gpiospec.np. The loop iterates through all phandles but never releases the reference, causing a refcount leak on each iteration. Add of_node_put() calls to release the reference after extracting the needed arguments and on the error path when devm_kzalloc() fails. This bug was detected by our static analysis tool and verified by my code review.
Severity
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: a1a277eb76b3507df7c41774048a644aa4dfd096 , < 191bfd5710d6a7f48ba4315d8d3e908dcc15243c (git)
Affected: a1a277eb76b3507df7c41774048a644aa4dfd096 , < 3e3b28bb0b6ddc521a4fdd1c1ba0d35017a0796b (git)
Affected: a1a277eb76b3507df7c41774048a644aa4dfd096 , < 456a60d06c09a92680dc35fabca68024badcc28e (git)
Affected: a1a277eb76b3507df7c41774048a644aa4dfd096 , < 99cc7352156c65201c675f750e0e77c4c73d93f5 (git)
Affected: a1a277eb76b3507df7c41774048a644aa4dfd096 , < 7814b1431848854b56717086e2b61bea3c59753d (git)
Affected: a1a277eb76b3507df7c41774048a644aa4dfd096 , < e2e367e56bacb93ce5ac73f0b3297d5c83d38dd4 (git)
Affected: a1a277eb76b3507df7c41774048a644aa4dfd096 , < 5b9e84d27e310f22c4ba45fedbc4f5baf43dd823 (git)
Affected: a1a277eb76b3507df7c41774048a644aa4dfd096 , < 353353309b0f7afa407df29e455f9d15b5acc296 (git)
Create a notification for this product.
Linux Linux Affected: 3.10
Unaffected: 0 , < 3.10 (semver)
Unaffected: 5.10.252 , ≤ 5.10.* (semver)
Unaffected: 5.15.202 , ≤ 5.15.* (semver)
Unaffected: 6.1.165 , ≤ 6.1.* (semver)
Unaffected: 6.6.128 , ≤ 6.6.* (semver)
Unaffected: 6.12.75 , ≤ 6.12.* (semver)
Unaffected: 6.18.14 , ≤ 6.18.* (semver)
Unaffected: 6.19.4 , ≤ 6.19.* (semver)
Unaffected: 7.0 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/pinctrl/pinctrl-single.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "191bfd5710d6a7f48ba4315d8d3e908dcc15243c",
              "status": "affected",
              "version": "a1a277eb76b3507df7c41774048a644aa4dfd096",
              "versionType": "git"
            },
            {
              "lessThan": "3e3b28bb0b6ddc521a4fdd1c1ba0d35017a0796b",
              "status": "affected",
              "version": "a1a277eb76b3507df7c41774048a644aa4dfd096",
              "versionType": "git"
            },
            {
              "lessThan": "456a60d06c09a92680dc35fabca68024badcc28e",
              "status": "affected",
              "version": "a1a277eb76b3507df7c41774048a644aa4dfd096",
              "versionType": "git"
            },
            {
              "lessThan": "99cc7352156c65201c675f750e0e77c4c73d93f5",
              "status": "affected",
              "version": "a1a277eb76b3507df7c41774048a644aa4dfd096",
              "versionType": "git"
            },
            {
              "lessThan": "7814b1431848854b56717086e2b61bea3c59753d",
              "status": "affected",
              "version": "a1a277eb76b3507df7c41774048a644aa4dfd096",
              "versionType": "git"
            },
            {
              "lessThan": "e2e367e56bacb93ce5ac73f0b3297d5c83d38dd4",
              "status": "affected",
              "version": "a1a277eb76b3507df7c41774048a644aa4dfd096",
              "versionType": "git"
            },
            {
              "lessThan": "5b9e84d27e310f22c4ba45fedbc4f5baf43dd823",
              "status": "affected",
              "version": "a1a277eb76b3507df7c41774048a644aa4dfd096",
              "versionType": "git"
            },
            {
              "lessThan": "353353309b0f7afa407df29e455f9d15b5acc296",
              "status": "affected",
              "version": "a1a277eb76b3507df7c41774048a644aa4dfd096",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/pinctrl/pinctrl-single.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.10"
            },
            {
              "lessThan": "3.10",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.252",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.202",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.165",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.128",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.75",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.14",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.19.*",
              "status": "unaffected",
              "version": "6.19.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.252",
                  "versionStartIncluding": "3.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.202",
                  "versionStartIncluding": "3.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.165",
                  "versionStartIncluding": "3.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.128",
                  "versionStartIncluding": "3.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.75",
                  "versionStartIncluding": "3.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.14",
                  "versionStartIncluding": "3.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.19.4",
                  "versionStartIncluding": "3.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0",
                  "versionStartIncluding": "3.10",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\npinctrl: single: fix refcount leak in pcs_add_gpio_func()\n\nof_parse_phandle_with_args() returns a device_node pointer with refcount\nincremented in gpiospec.np. The loop iterates through all phandles but\nnever releases the reference, causing a refcount leak on each iteration.\n\nAdd of_node_put() calls to release the reference after extracting the\nneeded arguments and on the error path when devm_kzalloc() fails.\n\nThis bug was detected by our static analysis tool and verified by my\ncode review."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-27T12:15:48.311Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/191bfd5710d6a7f48ba4315d8d3e908dcc15243c"
        },
        {
          "url": "https://git.kernel.org/stable/c/3e3b28bb0b6ddc521a4fdd1c1ba0d35017a0796b"
        },
        {
          "url": "https://git.kernel.org/stable/c/456a60d06c09a92680dc35fabca68024badcc28e"
        },
        {
          "url": "https://git.kernel.org/stable/c/99cc7352156c65201c675f750e0e77c4c73d93f5"
        },
        {
          "url": "https://git.kernel.org/stable/c/7814b1431848854b56717086e2b61bea3c59753d"
        },
        {
          "url": "https://git.kernel.org/stable/c/e2e367e56bacb93ce5ac73f0b3297d5c83d38dd4"
        },
        {
          "url": "https://git.kernel.org/stable/c/5b9e84d27e310f22c4ba45fedbc4f5baf43dd823"
        },
        {
          "url": "https://git.kernel.org/stable/c/353353309b0f7afa407df29e455f9d15b5acc296"
        }
      ],
      "title": "pinctrl: single: fix refcount leak in pcs_add_gpio_func()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-45868",
    "datePublished": "2026-05-27T12:15:48.311Z",
    "dateReserved": "2026-05-13T15:03:33.080Z",
    "dateUpdated": "2026-05-27T12:15:48.311Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-45868",
      "date": "2026-05-29",
      "epss": "0.00024",
      "percentile": "0.07393"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-45868\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-05-27T14:17:00.167\",\"lastModified\":\"2026-05-27T14:48:31.480\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\npinctrl: single: fix refcount leak in pcs_add_gpio_func()\\n\\nof_parse_phandle_with_args() returns a device_node pointer with refcount\\nincremented in gpiospec.np. The loop iterates through all phandles but\\nnever releases the reference, causing a refcount leak on each iteration.\\n\\nAdd of_node_put() calls to release the reference after extracting the\\nneeded arguments and on the error path when devm_kzalloc() fails.\\n\\nThis bug was detected by our static analysis tool and verified by my\\ncode review.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/191bfd5710d6a7f48ba4315d8d3e908dcc15243c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/353353309b0f7afa407df29e455f9d15b5acc296\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/3e3b28bb0b6ddc521a4fdd1c1ba0d35017a0796b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/456a60d06c09a92680dc35fabca68024badcc28e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/5b9e84d27e310f22c4ba45fedbc4f5baf43dd823\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7814b1431848854b56717086e2b61bea3c59753d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/99cc7352156c65201c675f750e0e77c4c73d93f5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e2e367e56bacb93ce5ac73f0b3297d5c83d38dd4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…