CVE Database›Document archive›CVE-2025-71112

CVE-2025-71112

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

Loading…

Severity

Moderate

Red Hat Product Security

4.4

CVSS 3.1

Review impact separately from score.

Published · January 14, 2026

Updated · July 30, 2026

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.

Statement

The vulnerability is caused by missing validation of VLAN IDs received from a VF, allowing out-of-range values to be used as bitmap indexes and triggering out-of-bounds memory access in the PF driver. This enables a guest-to-host attack scenario in SR-IOV (Single Root I/O Virtualization) environments, where a malicious VF (Virtual Function, i.e. a virtualized PCI device controlled by a guest VM) can crash the host kernel and potentially corrupt memory in the PF (Physical Function, i.e. the real hardware device driver running in the host).

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

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

CWE-787 · Out-of-bounds Write