# CVE-2023-53398: mlx5: fix possible ptp queue fifo use-after-free

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-09-18T13:33:38.842Z
- Modified: 2026-08-05T09:13:53.982Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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).

(As written by CVE List.)

## Affected

- Linux Linux: from 58a518948f60153e8f6cb8361d2712aa3a1af94a before 52e6e7a0bc04c85012a9251c7cf2d444a77eb966; from 58a518948f60153e8f6cb8361d2712aa3a1af94a before 6afdedc4e66e3846ce497744f01b95c34bf39d21; from 58a518948f60153e8f6cb8361d2712aa3a1af94a before 3a50cf1e8e5157b82268eee7e330dbe5736a0948; 6.0 (not affected: before 6.0; from 6.1.18 up to 6.1.*; from 6.2.5 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 6.0 before 6.1.18; from 6.2 before 6.2.5

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/52e6e7a0bc04c85012a9251c7cf2d444a77eb966> (patch)
- <https://git.kernel.org/stable/c/6afdedc4e66e3846ce497744f01b95c34bf39d21> (patch)
- <https://git.kernel.org/stable/c/3a50cf1e8e5157b82268eee7e330dbe5736a0948> (patch)

## Sources

- CVE List: [CVE-2023-53398](https://www.cve.org/CVERecord?id=CVE-2023-53398), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-53398](https://nvd.nist.gov/vuln/detail/CVE-2023-53398), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53398 · Whole record: https://cve.day/CVE-2023-53398.json · Rebuilt by cve.day 2026-11-25T22:58:34.867Z
