Skip to content
Heist/ feed
Back to feed
MediumFix available

ASoC: mediatek: mt8195: Fix error handling in mt8195_mt6359_rt1019_rt5682_dev_probe

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: ASoC: mediatek: mt8195: Fix error handling in mt8195_mt6359_rt1019_rt5682_dev_probe The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. This function only calls of_node_put() in the regular path. And it will cause refcount leak in error path.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.17.2
CVEs
CVE-2022-49240
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 17:04 UTC · Revision 1

Source evidence

ASoC: mediatek: mt8195: Fix error handling in mt8195_mt6359_rt1019_rt5682_dev_probe

core-osv · Original source

Published 26 Feb 2025, 01:56 UTC

In the Linux kernel, the following vulnerability has been resolved: ASoC: mediatek: mt8195: Fix error handling in mt8195_mt6359_rt1019_rt5682_dev_probe The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. This function only calls of_node_put() in the regular path. And it will cause refcount leak in error path.

osv:CVE-2022-49240

Kernel

Fixed versions: 5.17.2

Complete source record
{
  "id": "aee53abe595136d3cdac96ffce081ea740b89336b009b4888e3adfb240e7c327",
  "url": "https://osv.dev/vulnerability/CVE-2022-49240",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ASoC: mediatek: mt8195: Fix error handling in mt8195_mt6359_rt1019_rt5682_dev_probe",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: ASoC: mediatek: mt8195: Fix error handling in mt8195_mt6359_rt1019_rt5682_dev_probe The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. This function only calls of_node_put() in the regular path. And it will cause refcount leak in error path.",
    "evidence": "osv:CVE-2022-49240",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.17.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-49240",
      "aliases": [
        "CVE-2022-49240"
      ],
      "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": "082482a5022780d42180a394fe6843e71fe963d8"
                },
                {
                  "fixed": "c652f8f0875b569f8afa80b8cf9762828fd6187b"
                },
                {
                  "fixed": "c4b7174fe5bb875a09a78674a14a1589d1a672f3"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49240.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.17.0"
                },
                {
                  "fixed": "5.17.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49240.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:21.551482424Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/c4b7174fe5bb875a09a78674a14a1589d1a672f3",
        "https://git.kernel.org/stable/c/c652f8f0875b569f8afa80b8cf9762828fd6187b",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49240.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49240",
        "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-49240.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49240",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 487474,
  "published_at": "2025-02-26T01:56:02.795+00:00"
}