In the Linux kernel, the following vulnerability has been resolved:
coresight: syscfg: Fix memleak on registration failure in cscfgcreatedevice
deviceregister() calls deviceinitialize(), according to doc of device_initialize:
Use put_device() to give up your reference instead of freeing
* @dev directly once you have called this function.
To prevent potential memleak, use put_device() for error handling.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49284.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49284.json"
[
{
"signature_version": "v1",
"target": {
"file": "drivers/hwtracing/coresight/coresight-syscfg.c",
"function": "cscfg_create_device"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c61e2fc87f24cae4701f352fe9ecd4c5c143106c",
"deprecated": false,
"digest": {
"function_hash": "248635492056578751481467401655599152839",
"length": 483.0
},
"id": "CVE-2022-49284-0dddbc42",
"signature_type": "Function"
},
{
"signature_version": "v1",
"target": {
"file": "drivers/hwtracing/coresight/coresight-syscfg.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cfa5dbcdd7aece76f3415284569f2f384aff0253",
"deprecated": false,
"digest": {
"line_hashes": [
"118186188543579511212312169492681960661",
"268636195218015361100905862626130583577",
"305201266107702659440937506493765807055",
"33829711174875461607565968626837990366"
],
"threshold": 0.9
},
"id": "CVE-2022-49284-395ae116",
"signature_type": "Line"
},
{
"signature_version": "v1",
"target": {
"file": "drivers/hwtracing/coresight/coresight-syscfg.c",
"function": "cscfg_create_device"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@412225b32986d5b11c3c1ad9234c50a3f5c52c76",
"deprecated": false,
"digest": {
"function_hash": "248635492056578751481467401655599152839",
"length": 483.0
},
"id": "CVE-2022-49284-4b91d868",
"signature_type": "Function"
},
{
"signature_version": "v1",
"target": {
"file": "drivers/hwtracing/coresight/coresight-syscfg.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@412225b32986d5b11c3c1ad9234c50a3f5c52c76",
"deprecated": false,
"digest": {
"line_hashes": [
"118186188543579511212312169492681960661",
"268636195218015361100905862626130583577",
"305201266107702659440937506493765807055",
"33829711174875461607565968626837990366"
],
"threshold": 0.9
},
"id": "CVE-2022-49284-a31b8802",
"signature_type": "Line"
},
{
"signature_version": "v1",
"target": {
"file": "drivers/hwtracing/coresight/coresight-syscfg.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c61e2fc87f24cae4701f352fe9ecd4c5c143106c",
"deprecated": false,
"digest": {
"line_hashes": [
"118186188543579511212312169492681960661",
"268636195218015361100905862626130583577",
"305201266107702659440937506493765807055",
"33829711174875461607565968626837990366"
],
"threshold": 0.9
},
"id": "CVE-2022-49284-e4143949",
"signature_type": "Line"
},
{
"signature_version": "v1",
"target": {
"file": "drivers/hwtracing/coresight/coresight-syscfg.c",
"function": "cscfg_create_device"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cfa5dbcdd7aece76f3415284569f2f384aff0253",
"deprecated": false,
"digest": {
"function_hash": "248635492056578751481467401655599152839",
"length": 483.0
},
"id": "CVE-2022-49284-e7bf23c4",
"signature_type": "Function"
}
]