Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48779
HistoryJul 16, 2024 - 11:13 a.m.

CVE-2022-48779 net: mscc: ocelot: fix use-after-free in ocelot_vlan_del()

2024-07-1611:13:17
Linux
www.cve.org
6
vulnerability
linux kernel
fix
use-after-free
ocelot
vlan
memory

EPSS

0

Percentile

9.3%

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

net: mscc: ocelot: fix use-after-free in ocelot_vlan_del()

ocelot_vlan_member_del() will free the struct ocelot_bridge_vlan, so if
this is the same as the port’s pvid_vlan which we access afterwards,
what we’re accessing is freed memory.

Fix the bug by determining whether to clear ocelot_port->pvid_vlan prior
to calling ocelot_vlan_member_del().

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/mscc/ocelot.c"
    ],
    "versions": [
      {
        "version": "d4004422f6f9",
        "lessThan": "c98bed60cdd7",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "d4004422f6f9",
        "lessThan": "ef5764057540",
        "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/mscc/ocelot.c"
    ],
    "versions": [
      {
        "version": "5.16",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.16",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16.11",
        "lessThanOrEqual": "5.16.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.17",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

9.3%