{"id":"CVE-2023-53398","aliases":["CVE-2023-53398"],"related":[],"kind":"vulnerability","state":"published","title":"mlx5: fix possible ptp queue fifo use-after-free","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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).","source":"cvelist"}],"published":"2025-09-18T13:33:38.842Z","modified":"2026-08-05T09:13:53.982Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"58a518948f60153e8f6cb8361d2712aa3a1af94a","fixed":"52e6e7a0bc04c85012a9251c7cf2d444a77eb966","status":"affected"},{"type":"git","introduced":"58a518948f60153e8f6cb8361d2712aa3a1af94a","fixed":"6afdedc4e66e3846ce497744f01b95c34bf39d21","status":"affected"},{"type":"git","introduced":"58a518948f60153e8f6cb8361d2712aa3a1af94a","fixed":"3a50cf1e8e5157b82268eee7e330dbe5736a0948","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"6.1.18","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.5","lastAffected":"6.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.0","fixed":"6.1.18"},{"status":"affected","introduced":"6.2","fixed":"6.2.5"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/52e6e7a0bc04c85012a9251c7cf2d444a77eb966","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6afdedc4e66e3846ce497744f01b95c34bf39d21","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3a50cf1e8e5157b82268eee7e330dbe5736a0948","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-01-14T19:00:48.835Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53398","url":"https://www.cve.org/CVERecord?id=CVE-2023-53398","licence":"CVE Terms of Use","modified":"2026-08-05T09:13:53.982Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53398","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53398","licence":"Public domain","modified":"2026-06-17T06:45:13.003Z"}],"updatedAt":"2026-11-25T22:58:34.867Z","epss":{"score":0.00156,"percentile":0.05049,"date":"2026-12-01T12:00:22.000Z"}}