What’s Vulnerable › Vulnerabilities

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 6.1.95, 6.6.35, 6.9.6. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-40919 or the next vulnerability affects your stack