Lucene search

K
cvelistLinuxCVELIST:CVE-2024-35972
HistoryMay 20, 2024 - 9:41 a.m.

CVE-2024-35972 bnxt_en: Fix possible memory leak in bnxt_rdma_aux_device_init()

2024-05-2009:41:59
Linux
www.cve.org
6
linux kernel
vulnerability resolved
memory leak fix
bnxt_en
bnxt_rdma_aux_device_init
allocation fix

AI Score

5.3

Confidence

High

EPSS

0

Percentile

5.1%

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

bnxt_en: Fix possible memory leak in bnxt_rdma_aux_device_init()

If ulp = kzalloc() fails, the allocated edev will leak because it is
not properly assigned and the cleanup path will not be able to free it.
Fix it by assigning it properly immediately after allocation.

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/broadcom/bnxt/bnxt_ulp.c"
    ],
    "versions": [
      {
        "version": "303432211324",
        "lessThan": "c60ed825530b",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "303432211324",
        "lessThan": "10a9d6a7513f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "303432211324",
        "lessThan": "7ac10c7d728d",
        "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/broadcom/bnxt/bnxt_ulp.c"
    ],
    "versions": [
      {
        "version": "6.3",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.3",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.28",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.7",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

5.3

Confidence

High

EPSS

0

Percentile

5.1%