Linux Kernel VLAN ID Validation Vulnerability in net: hns3 Component

Vulnerability

A vulnerability exists in the Linux kernel's handling of VLAN IDs within the net: hns3 component. The issue arises because VLAN IDs can be used without proper validation when a VLAN configuration mailbox is received from a virtual function (VF). This lack of validation can lead to out-of-bounds memory access, particularly when the VLAN ID is greater than or equal to the maximum number of VLAN IDs (VLAN_N_VID). To address this, the VLAN ID must be checked to ensure it falls within the valid range before use.

Impact

Exploitation of this vulnerability can lead to out-of-bounds memory access, potentially causing memory corruption or allowing for arbitrary code execution.

Reproduction

The vulnerability can be reproduced by sending a VLAN configuration mailbox from a virtual function to a device using the net: hns3 driver, without a valid VLAN ID. This will trigger the out-of-bounds memory access issue.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for downloading the patched version are available on the official Linux kernel website.

Added: Jan 14, 2026, 3:50 PM
Updated: Jan 14, 2026, 4:59 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
5.0
exploitability
3.9
remediation
7.7
relevance
2.1
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.