firmware: stratix10-svc: Fix a potential resource leak in svc_create_memory_pool()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7ca5ce896524f5292e610b27d168269e5ab74951 · < 1995f15590ca222f91193ed11461862b450abfd6| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
firmware: stratix10-svc: Fix a potential resource leak in svc_create_memory_pool()
svc_create_memory_pool() is only called from stratix10_svc_drv_probe(). 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.
From the CVE record · Linux
The Linux kernel’s stratix10-svc firmware driver can leak a memory mapping created during device probing because the mapping is not released. The input does not describe how an attacker could trigger the leak or specify access or user-interaction requirements.
Engineers running Linux kernels with the stratix10-svc firmware driver should check their versions; affected versions are not specified.