Skip to content
Heist/ feed
Back to feed
HighFix available

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

Type: advisorySources: OSV

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

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.18, 6.2.5
CVEs
CVE-2023-53398
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 19:01 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 18 Sept 2025, 13:33 UTC

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

osv:CVE-2023-53398

Kernel

Fixed versions: 6.1.18, 6.2.5

Complete source record
{
  "id": "9cd5511b40b681df1461afc89b8ac8c9aea3c63face6ef8f29fd66ae8bc9597e",
  "url": "https://osv.dev/vulnerability/CVE-2023-53398",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "mlx5: fix possible ptp queue fifo use-after-free",
    "summary": "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).",
    "evidence": "osv:CVE-2023-53398",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.18",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.2.5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-53398",
      "aliases": [
        "CVE-2023-53398"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "58a518948f60153e8f6cb8361d2712aa3a1af94a"
                },
                {
                  "fixed": "52e6e7a0bc04c85012a9251c7cf2d444a77eb966"
                },
                {
                  "fixed": "6afdedc4e66e3846ce497744f01b95c34bf39d21"
                },
                {
                  "fixed": "3a50cf1e8e5157b82268eee7e330dbe5736a0948"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53398.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.0.0"
                },
                {
                  "fixed": "6.1.18"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.2.5"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53398.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.735510647Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/3a50cf1e8e5157b82268eee7e330dbe5736a0948",
        "https://git.kernel.org/stable/c/52e6e7a0bc04c85012a9251c7cf2d444a77eb966",
        "https://git.kernel.org/stable/c/6afdedc4e66e3846ce497744f01b95c34bf39d21",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53398.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-53398",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53398.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-53398",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 505951,
  "published_at": "2025-09-18T13:33:38.842+00:00"
}