Skip to content
Heist/ feed
Back to feed
HighFix available

mlx5: fix skb leak while fifo resync and push

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: mlx5: fix skb leak while fifo resync and push During ptp resync operation SKBs were poped from the fifo but were never freed neither by napi_consume nor by dev_kfree_skb_any. Add call to napi_consume_skb to properly free SKBs. Another leak was happening because mlx5e_skb_fifo_has_room() had an error in the check. Comparing free running counters works well unless C promotes the types to something wider than the counter. In this case counters are u16 but the result of the substraction is promouted to int and it causes wrong result (negative value) of the check when producer have already overlapped but consumer haven't yet. Explicit cast to u16 fixes the issue.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.18, 6.2.5
CVEs
CVE-2023-54238
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 17:54 UTC · Revision 1

Source evidence

mlx5: fix skb leak while fifo resync and push

core-osv · Original source

Published 30 Dec 2025, 12:11 UTC

In the Linux kernel, the following vulnerability has been resolved: mlx5: fix skb leak while fifo resync and push During ptp resync operation SKBs were poped from the fifo but were never freed neither by napi_consume nor by dev_kfree_skb_any. Add call to napi_consume_skb to properly free SKBs. Another leak was happening because mlx5e_skb_fifo_has_room() had an error in the check. Comparing free running counters works well unless C promotes the types to something wider than the counter. In this case counters are u16 but the result of the substraction is promouted to int and it causes wrong result (negative value) of the check when producer have already overlapped but consumer haven't yet. Explicit cast to u16 fixes the issue.

osv:CVE-2023-54238

Kernel

Fixed versions: 6.1.18, 6.2.5

Complete source record
{
  "id": "c91743088fd91c901d2dcc697c4afe07997f59caf98fa98f06e35eac3e033ca2",
  "url": "https://osv.dev/vulnerability/CVE-2023-54238",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "mlx5: fix skb leak while fifo resync and push",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: mlx5: fix skb leak while fifo resync and push During ptp resync operation SKBs were poped from the fifo but were never freed neither by napi_consume nor by dev_kfree_skb_any. Add call to napi_consume_skb to properly free SKBs. Another leak was happening because mlx5e_skb_fifo_has_room() had an error in the check. Comparing free running counters works well unless C promotes the types to something wider than the counter. In this case counters are u16 but the result of the substraction is promouted to int and it causes wrong result (negative value) of the check when producer have already overlapped but consumer haven't yet. Explicit cast to u16 fixes the issue.",
    "evidence": "osv:CVE-2023-54238",
    "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-54238",
      "aliases": [
        "CVE-2023-54238"
      ],
      "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": "234cffda95e1049f58e8ec136ef105c633f0ed19"
                },
                {
                  "fixed": "68504c66d08c70fb92799722e25a932d311d74fd"
                },
                {
                  "fixed": "e435941b1da1a0be4ff8a7ae425774c76a5ac514"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54238.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-54238.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:47.860735209Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/234cffda95e1049f58e8ec136ef105c633f0ed19",
        "https://git.kernel.org/stable/c/68504c66d08c70fb92799722e25a932d311d74fd",
        "https://git.kernel.org/stable/c/e435941b1da1a0be4ff8a7ae425774c76a5ac514",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54238.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-54238",
        "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/54xxx/CVE-2023-54238.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-54238",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 515830,
  "published_at": "2025-12-30T12:11:27.702+00:00"
}