Lucene search

K
cvelistLinuxCVELIST:CVE-2024-26856
HistoryApr 17, 2024 - 10:17 a.m.

CVE-2024-26856 net: sparx5: Fix use after free inside sparx5_del_mact_entry

2024-04-1710:17:18
Linux
www.cve.org
cve-2024-26856
sparx5
use after free
linux kernel

7 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

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

net: sparx5: Fix use after free inside sparx5_del_mact_entry

Based on the static analyzis of the code it looks like when an entry
from the MAC table was removed, the entry was still used after being
freed. More precise the vid of the mac_entry was used after calling
devm_kfree on the mac_entry.
The fix consists in first using the vid of the mac_entry to delete the
entry from the HW and after that to free it.

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/microchip/sparx5/sparx5_mactable.c"
    ],
    "versions": [
      {
        "version": "b37a1bae742f",
        "lessThan": "e46274df1100",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b37a1bae742f",
        "lessThan": "0de693d68b0a",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b37a1bae742f",
        "lessThan": "e83bebb718fd",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b37a1bae742f",
        "lessThan": "71809805b950",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b37a1bae742f",
        "lessThan": "89d72d4125e9",
        "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/microchip/sparx5/sparx5_mactable.c"
    ],
    "versions": [
      {
        "version": "5.14",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.14",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.152",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.82",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.22",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7.10",
        "lessThanOrEqual": "6.7.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

7 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%