Description
In the Linux kernel, the following vulnerability has been resolved: bnxt_en: set backing store type from query type bnxt_hwrm_func_backing_store_qcaps_v2() stores resp->type from the firmware response in ctxm->type and later uses that value to index fixed backing-store metadata arrays such as ctx_arr[] and bnxt_bstore_to_trace[]. ctxm->type is fixed by the current backing-store query type and matches the array index of ctx->ctx_arr. Set ctxm->type from the current loop variable instead of depending on resp->type. Also update the loop to advance type from next_valid_type in the for statement, which keeps the control flow simpler for non-valid and unchanged entries.
Product status
6a4d0774f02d61f8c75ffe2e38a8553410fe52e9 (git) before c8d53b70166d1dc463ef42adb7293e1a770822c7
6a4d0774f02d61f8c75ffe2e38a8553410fe52e9 (git) before 29732b68a6816a815d58e9ab229844c23617e1e0
6a4d0774f02d61f8c75ffe2e38a8553410fe52e9 (git) before 4ee937107d52f9e5c350e4b5e629760e328b3d9f
6.8
Any version before 6.8
6.18.22 (semver)
6.19.12 (semver)
7.0 (original_commit_for_fix)
References
git.kernel.org/...c/c8d53b70166d1dc463ef42adb7293e1a770822c7
git.kernel.org/...c/29732b68a6816a815d58e9ab229844c23617e1e0
git.kernel.org/...c/4ee937107d52f9e5c350e4b5e629760e328b3d9f