All reports
Medium

kernel: net: hns3: add VLAN id validation before using

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-71112

Probability of exploitation in the next 30 days: 0.16%

FIRST EPSS · 2026-11-22

Description

In the Linux kernel, the following vulnerability has been resolved: net: hns3: add VLAN id validation before using Currently, the VLAN id may be used without validation when receive a VLAN configuration mailbox from VF. The length of vlan_del_fail_bmap is BITS_TO_LONGS(VLAN_N_VID). It may cause out-of-bounds memory access once the VLAN id is bigger than or equal to VLAN_N_VID. Therefore, VLAN id needs to be checked to ensure it is within the range of VLAN_N_VID.

A flaw was found in the Linux kernel's hns3 network driver. When handling Virtual Local Area Network (VLAN) configuration requests received from a guest Virtual Function (VF), the driver fails to properly validate the VLAN identifier before using it as a bitmap index. A malicious guest user can exploit this flaw by sending an out-of-range VLAN ID, triggering out-of-bounds memory access on the host that can result in a Denial of Service (DoS) via a kernel crash or potential host memory corruption.