net: mscc: ocelot: fix use-after-free in ocelot_vlan_del()
Published Jul 16, 2024
7.8
HIGHCVSS 3.1
EPSS 0.22%
Description
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
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 5.16StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<5.16
- Version 5.16.11StatusunaffectedConstraints<=5.16.*
- Version 5.17StatusunaffectedConstraints<=*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
- ≥ 5.16 · < 5.16.11
No data.
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Not affected
Red Hat Enterprise Linux 8
kernel-rt
Not affected
Red Hat Enterprise Linux 9
kernel
Not affected
Red Hat Enterprise Linux 9
kernel-rt
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Red Hat Enterprise Linux is not vulnerable to this CVE, as it does not affect the versions or configurations of the Linux kernel used in its distributions.
Red Hat mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
References (8)
- https://access.redhat.com/security/cve/CVE-2022-48779 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2298115 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-53658 Advisory
- https://git.kernel.org/stable/c/c98bed60cdd7f22237ae256cc9c1c3087206b8a2 Mailing ListPatch
- https://git.kernel.org/stable/c/ef57640575406f57f5b3393cf57f457b0ace837e Mailing ListPatch
- https://lore.kernel.org/linux-cve-announce/2024071632-CVE-2022-48779-94bd@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2022-48779
- https://www.cve.org/CVERecord?id=CVE-2022-48779
Change history (0)
No recorded changes yet.