In the Linux kernel, the following vulnerability has been resolved:
usb: host: xhci: Fix potential memory leak in xhciallocstream_info()
xhciallocstreaminfo() allocates stream context array for streaminfo ->streamctxarray with xhciallocstreamctx(). When some error occurs, streaminfo->streamctxarray is not released, which will lead to a memory leak.
We can fix it by releasing the streaminfo->streamctxarray with xhcifreestreamctx() on the error path to avoid the potential memory leak.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50544.json",
"cna_assigner": "Linux"
}[
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7fc6bab3413e6a42bb1264ff7c9149808c93a4c7",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-003d9f57",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"digest": {
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
],
"threshold": 0.9
}
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e271f42a5cc3768cd2622b929ba66859ae21f97",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-02aad390",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"digest": {
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
],
"threshold": 0.9
}
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fcd594da0b5955119d9707e4e0a8d0fb1c969101",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-3d5d97f0",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"digest": {
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
],
"threshold": 0.9
}
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@782c873f8e7686f5b3c47e8b099f7e08c3dd1fdc",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-4bdc8e30",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"digest": {
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e702de2f5c893bf2cdb0152191f99a6ad1411823",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-4c83c767",
"target": {
"file": "drivers/usb/host/xhci-mem.c",
"function": "xhci_alloc_stream_info"
},
"digest": {
"length": 2159.0,
"function_hash": "54033136311777558456817240036364537486"
}
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ddab9fe76296840aad686c66888a9c1dfdbff5ff",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-5708d780",
"target": {
"file": "drivers/usb/host/xhci-mem.c",
"function": "xhci_alloc_stream_info"
},
"digest": {
"length": 2242.0,
"function_hash": "114521847938652582607282189221611827264"
}
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fcd594da0b5955119d9707e4e0a8d0fb1c969101",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-66e5bbed",
"target": {
"file": "drivers/usb/host/xhci-mem.c",
"function": "xhci_alloc_stream_info"
},
"digest": {
"length": 2242.0,
"function_hash": "114521847938652582607282189221611827264"
}
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e271f42a5cc3768cd2622b929ba66859ae21f97",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-8246184a",
"target": {
"file": "drivers/usb/host/xhci-mem.c",
"function": "xhci_alloc_stream_info"
},
"digest": {
"length": 2242.0,
"function_hash": "114521847938652582607282189221611827264"
}
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a40ad475236022f3432880e3091c380e46e71a71",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-9084c8e6",
"target": {
"file": "drivers/usb/host/xhci-mem.c",
"function": "xhci_alloc_stream_info"
},
"digest": {
"length": 2242.0,
"function_hash": "114521847938652582607282189221611827264"
}
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ddab9fe76296840aad686c66888a9c1dfdbff5ff",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-96295ce5",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"digest": {
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9fa81cbd2dd300aa8fe9bac70e068b9a11cbb144",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-a0738dbf",
"target": {
"file": "drivers/usb/host/xhci-mem.c",
"function": "xhci_alloc_stream_info"
},
"digest": {
"length": 2242.0,
"function_hash": "114521847938652582607282189221611827264"
}
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@91271a3e772e180bbb8afb114c72fd294a02f93d",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-ab838d23",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"digest": {
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
],
"threshold": 0.9
}
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e702de2f5c893bf2cdb0152191f99a6ad1411823",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-c70fe6e9",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"digest": {
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7fc6bab3413e6a42bb1264ff7c9149808c93a4c7",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-e2b59a2b",
"target": {
"file": "drivers/usb/host/xhci-mem.c",
"function": "xhci_alloc_stream_info"
},
"digest": {
"length": 2159.0,
"function_hash": "54033136311777558456817240036364537486"
}
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a40ad475236022f3432880e3091c380e46e71a71",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-e3d981a1",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"digest": {
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@782c873f8e7686f5b3c47e8b099f7e08c3dd1fdc",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-f3f91c14",
"target": {
"file": "drivers/usb/host/xhci-mem.c",
"function": "xhci_alloc_stream_info"
},
"digest": {
"length": 2242.0,
"function_hash": "114521847938652582607282189221611827264"
}
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9fa81cbd2dd300aa8fe9bac70e068b9a11cbb144",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-f521b6fa",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"digest": {
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@91271a3e772e180bbb8afb114c72fd294a02f93d",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-50544-fc1cc03f",
"target": {
"file": "drivers/usb/host/xhci-mem.c",
"function": "xhci_alloc_stream_info"
},
"digest": {
"length": 2242.0,
"function_hash": "114521847938652582607282189221611827264"
}
}
]