In the Linux kernel, the following vulnerability has been resolved:
serial: arcuart: fix ofiomap leak in arc_serial_probe
Smatch reports:
drivers/tty/serial/arcuart.c:631 arcserialprobe() warn: 'port->membase' from ofiomap() not released on lines: 631.
In arcserialprobe(), if uartaddone_port() fails, port->membase is not released, which would cause a resource leak.
To fix this, I replace ofiomap with devmplatformioremapresource.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53719.json"
}