In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: f_hid: fix refcount leak on error path
When failing to allocate report_desc, opts->refcnt has already been incremented so it needs to be decremented to avoid leaving the options structure permanently locked.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50514.json"
}"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50514.json"
[
{
"id": "CVE-2022-50514-0cd7c4e6",
"signature_version": "v1",
"target": {
"file": "drivers/usb/gadget/function/f_hid.c",
"function": "hidg_alloc"
},
"digest": {
"function_hash": "243562666721660260371365194936923829406",
"length": 1406.0
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80dc47e751a837106c09bec73964ff8f7ea280b4",
"deprecated": false
},
{
"target": {
"file": "drivers/usb/gadget/function/f_hid.c"
},
"id": "CVE-2022-50514-11433fad",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"187021425991859458502009789931173006231",
"204970726158103389970525012988439721227",
"238663616642918731648624500412498968115",
"176776678381953369031496897649578002182"
]
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ba78f7c10606719f702c04a15fb0471507b32d7b",
"deprecated": false
},
{
"target": {
"file": "drivers/usb/gadget/function/f_hid.c",
"function": "hidg_alloc"
},
"signature_version": "v1",
"id": "CVE-2022-50514-23246b81",
"digest": {
"function_hash": "243562666721660260371365194936923829406",
"length": 1406.0
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ba78f7c10606719f702c04a15fb0471507b32d7b",
"deprecated": false
},
{
"target": {
"file": "drivers/usb/gadget/function/f_hid.c"
},
"id": "CVE-2022-50514-306faf0b",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"187021425991859458502009789931173006231",
"204970726158103389970525012988439721227",
"238663616642918731648624500412498968115",
"176776678381953369031496897649578002182"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9d4a0aca8a75550d3456c8de339a341dc4536ec5",
"deprecated": false
},
{
"id": "CVE-2022-50514-3d32bb03",
"target": {
"file": "drivers/usb/gadget/function/f_hid.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"187021425991859458502009789931173006231",
"204970726158103389970525012988439721227",
"238663616642918731648624500412498968115",
"176776678381953369031496897649578002182"
]
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80dc47e751a837106c09bec73964ff8f7ea280b4",
"deprecated": false
},
{
"target": {
"file": "drivers/usb/gadget/function/f_hid.c",
"function": "hidg_alloc"
},
"signature_version": "v1",
"id": "CVE-2022-50514-3eae2f28",
"digest": {
"function_hash": "243562666721660260371365194936923829406",
"length": 1406.0
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@70a3288a7586526315105c699b687d78cd32559a",
"deprecated": false
},
{
"id": "CVE-2022-50514-4528d19a",
"target": {
"file": "drivers/usb/gadget/function/f_hid.c",
"function": "hidg_alloc"
},
"signature_version": "v1",
"digest": {
"function_hash": "243562666721660260371365194936923829406",
"length": 1406.0
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@95412c932b3c9e8cc4431dac4fac8fcd80d54982",
"deprecated": false
},
{
"target": {
"file": "drivers/usb/gadget/function/f_hid.c",
"function": "hidg_alloc"
},
"signature_version": "v1",
"id": "CVE-2022-50514-56841f18",
"digest": {
"function_hash": "243562666721660260371365194936923829406",
"length": 1406.0
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e88b89a096af0001bcff6bf7ad2feb1486487173",
"deprecated": false
},
{
"target": {
"file": "drivers/usb/gadget/function/f_hid.c",
"function": "hidg_alloc"
},
"signature_version": "v1",
"id": "CVE-2022-50514-59cd2a34",
"digest": {
"function_hash": "243562666721660260371365194936923829406",
"length": 1406.0
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9d4a0aca8a75550d3456c8de339a341dc4536ec5",
"deprecated": false
},
{
"id": "CVE-2022-50514-85c88924",
"signature_version": "v1",
"target": {
"file": "drivers/usb/gadget/function/f_hid.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"187021425991859458502009789931173006231",
"204970726158103389970525012988439721227",
"238663616642918731648624500412498968115",
"176776678381953369031496897649578002182"
]
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e88b89a096af0001bcff6bf7ad2feb1486487173",
"deprecated": false
},
{
"id": "CVE-2022-50514-a2501ca8",
"signature_version": "v1",
"target": {
"file": "drivers/usb/gadget/function/f_hid.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"187021425991859458502009789931173006231",
"204970726158103389970525012988439721227",
"238663616642918731648624500412498968115",
"176776678381953369031496897649578002182"
]
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@70a3288a7586526315105c699b687d78cd32559a",
"deprecated": false
},
{
"target": {
"file": "drivers/usb/gadget/function/f_hid.c",
"function": "hidg_alloc"
},
"signature_version": "v1",
"id": "CVE-2022-50514-bb466e4c",
"digest": {
"function_hash": "243562666721660260371365194936923829406",
"length": 1406.0
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@216437dd64fce36791a3b6cc8f8013df36856958",
"deprecated": false
},
{
"target": {
"file": "drivers/usb/gadget/function/f_hid.c"
},
"id": "CVE-2022-50514-ec809233",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"187021425991859458502009789931173006231",
"204970726158103389970525012988439721227",
"238663616642918731648624500412498968115",
"176776678381953369031496897649578002182"
]
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@216437dd64fce36791a3b6cc8f8013df36856958",
"deprecated": false
},
{
"target": {
"file": "drivers/usb/gadget/function/f_hid.c"
},
"id": "CVE-2022-50514-f7376f81",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"187021425991859458502009789931173006231",
"204970726158103389970525012988439721227",
"238663616642918731648624500412498968115",
"176776678381953369031496897649578002182"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@95412c932b3c9e8cc4431dac4fac8fcd80d54982",
"deprecated": false
}
]