Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 7ca5ce896524f5292e610b27d168269e5ab74951 before 76cff60d7fcb08da537f529bf32a0927bb17265f; affected 7ca5ce896524f5292e610b27d168269e5ab74951 before b9206568e08424fd817a4aeca4f944e241d2f530; affected 7ca5ce896524f5292e610b27d168269e5ab74951 before 5df709d59227994888d7dbb7ea6c83316f0b79c0; affected 7ca5ce896524f5292e610b27d168269e5ab74951 before 95f702e372964aff486338783f49e28a40a53127; affected 7ca5ce896524f5292e610b27d168269e5ab74951 before fff6e5ff0318315998b540896537eaaa2ebf9f7b; affected 7ca5ce896524f5292e610b27d168269e5ab74951 before 4f2db41a09eba7a45abd140bb86ffc519c191886; affected 7ca5ce896524f5292e610b27d168269e5ab74951 before 8e93a083456d78f6b0aa1f58d2b0c7071a2a7a47; affected 7ca5ce896524f5292e610b27d168269e5ab74951 before 9119ceb76e987c2ec2b549ea100e3268ce3a1c7c |
| Linux / Linux | affected 5.0; unaffected 0 before 5.0; unaffected 5.10.265 through 5.10.*; unaffected 5.15.216 through 5.15.*; unaffected 6.1.183 through 6.1.*; unaffected 6.6.151 through 6.6.*; unaffected 6.12.101 through 6.12.*; unaffected 6.18.42 through 6.18.*; unaffected 7.1.6 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/76cff60d7fcb08da537f529bf32a0927bb17265f
- https://git.kernel.org/stable/c/b9206568e08424fd817a4aeca4f944e241d2f530
- https://git.kernel.org/stable/c/5df709d59227994888d7dbb7ea6c83316f0b79c0
- https://git.kernel.org/stable/c/95f702e372964aff486338783f49e28a40a53127
- https://git.kernel.org/stable/c/fff6e5ff0318315998b540896537eaaa2ebf9f7b
- https://git.kernel.org/stable/c/4f2db41a09eba7a45abd140bb86ffc519c191886
- https://git.kernel.org/stable/c/8e93a083456d78f6b0aa1f58d2b0c7071a2a7a47
- https://git.kernel.org/stable/c/9119ceb76e987c2ec2b549ea100e3268ce3a1c7c