CVE-2023-53398

published 18 Sep 2025 · updated 5 Aug 2026

mlx5: fix possible ptp queue fifo use-after-free

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 3a50cf1e8e5157b82268eee7e330dbe5736a0948, Kernel 52e6e7a0bc04c85012a9251c7cf2d444a77eb966 and Kernel 6afdedc4e66e3846ce497744f01b95c34bf39d21.

In the Linux kernel, the following vulnerability has been resolved: mlx5: fix possible ptp queue fifo use-after-free Fifo indexes are not checked during pop operations and it leads to potential use-after-free when poping from empty queue. Such case was possible during re-sync action. WARN_ON_ONCE covers future cases. There were out-of-order cqe spotted which lead to drain of the queue and use-after-free because of lack of fifo pointers check. Special check and counter are added to avoid resync operation if SKB could not exist in the fifo because of OOO cqe (skb_id must be between consumer and producer index).

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.0, >=58a518948f60153e8f6cb8361d2712aa3a1af94a <3a50cf1e8e5157b82268eee7e330dbe5736a0948, >=58a518948f60153e8f6cb8361d2712aa3a1af94a <52e6e7a0bc04c85012a9251c7cf2d444a77eb966, >=58a518948f60153e8f6cb8361d2712aa3a1af94a <6afdedc4e66e3846ce497744f01b95c34bf39d213a50cf1e8e5157b82268eee7e330dbe5736a0948, 52e6e7a0bc04c85012a9251c7cf2d444a77eb966, 6afdedc4e66e3846ce497744f01b95c34bf39d21

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-53398 severity on Zeptric[![CVE-2023-53398](https://zeptric.io/badge/cve/CVE-2023-53398.svg)](https://zeptric.io/cve/CVE-2023-53398)