Bug 2298115 (CVE-2022-48779) - CVE-2022-48779 kernel: net: mscc: ocelot: fix use-after-free in ocelot_vlan_del()
Summary: CVE-2022-48779 kernel: net: mscc: ocelot: fix use-after-free in ocelot_vlan_d...
Keywords:
Status: NEW
Alias: CVE-2022-48779
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-16 12:23 UTC by OSIDB Bzimport
Modified: 2024-09-24 13:57 UTC (History)
4 users (show)

Fixed In Version: kernel 5.16.11, kernel 5.17
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-07-16 12:23:18 UTC
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().


Note You need to log in before you can comment on or make changes to this bug.