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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-07-16T11:13:17.173Z
- Modified: 2026-08-05T08:52:13.141Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from d4004422f6f9fa8e55c04482008c1c9f9edd2d19 before c98bed60cdd7f22237ae256cc9c1c3087206b8a2; from d4004422f6f9fa8e55c04482008c1c9f9edd2d19 before ef57640575406f57f5b3393cf57f457b0ace837e; 5.16 (not affected: before 5.16; from 5.16.11 up to 5.16.*; from 5.17 up to *)
- linux linux_kernel: from 5.16 before 5.16.11

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/c98bed60cdd7f22237ae256cc9c1c3087206b8a2> (mailing-list, patch)
- <https://git.kernel.org/stable/c/ef57640575406f57f5b3393cf57f457b0ace837e> (mailing-list, patch)

## Sources

- CVE List: [CVE-2022-48779](https://www.cve.org/CVERecord?id=CVE-2022-48779), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-48779](https://nvd.nist.gov/vuln/detail/CVE-2022-48779), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-48779 · Whole record: https://cve.day/CVE-2022-48779.json · Rebuilt by cve.day 2026-11-25T22:58:19.876Z
