Lucene search

K
vulnrichmentLinuxVULNRICHMENT: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
github.com
3
linux kernel
vulnerability resolved
use after free
sparx5
sparx5_del_mact_entry
static analysis
code
mac table
fix
devm_kfree
vid
delete entry
hw

AI Score

7

Confidence

Low

EPSS

0

Percentile

15.5%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "b37a1bae742f",
        "lessThan": "e46274df1100",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b37a1bae742f",
        "lessThan": "0de693d68b0a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b37a1bae742f",
        "lessThan": "e83bebb718fd",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b37a1bae742f",
        "lessThan": "71809805b950",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b37a1bae742f",
        "lessThan": "89d72d4125e9",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/microchip/sparx5/sparx5_mactable.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.14"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.14",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "5.15.152",
        "versionType": "custom",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.82",
        "versionType": "custom",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.22",
        "versionType": "custom",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.7.10",
        "versionType": "custom",
        "lessThanOrEqual": "6.7.*"
      },
      {
        "status": "unaffected",
        "version": "6.8",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/microchip/sparx5/sparx5_mactable.c"
    ],
    "defaultStatus": "affected"
  }
]

AI Score

7

Confidence

Low

EPSS

0

Percentile

15.5%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial