In the Linux kernel, the following vulnerability has been resolved:
firmware: stratix10-svc: Fix a potential resource leak in svccreatememory_pool()
svccreatememorypool() is only called from stratix10svcdrvprobe(). Most of resources in the probe are managed, but not this memremap() call.
There is also no memunmap() call in the file.
So switch to devm_memremap() to avoid a resource leak.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53255.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53255.json"
[
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c04ed61ebf01968d7699b121663982493ed577fb",
"id": "CVE-2023-53255-cc3fef05",
"deprecated": false,
"target": {
"function": "svc_create_memory_pool",
"file": "drivers/firmware/stratix10-svc.c"
},
"signature_version": "v1",
"digest": {
"length": 1187.0,
"function_hash": "186517479823800346910399457840029947660"
}
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c04ed61ebf01968d7699b121663982493ed577fb",
"id": "CVE-2023-53255-e1563432",
"deprecated": false,
"target": {
"file": "drivers/firmware/stratix10-svc.c"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"266515767878514875521073324664262747137",
"305880629107497131585443332806727145272",
"310478144179320753414108520076048869753",
"234681402181294006404923767599653035248"
],
"threshold": 0.9
}
}
]