CVE-2022-49284

Source
https://cve.org/CVERecord?id=CVE-2022-49284
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49284.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49284
Downstream
Published
2025-02-26T01:56:24.622Z
Modified
2026-03-11T04:13:35.980564Z
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
coresight: syscfg: Fix memleak on registration failure in cscfg_create_device
Details

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

coresight: syscfg: Fix memleak on registration failure in cscfgcreatedevice

deviceregister() calls deviceinitialize(), according to doc of device_initialize:

Use put_device() to give up your reference instead of freeing
* @dev directly once you have called this function.

To prevent potential memleak, use put_device() for error handling.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49284.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
85e2414c518a03a21dddd4bc88fec2723c5e1197
Fixed
c61e2fc87f24cae4701f352fe9ecd4c5c143106c
Fixed
a529af1f5a5c096f3e18f0d5a32cfcc3d82df1ec
Fixed
412225b32986d5b11c3c1ad9234c50a3f5c52c76
Fixed
cfa5dbcdd7aece76f3415284569f2f384aff0253

Affected versions

v5.*
v5.14
v5.14-rc6
v5.14-rc7
v5.15
v5.15-rc1
v5.15-rc2
v5.15-rc3
v5.15-rc4
v5.15-rc5
v5.15-rc6
v5.15-rc7
v5.15.1
v5.15.10
v5.15.11
v5.15.12
v5.15.13
v5.15.14
v5.15.15
v5.15.16
v5.15.17
v5.15.18
v5.15.19
v5.15.2
v5.15.20
v5.15.21
v5.15.22
v5.15.23
v5.15.24
v5.15.25
v5.15.26
v5.15.27
v5.15.28
v5.15.29
v5.15.3
v5.15.30
v5.15.31
v5.15.32
v5.15.4
v5.15.5
v5.15.6
v5.15.7
v5.15.8
v5.15.9
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.16.1
v5.16.10
v5.16.11
v5.16.12
v5.16.13
v5.16.14
v5.16.15
v5.16.16
v5.16.17
v5.16.18
v5.16.2
v5.16.3
v5.16.4
v5.16.5
v5.16.6
v5.16.7
v5.16.8
v5.16.9
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

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49284.json"
vanir_signatures
[
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/hwtracing/coresight/coresight-syscfg.c",
            "function": "cscfg_create_device"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c61e2fc87f24cae4701f352fe9ecd4c5c143106c",
        "deprecated": false,
        "digest": {
            "function_hash": "248635492056578751481467401655599152839",
            "length": 483.0
        },
        "id": "CVE-2022-49284-0dddbc42",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/hwtracing/coresight/coresight-syscfg.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cfa5dbcdd7aece76f3415284569f2f384aff0253",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "118186188543579511212312169492681960661",
                "268636195218015361100905862626130583577",
                "305201266107702659440937506493765807055",
                "33829711174875461607565968626837990366"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-49284-395ae116",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/hwtracing/coresight/coresight-syscfg.c",
            "function": "cscfg_create_device"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@412225b32986d5b11c3c1ad9234c50a3f5c52c76",
        "deprecated": false,
        "digest": {
            "function_hash": "248635492056578751481467401655599152839",
            "length": 483.0
        },
        "id": "CVE-2022-49284-4b91d868",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/hwtracing/coresight/coresight-syscfg.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@412225b32986d5b11c3c1ad9234c50a3f5c52c76",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "118186188543579511212312169492681960661",
                "268636195218015361100905862626130583577",
                "305201266107702659440937506493765807055",
                "33829711174875461607565968626837990366"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-49284-a31b8802",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/hwtracing/coresight/coresight-syscfg.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c61e2fc87f24cae4701f352fe9ecd4c5c143106c",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "118186188543579511212312169492681960661",
                "268636195218015361100905862626130583577",
                "305201266107702659440937506493765807055",
                "33829711174875461607565968626837990366"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-49284-e4143949",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/hwtracing/coresight/coresight-syscfg.c",
            "function": "cscfg_create_device"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cfa5dbcdd7aece76f3415284569f2f384aff0253",
        "deprecated": false,
        "digest": {
            "function_hash": "248635492056578751481467401655599152839",
            "length": 483.0
        },
        "id": "CVE-2022-49284-e7bf23c4",
        "signature_type": "Function"
    }
]