In the Linux kernel, the following vulnerability has been resolved:
HID: elan: Fix potential double free in elaninputconfigured
'input' is a managed resource allocated with devminputallocatedevice(), so there is no need to call inputfree_device() explicitly or there will be a double free.
According to the doc of devminputallocate_device(): * Managed input devices do not need to be explicitly unregistered or * freed as it will be done automatically when owner device unbinds from * its driver (or binding fails).
[
{
"deprecated": false,
"id": "CVE-2022-49508-060f62f6",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@24f9dfdaece9bd75bb8dbfdba83eddeefdf7dc47",
"signature_version": "v1",
"target": {
"file": "drivers/hid/hid-elan.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"54839369339235077540348934130933715457",
"267953958715912662286695810992440227430",
"180668309229629881863416217737753594277",
"221519670547054096545545010714355570079",
"117026262534508748729917962400581604189",
"237638620352128643781330238727884760412",
"129355793936303844835952982462401271735",
"89671913875172186685101957817824384992"
]
}
},
{
"deprecated": false,
"id": "CVE-2022-49508-269f163a",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1af20714fedad238362571620be0bd690ded05b6",
"signature_version": "v1",
"target": {
"file": "drivers/hid/hid-elan.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"54839369339235077540348934130933715457",
"267953958715912662286695810992440227430",
"180668309229629881863416217737753594277",
"221519670547054096545545010714355570079",
"117026262534508748729917962400581604189",
"237638620352128643781330238727884760412",
"129355793936303844835952982462401271735",
"89671913875172186685101957817824384992"
]
}
},
{
"deprecated": false,
"id": "CVE-2022-49508-3bd923f1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6d0726725c7c560495f5ff364862a2cefea542e3",
"signature_version": "v1",
"target": {
"function": "elan_input_configured",
"file": "drivers/hid/hid-elan.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "191253368733971210198157684261341743932",
"length": 1313.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49508-5338b852",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f1d4f19a796551edc6679a681ea1756b8c578c08",
"signature_version": "v1",
"target": {
"file": "drivers/hid/hid-elan.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"54839369339235077540348934130933715457",
"267953958715912662286695810992440227430",
"180668309229629881863416217737753594277",
"221519670547054096545545010714355570079",
"117026262534508748729917962400581604189",
"237638620352128643781330238727884760412",
"129355793936303844835952982462401271735",
"89671913875172186685101957817824384992"
]
}
},
{
"deprecated": false,
"id": "CVE-2022-49508-55d13e08",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f1d4f19a796551edc6679a681ea1756b8c578c08",
"signature_version": "v1",
"target": {
"function": "elan_input_configured",
"file": "drivers/hid/hid-elan.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "191253368733971210198157684261341743932",
"length": 1313.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49508-77e82119",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8bb1716507ebf12d50bbf181764481de3b6bc7fd",
"signature_version": "v1",
"target": {
"function": "elan_input_configured",
"file": "drivers/hid/hid-elan.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "191253368733971210198157684261341743932",
"length": 1313.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49508-8ec7d28c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c92ec22a991778a096342cf1a917ae36c5c86a90",
"signature_version": "v1",
"target": {
"function": "elan_input_configured",
"file": "drivers/hid/hid-elan.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "191253368733971210198157684261341743932",
"length": 1313.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49508-b78b7478",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5291451851feeb66fd4bf0826710f482f3b1ab38",
"signature_version": "v1",
"target": {
"file": "drivers/hid/hid-elan.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"54839369339235077540348934130933715457",
"267953958715912662286695810992440227430",
"180668309229629881863416217737753594277",
"221519670547054096545545010714355570079",
"117026262534508748729917962400581604189",
"237638620352128643781330238727884760412",
"129355793936303844835952982462401271735",
"89671913875172186685101957817824384992"
]
}
},
{
"deprecated": false,
"id": "CVE-2022-49508-d0d6f390",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1af20714fedad238362571620be0bd690ded05b6",
"signature_version": "v1",
"target": {
"function": "elan_input_configured",
"file": "drivers/hid/hid-elan.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "191253368733971210198157684261341743932",
"length": 1313.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49508-d4353cc2",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5291451851feeb66fd4bf0826710f482f3b1ab38",
"signature_version": "v1",
"target": {
"function": "elan_input_configured",
"file": "drivers/hid/hid-elan.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "191253368733971210198157684261341743932",
"length": 1313.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49508-dc8d7bb5",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c92ec22a991778a096342cf1a917ae36c5c86a90",
"signature_version": "v1",
"target": {
"file": "drivers/hid/hid-elan.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"54839369339235077540348934130933715457",
"267953958715912662286695810992440227430",
"180668309229629881863416217737753594277",
"221519670547054096545545010714355570079",
"117026262534508748729917962400581604189",
"237638620352128643781330238727884760412",
"129355793936303844835952982462401271735",
"89671913875172186685101957817824384992"
]
}
},
{
"deprecated": false,
"id": "CVE-2022-49508-de1a170f",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@24f9dfdaece9bd75bb8dbfdba83eddeefdf7dc47",
"signature_version": "v1",
"target": {
"function": "elan_input_configured",
"file": "drivers/hid/hid-elan.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "191253368733971210198157684261341743932",
"length": 1313.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49508-e91cd9ed",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6d0726725c7c560495f5ff364862a2cefea542e3",
"signature_version": "v1",
"target": {
"file": "drivers/hid/hid-elan.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"54839369339235077540348934130933715457",
"267953958715912662286695810992440227430",
"180668309229629881863416217737753594277",
"221519670547054096545545010714355570079",
"117026262534508748729917962400581604189",
"237638620352128643781330238727884760412",
"129355793936303844835952982462401271735",
"89671913875172186685101957817824384992"
]
}
},
{
"deprecated": false,
"id": "CVE-2022-49508-ebd70300",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8bb1716507ebf12d50bbf181764481de3b6bc7fd",
"signature_version": "v1",
"target": {
"file": "drivers/hid/hid-elan.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"54839369339235077540348934130933715457",
"267953958715912662286695810992440227430",
"180668309229629881863416217737753594277",
"221519670547054096545545010714355570079",
"117026262534508748729917962400581604189",
"237638620352128643781330238727884760412",
"129355793936303844835952982462401271735",
"89671913875172186685101957817824384992"
]
}
}
]