CVE-2023-54238: mlx5: fix skb leak while fifo resync and push
In the Linux kernel, the following vulnerability has been resolved:
mlx5: fix skb leak while fifo resync and push
During ptp resync operation SKBs were poped from the fifo but were never freed neither by napiconsume nor by devkfreeskbany. Add call to napiconsumeskb to properly free SKBs.
Another leak was happening because mlx5eskbfifohasroom() had an error in the check. Comparing free running counters works well unless C promotes the types to something wider than the counter. In this case counters are u16 but the result of the substraction is promouted to int and it causes wrong result (negative value) of the check when producer have already overlapped but consumer haven't yet. Explicit cast to u16 fixes the issue.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2023-54238?
CVE-2023-54238 is classified as a low severity vulnerability.
How do I fix CVE-2023-54238?
To fix CVE-2023-54238, update your Linux kernel to the latest version where this vulnerability has been patched.
What impact does CVE-2023-54238 have on system performance?
CVE-2023-54238 can lead to memory leaks, potentially degrading system performance over time.
Is my system affected by CVE-2023-54238?
Systems running the affected versions of the Linux kernel with mlx5 drivers are susceptible to CVE-2023-54238.
What is the nature of the vulnerability in CVE-2023-54238?
CVE-2023-54238 involves a memory leak issue during the ptp resync operation in the Linux kernel.