CVE-2022-49150

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49150
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49150.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49150
Downstream
Published
2025-02-26T01:55:16.962Z
Modified
2025-11-28T11:59:01.925204Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
rtc: gamecube: Fix refcount leak in gamecube_rtc_read_offset_from_sram
Details

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

rtc: gamecube: Fix refcount leak in gamecubertcreadoffsetfrom_sram

The offindcompatiblenode() function returns a node pointer with refcount incremented, We should use ofnodeput() on it when done Add the missing ofnode_put() to release the refcount.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49150.json"
}
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
86559400b3ef9de93ba50523cffe767c35cd531a
Fixed
de66e4f28dfd11f954966c447b4430529ed040a2
Fixed
4b2dc39ca024990abe36ad5d145c4fe0c06afd34

Affected versions

v5.*

v5.16
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.17.1

Database specific

vanir_signatures

[
    {
        "digest": {
            "function_hash": "280028752932300099577254897110979996383",
            "length": 857.0
        },
        "id": "CVE-2022-49150-1283efa6",
        "signature_version": "v1",
        "target": {
            "file": "drivers/rtc/rtc-gamecube.c",
            "function": "gamecube_rtc_read_offset_from_sram"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@de66e4f28dfd11f954966c447b4430529ed040a2",
        "deprecated": false,
        "signature_type": "Function"
    },
    {
        "digest": {
            "line_hashes": [
                "101913207306274218509032509537237083437",
                "121139726391096308851230805566206711360",
                "69745644291912845650780848205538905733",
                "257369744580540769467095088434371558789"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-49150-2ee827f8",
        "signature_version": "v1",
        "target": {
            "file": "drivers/rtc/rtc-gamecube.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@de66e4f28dfd11f954966c447b4430529ed040a2",
        "deprecated": false,
        "signature_type": "Line"
    },
    {
        "digest": {
            "line_hashes": [
                "101913207306274218509032509537237083437",
                "121139726391096308851230805566206711360",
                "69745644291912845650780848205538905733",
                "257369744580540769467095088434371558789"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-49150-5fb6b6b8",
        "signature_version": "v1",
        "target": {
            "file": "drivers/rtc/rtc-gamecube.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4b2dc39ca024990abe36ad5d145c4fe0c06afd34",
        "deprecated": false,
        "signature_type": "Line"
    },
    {
        "digest": {
            "function_hash": "280028752932300099577254897110979996383",
            "length": 857.0
        },
        "id": "CVE-2022-49150-7743a3e8",
        "signature_version": "v1",
        "target": {
            "file": "drivers/rtc/rtc-gamecube.c",
            "function": "gamecube_rtc_read_offset_from_sram"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4b2dc39ca024990abe36ad5d145c4fe0c06afd34",
        "deprecated": false,
        "signature_type": "Function"
    }
]

source

"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49150.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.17.0
Fixed
5.17.2

Database specific

source

"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49150.json"