Linux Kernel VLAN TCI Handling Vulnerability in af_packet Component

Vulnerability

A vulnerability in the Linux kernel's af_packet component has been addressed, which involved improper handling of VLAN TCI (Traffic Class Identifier) in the 'vlan_get_tci()' function. The original issue, identified by syzbot, was related to the 'MSG_PEEK' flag, which was overlooked in a previous fix. This oversight could lead to a kernel crash. The vulnerability arose because the 'vlan_get_tci()' function modified the socket buffer (skb) in a way that was not thread-safe, allowing potential crashes when accessed by multiple CPUs simultaneously. The issue was resolved by reworking the function to avoid altering the skb, thereby ensuring safe concurrent usage.

Impact

Exploitation of this vulnerability could lead to a kernel crash, causing a denial of service.

Reproduction

The vulnerability can be reproduced by sending a packet with the 'MSG_PEEK' flag set, which will trigger the 'vlan_get_tci()' function. The function's improper handling of the socket buffer will cause a kernel panic, resulting in a crash.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.7
remediation
0.0
relevance
0.0
threat
4.8
urgency
2.9
incentive
1.7

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