CVE-2022-50113

Source
https://cve.org/CVERecord?id=CVE-2022-50113
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50113.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50113
Downstream
Published
2025-06-18T11:02:45.475Z
Modified
2026-03-11T09:33:18.223215Z
Summary
ASoc: audio-graph-card2: Fix refcount leak bug in __graph_get_type()
Details

In the Linux kernel, the following vulnerability has been resolved:

ASoc: audio-graph-card2: Fix refcount leak bug in __graphgettype()

We should call ofnodeput() for the reference before its replacement as it returned by ofgetparent() which has increased the refcount. Besides, we should also call ofnodeput() before return.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50113.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c8c74939f791ccbbfff988aec5f929374dbef2a6
Fixed
3bb0c0b5f0f866fc3785380e0860dc37ceacf342
Fixed
7a63a8c253bf57dfd9fa3ee2a7f1a3727505f947
Fixed
eda26893dabfc6da7a1e1ff5f8628ed9faab3ab9

Affected versions

v5.*
v5.15
v5.15-rc2
v5.15-rc3
v5.15-rc4
v5.15-rc5
v5.15-rc6
v5.15-rc7
v5.16
v5.16-rc1
v5.16-rc2
v5.16-rc3
v5.16-rc4
v5.16-rc5
v5.16-rc6
v5.16-rc7
v5.16-rc8
v5.17
v5.17-rc1
v5.17-rc2
v5.17-rc3
v5.17-rc4
v5.17-rc5
v5.17-rc6
v5.17-rc7
v5.17-rc8
v5.18
v5.18-rc1
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.18.1
v5.18.10
v5.18.11
v5.18.12
v5.18.13
v5.18.14
v5.18.15
v5.18.16
v5.18.17
v5.18.2
v5.18.3
v5.18.4
v5.18.5
v5.18.6
v5.18.7
v5.18.8
v5.18.9
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8
v5.19.1

Database specific

vanir_signatures
[
    {
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "file": "sound/soc/generic/audio-graph-card2.c",
            "function": "__graph_get_type"
        },
        "id": "CVE-2022-50113-1387b052",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eda26893dabfc6da7a1e1ff5f8628ed9faab3ab9",
        "digest": {
            "function_hash": "8248573217721826400444978516080235702",
            "length": 363.0
        }
    },
    {
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "file": "sound/soc/generic/audio-graph-card2.c",
            "function": "__graph_get_type"
        },
        "id": "CVE-2022-50113-254f88e3",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3bb0c0b5f0f866fc3785380e0860dc37ceacf342",
        "digest": {
            "function_hash": "8248573217721826400444978516080235702",
            "length": 363.0
        }
    },
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "target": {
            "file": "sound/soc/generic/audio-graph-card2.c"
        },
        "id": "CVE-2022-50113-34d390c0",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7a63a8c253bf57dfd9fa3ee2a7f1a3727505f947",
        "digest": {
            "line_hashes": [
                "47999257044135120100548340022086413686",
                "243785005447662572376205584398943148805",
                "155172096102557265021906148494811312126",
                "32399564300377310214386335985792433777",
                "177785722501862726697901721176235677177",
                "16643153884944751952091732719529138288",
                "276350649760506591488893547661886189579",
                "12433524586814412793226413556647355794",
                "183459477347235682546376951119481622519",
                "252612958851255600428155336778305513741",
                "330135276815082047884830851527054773623",
                "114744988184443574539821857464118611264",
                "193731831070697870660624324769613802150",
                "308789654600291378859997475576624540393"
            ],
            "threshold": 0.9
        }
    },
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "target": {
            "file": "sound/soc/generic/audio-graph-card2.c"
        },
        "id": "CVE-2022-50113-41606f7a",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eda26893dabfc6da7a1e1ff5f8628ed9faab3ab9",
        "digest": {
            "line_hashes": [
                "47999257044135120100548340022086413686",
                "243785005447662572376205584398943148805",
                "155172096102557265021906148494811312126",
                "32399564300377310214386335985792433777",
                "177785722501862726697901721176235677177",
                "16643153884944751952091732719529138288",
                "276350649760506591488893547661886189579",
                "12433524586814412793226413556647355794",
                "183459477347235682546376951119481622519",
                "252612958851255600428155336778305513741",
                "330135276815082047884830851527054773623",
                "114744988184443574539821857464118611264",
                "193731831070697870660624324769613802150",
                "308789654600291378859997475576624540393"
            ],
            "threshold": 0.9
        }
    },
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "target": {
            "file": "sound/soc/generic/audio-graph-card2.c"
        },
        "id": "CVE-2022-50113-aa17cca7",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3bb0c0b5f0f866fc3785380e0860dc37ceacf342",
        "digest": {
            "line_hashes": [
                "47999257044135120100548340022086413686",
                "243785005447662572376205584398943148805",
                "155172096102557265021906148494811312126",
                "32399564300377310214386335985792433777",
                "177785722501862726697901721176235677177",
                "16643153884944751952091732719529138288",
                "276350649760506591488893547661886189579",
                "12433524586814412793226413556647355794",
                "183459477347235682546376951119481622519",
                "252612958851255600428155336778305513741",
                "330135276815082047884830851527054773623",
                "114744988184443574539821857464118611264",
                "193731831070697870660624324769613802150",
                "308789654600291378859997475576624540393"
            ],
            "threshold": 0.9
        }
    },
    {
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "file": "sound/soc/generic/audio-graph-card2.c",
            "function": "__graph_get_type"
        },
        "id": "CVE-2022-50113-f17f9ea2",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7a63a8c253bf57dfd9fa3ee2a7f1a3727505f947",
        "digest": {
            "function_hash": "8248573217721826400444978516080235702",
            "length": 363.0
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50113.json"