firmware: stratix10-svc: fix memory leaks and list corruption bugs
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7ca5ce896524f5292e610b27d168269e5ab74951 · < 4f2db41a09eba7a45abd140bb86ffc519c191886| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
firmware: stratix10-svc: fix memory leaks and list corruption bugs
Fix a memory leak when gen_pool_alloc() fails by freeing pmem on the error path. Switch pmem allocation from devm_kzalloc() to kzalloc() with explicit kfree() in the free path to match its list-managed lifetime. Remove the erroneous list_del(&svc_data_mem) which corrupted the list head on failed lookups.
From the CVE record · Linux
The Linux kernel's stratix10-svc firmware component can leak memory when an allocation fails and corrupt a list on a failed lookup. The input does not describe how an attacker could trigger these conditions or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the stratix10-svc firmware component should check their deployments; affected versions are not specified.