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.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7fc6bab3413e6a42bb1264ff7c9149808c93a4c7",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-003d9f57",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e271f42a5cc3768cd2622b929ba66859ae21f97",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-02aad390",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fcd594da0b5955119d9707e4e0a8d0fb1c969101",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-3d5d97f0",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@782c873f8e7686f5b3c47e8b099f7e08c3dd1fdc",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-4bdc8e30",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e702de2f5c893bf2cdb0152191f99a6ad1411823",
"target": {
"function": "xhci_alloc_stream_info",
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-4c83c767",
"digest": {
"length": 2159.0,
"function_hash": "54033136311777558456817240036364537486"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ddab9fe76296840aad686c66888a9c1dfdbff5ff",
"target": {
"function": "xhci_alloc_stream_info",
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-5708d780",
"digest": {
"length": 2242.0,
"function_hash": "114521847938652582607282189221611827264"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fcd594da0b5955119d9707e4e0a8d0fb1c969101",
"target": {
"function": "xhci_alloc_stream_info",
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-66e5bbed",
"digest": {
"length": 2242.0,
"function_hash": "114521847938652582607282189221611827264"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e271f42a5cc3768cd2622b929ba66859ae21f97",
"target": {
"function": "xhci_alloc_stream_info",
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-8246184a",
"digest": {
"length": 2242.0,
"function_hash": "114521847938652582607282189221611827264"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a40ad475236022f3432880e3091c380e46e71a71",
"target": {
"function": "xhci_alloc_stream_info",
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-9084c8e6",
"digest": {
"length": 2242.0,
"function_hash": "114521847938652582607282189221611827264"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ddab9fe76296840aad686c66888a9c1dfdbff5ff",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-96295ce5",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9fa81cbd2dd300aa8fe9bac70e068b9a11cbb144",
"target": {
"function": "xhci_alloc_stream_info",
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-a0738dbf",
"digest": {
"length": 2242.0,
"function_hash": "114521847938652582607282189221611827264"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@91271a3e772e180bbb8afb114c72fd294a02f93d",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-ab838d23",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e702de2f5c893bf2cdb0152191f99a6ad1411823",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-c70fe6e9",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7fc6bab3413e6a42bb1264ff7c9149808c93a4c7",
"target": {
"function": "xhci_alloc_stream_info",
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-e2b59a2b",
"digest": {
"length": 2159.0,
"function_hash": "54033136311777558456817240036364537486"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a40ad475236022f3432880e3091c380e46e71a71",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-e3d981a1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@782c873f8e7686f5b3c47e8b099f7e08c3dd1fdc",
"target": {
"function": "xhci_alloc_stream_info",
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-f3f91c14",
"digest": {
"length": 2242.0,
"function_hash": "114521847938652582607282189221611827264"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9fa81cbd2dd300aa8fe9bac70e068b9a11cbb144",
"target": {
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-f521b6fa",
"digest": {
"threshold": 0.9,
"line_hashes": [
"97468608579021697117551784805794554673",
"74535565267118416452474949845682283232",
"150107904785544445304107113388758913654",
"219603493182567310657737073033934166239",
"2060475135832020124488682657810202267",
"272644740794317837905947528004056423163",
"258084283934818774050623655057375764113",
"287087241134402891332100169463182231421"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@91271a3e772e180bbb8afb114c72fd294a02f93d",
"target": {
"function": "xhci_alloc_stream_info",
"file": "drivers/usb/host/xhci-mem.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50544-fc1cc03f",
"digest": {
"length": 2242.0,
"function_hash": "114521847938652582607282189221611827264"
},
"signature_type": "Function"
}
]