CVE-2022-48779

Source
https://cve.org/CVERecord?id=CVE-2022-48779
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48779.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-48779
Downstream
Published
2024-07-16T11:13:17Z
Modified
2026-08-12T03:51:26Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
net: mscc: ocelot: fix use-after-free in ocelot_vlan_del()
Details

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().

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48779.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d4004422f6f9fa8e55c04482008c1c9f9edd2d19
Fixed
c98bed60cdd7f22237ae256cc9c1c3087206b8a2
Fixed
ef57640575406f57f5b3393cf57f457b0ace837e

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48779.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.16.11

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48779.json"