What’s Vulnerable › Vulnerabilities
CVE-2022-48779: net: mscc: ocelot: fix use-after-free in ocelot_vlan_del()
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-07-16 · updated 2026-08-04
- Weakness: CWE-416
Description
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 products
- Linux kernel: from 5.16 before 5.16.11 — fixed in 5.16.11
How to fix
Upgrade to a fixed version: Linux kernel 5.16.11. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/c98bed60cdd7f22237ae256cc9c1c3087206b8a2
- https://git.kernel.org/stable/c/ef57640575406f57f5b3393cf57f457b0ace837e
- https://git.kernel.org/stable/c/c98bed60cdd7f22237ae256cc9c1c3087206b8a2
- https://git.kernel.org/stable/c/ef57640575406f57f5b3393cf57f457b0ace837e
Get alerted when CVE-2022-48779 or the next vulnerability affects your stack