bpf: Use safer kvmalloc_array() where possible
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v5.18.6 by commit 16fa23f1abee08b80f08fafea0c74caa602ec512, it was introduced in version v5.18 by commit 0dcac272540613d41c05e89679e4ddb978b612f1. For more details please see the references link.