CVE-2022-48779

published 16 Jul 2024 · updated 5 Aug 2026

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

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel c98bed60cdd7f22237ae256cc9c1c3087206b8a2 and Kernel ef57640575406f57f5b3393cf57f457b0ace837e.

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

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.16, >=d4004422f6f9fa8e55c04482008c1c9f9edd2d19 <c98bed60cdd7f22237ae256cc9c1c3087206b8a2, >=d4004422f6f9fa8e55c04482008c1c9f9edd2d19 <ef57640575406f57f5b3393cf57f457b0ace837ec98bed60cdd7f22237ae256cc9c1c3087206b8a2, ef57640575406f57f5b3393cf57f457b0ace837e

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-48779 severity on Zeptric[![CVE-2022-48779](https://zeptric.io/badge/cve/CVE-2022-48779.svg)](https://zeptric.io/cve/CVE-2022-48779)