{"id":"CVE-2023-53398","summary":"mlx5: fix possible ptp queue fifo use-after-free","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmlx5: fix possible ptp queue fifo use-after-free\n\nFifo indexes are not checked during pop operations and it leads to\npotential use-after-free when poping from empty queue. Such case was\npossible during re-sync action. WARN_ON_ONCE covers future cases.\n\nThere were out-of-order cqe spotted which lead to drain of the queue and\nuse-after-free because of lack of fifo pointers check. Special check and\ncounter are added to avoid resync operation if SKB could not exist in the\nfifo because of OOO cqe (skb_id must be between consumer and producer\nindex).","modified":"2026-03-20T12:33:08.240690Z","published":"2025-09-18T13:33:38.842Z","related":["SUSE-SU-2025:03615-1","SUSE-SU-2025:3761-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53398.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3a50cf1e8e5157b82268eee7e330dbe5736a0948"},{"type":"WEB","url":"https://git.kernel.org/stable/c/52e6e7a0bc04c85012a9251c7cf2d444a77eb966"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6afdedc4e66e3846ce497744f01b95c34bf39d21"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53398.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53398"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"58a518948f60153e8f6cb8361d2712aa3a1af94a"},{"fixed":"52e6e7a0bc04c85012a9251c7cf2d444a77eb966"},{"fixed":"6afdedc4e66e3846ce497744f01b95c34bf39d21"},{"fixed":"3a50cf1e8e5157b82268eee7e330dbe5736a0948"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53398.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}