CVE-2024-40919: bnxt_en: Adjust logging of firmware messages in case of released token in __hwrm_send()

Description

In the Linux kernel, the following vulnerability has been resolved:

bnxt_en: Adjust logging of firmware messages in case of released token in __hwrm_send()

In case of token is released due to token->state == BNXT_HWRM_DEFERRED,
released token (set to NULL) is used in log messages. This issue is
expected to be prevented by HWRM_ERR_CODE_PF_UNAVAILABLE error code. But
this error code is returned by recent firmware. So some firmware may not
return it. This may lead to NULL pointer dereference.
Adjust this issue by adding token pointer check.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Classification

CVE ID: CVE-2024-40919

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 5.08% (scored less or equal to compared to others)

EPSS Date: 2025-02-04 (when was this score calculated)

References

https://git.kernel.org/stable/c/cde177fa235cd36f981012504a6376315bac03c9
https://git.kernel.org/stable/c/ca6660c956242623b4cfe9be2a1abc67907c44bf
https://git.kernel.org/stable/c/8b65eaeae88d4e9f999e806e196dd887b90bfed9
https://git.kernel.org/stable/c/a9b9741854a9fe9df948af49ca5514e0ed0429df

Timeline