Skip to content
Heist/ feed
High

mlx5: fix skb leak while fifo resync and push

Type: advisorySource: Official CVE List1 source record

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.

Announced Group revision 1
Original source ↗

CVE-2023-54238

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2023-54238

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "58a518948f60153e8f6cb8361d2712aa3a1af94a",
        "lessThan": "234cffda95e1049f58e8ec136ef105c633f0ed19",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "58a518948f60153e8f6cb8361d2712aa3a1af94a",
        "lessThan": "68504c66d08c70fb92799722e25a932d311d74fd",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "58a518948f60153e8f6cb8361d2712aa3a1af94a",
        "lessThan": "e435941b1da1a0be4ff8a7ae425774c76a5ac514",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c",
      "drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.0"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.0",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.1.18",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.2.5",
        "versionType": "semver",
        "lessThanOrEqual": "6.2.*"
      },
      {
        "status": "unaffected",
        "version": "6.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c",
      "drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2023-54238

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#30368 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement