{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-48779","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2024-06-20T11:09:39.062Z","datePublished":"2024-07-16T11:13:17.173Z","dateUpdated":"2026-08-05T08:52:13.141Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T08:52:13.141Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: mscc: ocelot: fix use-after-free in ocelot_vlan_del()\n\nocelot_vlan_member_del() will free the struct ocelot_bridge_vlan, so if\nthis is the same as the port's pvid_vlan which we access afterwards,\nwhat we're accessing is freed memory.\n\nFix the bug by determining whether to clear ocelot_port->pvid_vlan prior\nto calling ocelot_vlan_member_del()."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The UAF is reached only through local VLAN configuration (bridge switchdev PORT_VLAN delete or ndo_vlan_rx_kill_vid → ocelot_vlan_del/felix_vlan_del), not by processing remote or adjacent-link packets.\nAC:L - An attacker who can add then delete a PVID VLAN as the last member deterministically frees struct ocelot_bridge_vlan and then dereferences ocelot_port->pvid_vlan; no attacker-uncontrollable race or external condition is required.\nPR:L - VLAN delete is gated by CAP_NET_ADMIN via netlink_ns_capable in the device’s user_ns; Felix/ocelot ports are not NETIF_F_NETNS_LOCAL, so a delegated port in a user-namespace-owned netns yields NET_ADMIN without init-namespace root (same model as CVE-2022-49141/CVE-2026-22982).\nUI:N - The attacker performs the bridge/8021q VLAN delete themselves; no separate victim action is required.\nS:U - This is a standard in-kernel heap use-after-free within the host OS authority and does not cross a VM, IOMMU, or other security boundary.\nC:H - ocelot_vlan_member_del() frees the ocelot_bridge_vlan while pvid_vlan still points at it, so the subsequent vid read (and later ocelot_port_set_pvid uses of a dangling pointer) is a classic UAF enabling arbitrary kernel read via heap reuse.\nI:H - The dangling pvid_vlan pointer can persist when freed memory is reused with a non-matching vid, and later reads of attacker-controlled object contents influence kernel/hardware VLAN state, yielding standard UAF write/control-flow primitives under heap spraying.\nA:H - Use-after-free of the VLAN object can oops/panic the kernel even without a full exploit, so availability impact is High per UAF guidance."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mscc/ocelot.c"],"versions":[{"version":"d4004422f6f9fa8e55c04482008c1c9f9edd2d19","lessThan":"c98bed60cdd7f22237ae256cc9c1c3087206b8a2","status":"affected","versionType":"git"},{"version":"d4004422f6f9fa8e55c04482008c1c9f9edd2d19","lessThan":"ef57640575406f57f5b3393cf57f457b0ace837e","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mscc/ocelot.c"],"versions":[{"version":"5.16","status":"affected"},{"version":"0","lessThan":"5.16","status":"unaffected","versionType":"semver"},{"version":"5.16.11","lessThanOrEqual":"5.16.*","status":"unaffected","versionType":"semver"},{"version":"5.17","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"5.16.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"5.17"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/c98bed60cdd7f22237ae256cc9c1c3087206b8a2"},{"url":"https://git.kernel.org/stable/c/ef57640575406f57f5b3393cf57f457b0ace837e"}],"title":"net: mscc: ocelot: fix use-after-free in ocelot_vlan_del()","x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-03T15:25:01.867Z"},"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/c98bed60cdd7f22237ae256cc9c1c3087206b8a2","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/ef57640575406f57f5b3393cf57f457b0ace837e","tags":["x_transferred"]}]},{"metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-48779","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T17:00:24.152483Z"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-09-11T17:34:17.252Z"}}]}}