VDB

CVE-2025-21920

CVE-2025-21920 PUBLISHED CVSS 7.1 HIGH

vlan: enforce underlying device type

Reported by linux · Published April 1, 2025

In the Linux kernel, the following vulnerability has been resolved: vlan: enforce underlying device type Currently, VLAN devices can be created on top of non-ethernet devices. Besides the fact that it doesn't make much sense, this also causes a bug which leaks the address of a kernel function to usermode. When creating a VLAN device, we initialize GARP (garp_init_applicant) and MRP (mrp_init_applicant) for the underlying device. As part of the initialization process, we add the multicast address of each applicant to the underlying device, by calling dev_mc_add. __dev_mc_add uses dev->addr_len to determine the length of the new multicast address. This causes an out-of-bounds read if dev->addr_len is greater than 6, since the multicast addresses provided by GARP and MRP are only 6 bytes long. This behaviour can be reproduced using the following commands: ip tunnel add gretest mode ip6gre local ::1 remote ::2 dev lo ip l set up dev gretest ip link add link gretest name vlantest type vlan id 100 Then, the following command will display the address of garp_pdu_rcv: ip maddr show | grep 01:80:c2:00:00:21 Fix the bug by enforcing the type of the underlying device during VLAN device initialization.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-livepatch-4.14.355-277.643Amazon Linux1.0-0.amzn2
perfAmazon Linux6.1.131-143.221.amzn2023, 4.14.355-277.643.amzn2
bpftoolAmazon Linux6.1.131-143.221.amzn2023
kernel-libbpf-staticAmazon Linux6.1.131-143.221.amzn2023
kernel-headersAmazon Linux6.1.131-143.221.amzn2023, 4.14.355-277.643.amzn2
kernel-libbpfAmazon Linux6.1.131-143.221.amzn2023
kernel-develAmazon Linux6.1.131-143.221.amzn2023
kernel-libbpf-develAmazon Linux6.1.131-143.221.amzn2023
kernel-toolsAmazon Linux4.14.355-277.643.amzn2
kernelAmazon Linux6.1.131-143.221.amzn2023, 4.14.355-277.643.amzn2
kernel-livepatch-6.1.131-143.221Amazon Linux1.0-0.amzn2023
python3-perfAmazon Linux6.1.131-143.221.amzn2023

2 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Affected products

VendorProductVersions
LinuxLinux22bedad3ce112d5ca1eaf043d4990fa2ed698c87, 22bedad3ce112d5ca1eaf043d4990fa2ed698c87, 22bedad3ce112d5ca1eaf043d4990fa2ed698c87
LinuxLinux2.6.35, 0, 5.4.291
amazon:2kernel-livepatch-4.14.355-277.6430
amazon:2023perf0
amazon:2023bpftool0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-headers0
amazon:2023kernel-libbpf0
amazon:2023kernel-devel0
amazon:2023kernel-libbpf-devel0
amazon:2kernel-headers0
amazon:2kernel-tools0
amazon:2023kernel0
amazon:2perf0
linuxlinux_kernel2.6.35, 2.6.35, 2.6.35
amazon:2023kernel-livepatch-6.1.131-143.2210
amazon:2kernel0
amazon:2023python3-perf0
LinuxLinux22bedad3ce112d5ca1eaf043d4990fa2ed698c87, 2.6.35, 5.10.235
amazon:2023kernel-modules-extra0

…and 6 more

Timeline

  • Apr 1, 2025 CVE Published
  • Apr 2, 2025 EPSS Score (30 in total, the first dated here)
  • Apr 2, 2025 Coalition ESS Score (20 in total, the first dated here)
  • Oct 12, 2025 PoC Published (5 in total, the first dated here)
  • Dec 22, 2025 Security Advisory (264 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (238 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-21920
vulnetix vdb fixes CVE-2025-21920

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-21920/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›