In the Linux kernel, the following vulnerability has been resolved:
cxl/region: Fix cxl_region leak, cleanup targets at region delete
When a region is deleted any targets that have been previously assigned to that region hold references to it. Trigger those references to drop by detaching all targets at unregister_region() time.
Otherwise that region object will leak as userspace has lost the ability to detach targets once region sysfs is torn down.
[
{
"id": "CVE-2022-49893-6de4e766",
"signature_type": "Function",
"signature_version": "v1",
"digest": {
"length": 139.0,
"function_hash": "163088961245890524308507713341015232092"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0d9e734018d70cecf79e2e4c6082167160a0f13f",
"target": {
"function": "unregister_region",
"file": "drivers/cxl/core/region.c"
}
},
{
"id": "CVE-2022-49893-7ce34a37",
"signature_type": "Line",
"signature_version": "v1",
"digest": {
"line_hashes": [
"294491500575342638466097091140604813186",
"228682449265697117578684858316825501095",
"112734919947460204156249036316830401361",
"139816823382471397247071563187572380001",
"286573281685703163749192416516685858280"
],
"threshold": 0.9
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@45d9fb4b758b9d602ee7776eb6754b0349946aad",
"target": {
"file": "drivers/cxl/core/region.c"
}
},
{
"id": "CVE-2022-49893-ddde70b3",
"signature_type": "Function",
"signature_version": "v1",
"digest": {
"length": 139.0,
"function_hash": "163088961245890524308507713341015232092"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@45d9fb4b758b9d602ee7776eb6754b0349946aad",
"target": {
"function": "unregister_region",
"file": "drivers/cxl/core/region.c"
}
},
{
"id": "CVE-2022-49893-f5fd589b",
"signature_type": "Line",
"signature_version": "v1",
"digest": {
"line_hashes": [
"294491500575342638466097091140604813186",
"228682449265697117578684858316825501095",
"112734919947460204156249036316830401361",
"139816823382471397247071563187572380001",
"286573281685703163749192416516685858280"
],
"threshold": 0.9
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0d9e734018d70cecf79e2e4c6082167160a0f13f",
"target": {
"file": "drivers/cxl/core/region.c"
}
}
]