CVE-2022-49819

Source
https://cve.org/CVERecord?id=CVE-2022-49819
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49819.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49819
Downstream
Published
2025-05-01T14:09:41.606Z
Modified
2026-03-11T07:34:26.096967Z
Summary
octeon_ep: fix potential memory leak in octep_device_setup()
Details

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

octeonep: fix potential memory leak in octepdevice_setup()

When occur unsupporteddev and mbox init errors, it did not free oct->conf and iounmap() oct->mmio[i].hwaddr. That would trigger memory leak problem. Add kfree() for oct->conf and iounmap() for oct->mmio[i].hwaddr under unsupporteddev and mbox init errors to fix the problem.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49819.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
862cd659a6fbac664f1fcdd7149046040a7a7e9c
Fixed
67b65a0db8a7fdad43159819f41335497a4bb04f
Fixed
e4041be97b15302ebfffda8bbd45f3b2d096048f

Affected versions

v5.*
v5.18
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
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
v6.*
v6.0
v6.0-rc1
v6.0-rc2
v6.0-rc3
v6.0-rc4
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.0.1
v6.0.2
v6.0.3
v6.0.4
v6.0.5
v6.0.6
v6.0.7
v6.0.8
v6.0.9
v6.1-rc1
v6.1-rc2
v6.1-rc3
v6.1-rc4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49819.json"
vanir_signatures
[
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/net/ethernet/marvell/octeon_ep/octep_main.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e4041be97b15302ebfffda8bbd45f3b2d096048f",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "172002969927592775779912872026752002402",
                "183059831285305382756213980788190612039",
                "244930478807473609437070536966138223657",
                "109530779782121894537074818008459773883",
                "279797271336795525292923667736676535981",
                "35651619436870671026859885261389558602",
                "5205322995967056685979807333483768284",
                "151566787666111203569365648174909642716"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-49819-13049b7a",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/net/ethernet/marvell/octeon_ep/octep_main.c"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@67b65a0db8a7fdad43159819f41335497a4bb04f",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "172002969927592775779912872026752002402",
                "183059831285305382756213980788190612039",
                "244930478807473609437070536966138223657",
                "109530779782121894537074818008459773883",
                "279797271336795525292923667736676535981",
                "35651619436870671026859885261389558602",
                "5205322995967056685979807333483768284",
                "151566787666111203569365648174909642716"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-49819-62c77a80",
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/net/ethernet/marvell/octeon_ep/octep_main.c",
            "function": "octep_device_setup"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e4041be97b15302ebfffda8bbd45f3b2d096048f",
        "deprecated": false,
        "digest": {
            "function_hash": "315662183490391749973359996709588125332",
            "length": 1296.0
        },
        "id": "CVE-2022-49819-650481e9",
        "signature_type": "Function"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "drivers/net/ethernet/marvell/octeon_ep/octep_main.c",
            "function": "octep_device_setup"
        },
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@67b65a0db8a7fdad43159819f41335497a4bb04f",
        "deprecated": false,
        "digest": {
            "function_hash": "315662183490391749973359996709588125332",
            "length": 1296.0
        },
        "id": "CVE-2022-49819-d0264f80",
        "signature_type": "Function"
    }
]