CVE-2022-48859

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-48859
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48859.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-48859
Downstream
Related
Published
2024-07-16T12:25:23Z
Modified
2025-10-13T14:36:06.204380Z
Summary
net: marvell: prestera: Add missing of_node_put() in prestera_switch_set_base_mac_addr
Details

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

net: marvell: prestera: Add missing ofnodeput() in presteraswitchsetbasemac_addr

This node pointer is returned by offindcompatiblenode() with refcount incremented. Calling ofnode_put() to aovid the refcount leak.

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
501ef3066c89d7f9045315e1be58749cf9e6814d
Fixed
b7c2fd1d126329340639adfb8dd2938fe4b65df7
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
501ef3066c89d7f9045315e1be58749cf9e6814d
Fixed
4cc66bf17220ff9631f9fa99b02a872e0ad5a08b
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
501ef3066c89d7f9045315e1be58749cf9e6814d
Fixed
c9ffa3e2bc451816ce0295e40063514fabf2bd36

Affected versions

v5.*

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.3
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.2
v5.16.3
v5.16.4
v5.16.5
v5.16.6
v5.16.7
v5.16.8
v5.16.9
v5.17-rc1
v5.17-rc2
v5.17-rc3
v5.17-rc4
v5.17-rc5
v5.17-rc6
v5.9
v5.9-rc4
v5.9-rc5
v5.9-rc6
v5.9-rc7
v5.9-rc8

Database specific

{
    "vanir_signatures": [
        {
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4cc66bf17220ff9631f9fa99b02a872e0ad5a08b",
            "digest": {
                "line_hashes": [
                    "84294918896163432560196963020091770830",
                    "13532767959428085945624239889658080962",
                    "12903299442382201314287109755681208783",
                    "27964914422648932896844898112222469369"
                ],
                "threshold": 0.9
            },
            "target": {
                "file": "drivers/net/ethernet/marvell/prestera/prestera_main.c"
            },
            "id": "CVE-2022-48859-3d8eb064",
            "deprecated": false,
            "signature_type": "Line"
        },
        {
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c9ffa3e2bc451816ce0295e40063514fabf2bd36",
            "digest": {
                "line_hashes": [
                    "84294918896163432560196963020091770830",
                    "13532767959428085945624239889658080962",
                    "12903299442382201314287109755681208783",
                    "27964914422648932896844898112222469369"
                ],
                "threshold": 0.9
            },
            "target": {
                "file": "drivers/net/ethernet/marvell/prestera/prestera_main.c"
            },
            "id": "CVE-2022-48859-a1d19858",
            "deprecated": false,
            "signature_type": "Line"
        },
        {
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b7c2fd1d126329340639adfb8dd2938fe4b65df7",
            "digest": {
                "length": 418.0,
                "function_hash": "110943308964844865305616944434237406383"
            },
            "target": {
                "file": "drivers/net/ethernet/marvell/prestera/prestera_main.c",
                "function": "prestera_switch_set_base_mac_addr"
            },
            "id": "CVE-2022-48859-c72dc2ed",
            "deprecated": false,
            "signature_type": "Function"
        },
        {
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b7c2fd1d126329340639adfb8dd2938fe4b65df7",
            "digest": {
                "line_hashes": [
                    "84294918896163432560196963020091770830",
                    "13532767959428085945624239889658080962",
                    "12903299442382201314287109755681208783",
                    "27964914422648932896844898112222469369"
                ],
                "threshold": 0.9
            },
            "target": {
                "file": "drivers/net/ethernet/marvell/prestera/prestera_main.c"
            },
            "id": "CVE-2022-48859-e0339e28",
            "deprecated": false,
            "signature_type": "Line"
        },
        {
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4cc66bf17220ff9631f9fa99b02a872e0ad5a08b",
            "digest": {
                "length": 418.0,
                "function_hash": "110943308964844865305616944434237406383"
            },
            "target": {
                "file": "drivers/net/ethernet/marvell/prestera/prestera_main.c",
                "function": "prestera_switch_set_base_mac_addr"
            },
            "id": "CVE-2022-48859-f1b526b3",
            "deprecated": false,
            "signature_type": "Function"
        },
        {
            "signature_version": "v1",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c9ffa3e2bc451816ce0295e40063514fabf2bd36",
            "digest": {
                "length": 418.0,
                "function_hash": "110943308964844865305616944434237406383"
            },
            "target": {
                "file": "drivers/net/ethernet/marvell/prestera/prestera_main.c",
                "function": "prestera_switch_set_base_mac_addr"
            },
            "id": "CVE-2022-48859-f55f89f6",
            "deprecated": false,
            "signature_type": "Function"
        }
    ]
}

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.10.0
Fixed
5.15.29
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.16.15