CVE-2022-48779

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

State
Published
Severity
7.8 High
Published
Jul 16, 2024
Updated
Aug 5, 2026
Reserved
Jun 20, 2024

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • d4004422f6f9fa8e55c04482008c1c9f9edd2d19 to before c98bed60cdd7f22237ae256cc9c1c3087206b8a2Affected
  • d4004422f6f9fa8e55c04482008c1c9f9edd2d19 to before ef57640575406f57f5b3393cf57f457b0ace837eAffected
LinuxLinux
  • 5.16Affected
  • before 5.16Not affected
  • 5.16.11 through 5.16.*Not affected
  • 5.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.