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.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49819.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49819.json"
[
{
"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"
}
]