Lucene search

K
cvelistLinuxCVELIST:CVE-2024-43864
HistoryAug 20, 2024 - 11:45 p.m.

CVE-2024-43864 net/mlx5e: Fix CT entry update leaks of modify header context

2024-08-2023:45:28
Linux
www.cve.org
3
linux kernel
net/mlx5e
vulnerability
ct entry
modify header context

EPSS

0

Percentile

16.4%

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5e: Fix CT entry update leaks of modify header context

The cited commit allocates a new modify header to replace the old
one when updating CT entry. But if failed to allocate a new one, eg.
exceed the max number firmware can support, modify header will be
an error pointer that will trigger a panic when deallocating it. And
the old modify header point is copied to old attr. When the old
attr is freed, the old modify header is lost.

Fix it by restoring the old attr to attr when failed to allocate a
new modify header context. So when the CT entry is freed, the right
modify header context will be freed. And the panic of accessing
error pointer is also fixed.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c"
    ],
    "versions": [
      {
        "version": "94ceffb48eac",
        "lessThan": "daab2cc17b6b",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "94ceffb48eac",
        "lessThan": "89064d09c56b",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "94ceffb48eac",
        "lessThan": "025f2b85a5e5",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c"
    ],
    "versions": [
      {
        "version": "6.3",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.3",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.45",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10.4",
        "lessThanOrEqual": "6.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.11",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

16.4%