CVE-2022-49102

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49102
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49102.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49102
Downstream
Related
Published
2025-02-26T01:54:52Z
Modified
2025-10-21T09:16:24.425039Z
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
habanalabs: fix possible memory leak in MMU DR fini
Details

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

habanalabs: fix possible memory leak in MMU DR fini

This patch fixes what seems to be copy paste error.

We will have a memory leak if the host-resident shadow is NULL (which will likely happen as the DR and HR are not dependent).

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
0feaf86d4e69507ab9b2af7dcc63a6886352d5db
Fixed
12e49aefda2e04b07604f13e03f40027cbeb0dc6
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0feaf86d4e69507ab9b2af7dcc63a6886352d5db
Fixed
6d421fb7a9eddd8ce0a05641a3db97283fe20699
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0feaf86d4e69507ab9b2af7dcc63a6886352d5db
Fixed
30058d3a83cfe8c6aacbfe5ab13c01dd0c1799e3
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0feaf86d4e69507ab9b2af7dcc63a6886352d5db
Fixed
eb85eec858c1a5c11d3a0bff403f6440b05b40dc

Affected versions

v5.*

v5.0
v5.0-rc7
v5.0-rc8
v5.1
v5.1-rc1
v5.1-rc2
v5.1-rc3
v5.1-rc4
v5.1-rc5
v5.1-rc6
v5.1-rc7
v5.10
v5.10-rc1
v5.10-rc2
v5.10-rc3
v5.10-rc4
v5.10-rc5
v5.10-rc6
v5.10-rc7
v5.11
v5.11-rc1
v5.11-rc2
v5.11-rc3
v5.11-rc4
v5.11-rc5
v5.11-rc6
v5.11-rc7
v5.12
v5.12-rc1
v5.12-rc1-dontuse
v5.12-rc2
v5.12-rc3
v5.12-rc4
v5.12-rc5
v5.12-rc6
v5.12-rc7
v5.12-rc8
v5.13
v5.13-rc1
v5.13-rc2
v5.13-rc3
v5.13-rc4
v5.13-rc5
v5.13-rc6
v5.13-rc7
v5.14
v5.14-rc1
v5.14-rc2
v5.14-rc3
v5.14-rc4
v5.14-rc5
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.33
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.19
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
v5.17.2
v5.2
v5.2-rc1
v5.2-rc2
v5.2-rc3
v5.2-rc4
v5.2-rc5
v5.2-rc6
v5.2-rc7
v5.3
v5.3-rc1
v5.3-rc2
v5.3-rc3
v5.3-rc4
v5.3-rc5
v5.3-rc6
v5.3-rc7
v5.3-rc8
v5.4
v5.4-rc1
v5.4-rc2
v5.4-rc3
v5.4-rc4
v5.4-rc5
v5.4-rc6
v5.4-rc7
v5.4-rc8
v5.5
v5.5-rc1
v5.5-rc2
v5.5-rc3
v5.5-rc4
v5.5-rc5
v5.5-rc6
v5.5-rc7
v5.6
v5.6-rc1
v5.6-rc2
v5.6-rc3
v5.6-rc4
v5.6-rc5
v5.6-rc6
v5.6-rc7
v5.7
v5.7-rc1
v5.7-rc2
v5.7-rc3
v5.7-rc4
v5.7-rc5
v5.7-rc6
v5.7-rc7
v5.8
v5.8-rc1
v5.8-rc2
v5.8-rc3
v5.8-rc4
v5.8-rc5
v5.8-rc6
v5.8-rc7
v5.9
v5.9-rc1
v5.9-rc2
v5.9-rc3
v5.9-rc4
v5.9-rc5
v5.9-rc6
v5.9-rc7
v5.9-rc8

Database specific

vanir_signatures

