Menu

Star on GitHub · 3.2k

CVE-2022-49812

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: bridge: switchdev: Fix memory leaks when changing VLAN protocol The bridge driver can offload VLANs to the underlying hardware…

Published May 1, 2025CWE-401EPSS 0.21%

Overview

CVE-2022-49812 is a medium-severity vulnerability. It was published on May 1, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

bridge: switchdev: Fix memory leaks when changing VLAN protocol

The bridge driver can offload VLANs to the underlying hardware either

via switchdev or the 8021q driver. When the former is used, the VLAN is

marked in the bridge driver with the 'BR_VLFLAG_ADDED_BY_SWITCHDEV'

private flag.

To avoid the memory leaks mentioned in the cited commit, the bridge

driver will try to delete a VLAN via the 8021q driver if the VLAN is not

marked with the previously mentioned flag.

When the VLAN protocol of the bridge changes, switchdev drivers are

notified via the 'SWITCHDEV_ATTR_ID_BRIDGE_VLAN_PROTOCOL' attribute, but

the 8021q driver is also called to add the existing VLANs with the new

protocol and delete them with the old protocol.

In case the VLANs were offloaded via switchdev, the above behavior is

both redundant and buggy. Redundant because the VLANs are already

programmed in hardware and drivers that support VLAN protoc

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2022-49812?

CVE-2022-49812 is a medium-severity vulnerability. It was published on May 1, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2022-49812?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-49812?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-49812?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-49812 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2022

View all