In the Linux kernel, the following vulnerability has been resolved:
dmaengine: idxd: Fix the error handling path in idxdcdevregister()
If a call to allocchrdevregion() fails, the already allocated resources are leaking.
Add the needed error handling path to fix the leak.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6073af78156b8c3fc1198f8bcc190b7ac3ac0143",
"target": {
"function": "idxd_cdev_register",
"file": "drivers/dma/idxd/cdev.c"
},
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49422-1f100460",
"signature_type": "Function",
"digest": {
"function_hash": "165352891008737971701490983550797065486",
"length": 255.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5e88561eceb34ae3f88451c2b8e30fe403484189",
"target": {
"file": "drivers/dma/idxd/cdev.c"
},
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49422-5406ebd6",
"signature_type": "Line",
"digest": {
"line_hashes": [
"9753778086495746195119333468127484212",
"35884339639831975057712709164028506929",
"240617951949785197798302146329798560800",
"101368393474163512253845269023945559967",
"33757482986153569855641419323688341916",
"104958953156631862208474946257835464581"
],
"threshold": 0.9
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6073af78156b8c3fc1198f8bcc190b7ac3ac0143",
"target": {
"file": "drivers/dma/idxd/cdev.c"
},
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49422-8a92a848",
"signature_type": "Line",
"digest": {
"line_hashes": [
"9753778086495746195119333468127484212",
"35884339639831975057712709164028506929",
"240617951949785197798302146329798560800",
"101368393474163512253845269023945559967",
"33757482986153569855641419323688341916",
"104958953156631862208474946257835464581"
],
"threshold": 0.9
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b3c7b5d08e9d5b2ff31c03078c00ecf11042419f",
"target": {
"function": "idxd_cdev_register",
"file": "drivers/dma/idxd/cdev.c"
},
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49422-9c8ead96",
"signature_type": "Function",
"digest": {
"function_hash": "165352891008737971701490983550797065486",
"length": 255.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c308a2e711a52a47f4b45e7add2b5200169e429a",
"target": {
"function": "idxd_cdev_register",
"file": "drivers/dma/idxd/cdev.c"
},
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49422-bae0a6be",
"signature_type": "Function",
"digest": {
"function_hash": "165352891008737971701490983550797065486",
"length": 255.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aab08c1aac01097815fbcf10fce7021d2396a31f",
"target": {
"function": "idxd_cdev_register",
"file": "drivers/dma/idxd/cdev.c"
},
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49422-c499ea36",
"signature_type": "Function",
"digest": {
"function_hash": "165352891008737971701490983550797065486",
"length": 255.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c308a2e711a52a47f4b45e7add2b5200169e429a",
"target": {
"file": "drivers/dma/idxd/cdev.c"
},
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49422-c673eda4",
"signature_type": "Line",
"digest": {
"line_hashes": [
"9753778086495746195119333468127484212",
"35884339639831975057712709164028506929",
"240617951949785197798302146329798560800",
"101368393474163512253845269023945559967",
"33757482986153569855641419323688341916",
"104958953156631862208474946257835464581"
],
"threshold": 0.9
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aab08c1aac01097815fbcf10fce7021d2396a31f",
"target": {
"file": "drivers/dma/idxd/cdev.c"
},
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49422-dca02237",
"signature_type": "Line",
"digest": {
"line_hashes": [
"9753778086495746195119333468127484212",
"35884339639831975057712709164028506929",
"240617951949785197798302146329798560800",
"101368393474163512253845269023945559967",
"33757482986153569855641419323688341916",
"104958953156631862208474946257835464581"
],
"threshold": 0.9
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5e88561eceb34ae3f88451c2b8e30fe403484189",
"target": {
"function": "idxd_cdev_register",
"file": "drivers/dma/idxd/cdev.c"
},
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49422-f172be15",
"signature_type": "Function",
"digest": {
"function_hash": "165352891008737971701490983550797065486",
"length": 255.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b3c7b5d08e9d5b2ff31c03078c00ecf11042419f",
"target": {
"file": "drivers/dma/idxd/cdev.c"
},
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-49422-fc4a5462",
"signature_type": "Line",
"digest": {
"line_hashes": [
"9753778086495746195119333468127484212",
"35884339639831975057712709164028506929",
"240617951949785197798302146329798560800",
"101368393474163512253845269023945559967",
"33757482986153569855641419323688341916",
"104958953156631862208474946257835464581"
],
"threshold": 0.9
}
}
]