[
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6d421fb7a9eddd8ce0a05641a3db97283fe20699",
        "target": {
            "function": "hl_mmu_v1_fini",
            "file": "drivers/misc/habanalabs/common/mmu/mmu_v1.c"
        },
        "digest": {
            "function_hash": "101025556156816233228404957471502527626",
            "length": 269.0
        },
        "deprecated": false,
        "id": "CVE-2022-49102-4d7b87f0",
        "signature_version": "v1",
        "signature_type": "Function"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@12e49aefda2e04b07604f13e03f40027cbeb0dc6",
        "target": {
            "function": "hl_mmu_v1_fini",
            "file": "drivers/misc/habanalabs/common/mmu/mmu_v1.c"
        },
        "digest": {
            "function_hash": "101025556156816233228404957471502527626",
            "length": 269.0
        },
        "deprecated": false,
        "id": "CVE-2022-49102-9c44c22b",
        "signature_version": "v1",
        "signature_type": "Function"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@30058d3a83cfe8c6aacbfe5ab13c01dd0c1799e3",
        "target": {
            "function": "hl_mmu_v1_fini",
            "file": "drivers/misc/habanalabs/common/mmu/mmu_v1.c"
        },
        "digest": {
            "function_hash": "101025556156816233228404957471502527626",
            "length": 269.0
        },
        "deprecated": false,
        "id": "CVE-2022-49102-b8ddaa15",
        "signature_version": "v1",
        "signature_type": "Function"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eb85eec858c1a5c11d3a0bff403f6440b05b40dc",
        "target": {
            "function": "hl_mmu_v1_fini",
            "file": "drivers/misc/habanalabs/common/mmu/mmu_v1.c"
        },
        "digest": {
            "function_hash": "101025556156816233228404957471502527626",
            "length": 269.0
        },
        "deprecated": false,
        "id": "CVE-2022-49102-d2bed9e3",
        "signature_version": "v1",
        "signature_type": "Function"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6d421fb7a9eddd8ce0a05641a3db97283fe20699",
        "target": {
            "file": "drivers/misc/habanalabs/common/mmu/mmu_v1.c"
        },
        "digest": {
            "line_hashes": [
                "131531038525674589223125400526116275153",
                "130174914412917495781110420555146358959",
                "83154666490904703101616163057395802873",
                "9042013051736632591551828025618630813"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "id": "CVE-2022-49102-dbde99f9",
        "signature_version": "v1",
        "signature_type": "Line"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@30058d3a83cfe8c6aacbfe5ab13c01dd0c1799e3",
        "target": {
            "file": "drivers/misc/habanalabs/common/mmu/mmu_v1.c"
        },
        "digest": {
            "line_hashes": [
                "131531038525674589223125400526116275153",
                "130174914412917495781110420555146358959",
                "83154666490904703101616163057395802873",
                "9042013051736632591551828025618630813"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "id": "CVE-2022-49102-f1a85e21",
        "signature_version": "v1",
        "signature_type": "Line"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@12e49aefda2e04b07604f13e03f40027cbeb0dc6",
        "target": {
            "file": "drivers/misc/habanalabs/common/mmu/mmu_v1.c"
        },
        "digest": {
            "line_hashes": [
                "131531038525674589223125400526116275153",
                "130174914412917495781110420555146358959",
                "83154666490904703101616163057395802873",
                "9042013051736632591551828025618630813"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "id": "CVE-2022-49102-f3c1617f",
        "signature_version": "v1",
        "signature_type": "Line"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eb85eec858c1a5c11d3a0bff403f6440b05b40dc",
        "target": {
            "file": "drivers/misc/habanalabs/common/mmu/mmu_v1.c"
        },
        "digest": {
            "line_hashes": [
                "131531038525674589223125400526116275153",
                "130174914412917495781110420555146358959",
                "83154666490904703101616163057395802873",
                "9042013051736632591551828025618630813"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "id": "CVE-2022-49102-f761b21e",
        "signature_version": "v1",
        "signature_type": "Line"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.1.0
Fixed
5.15.34
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.16.20
Type
ECOSYSTEM
Events
Introduced
5.17.0
Fixed
5.17.3