5.5medium
net: sched: act_csum: validate nested VLAN headers
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net: sched: act_csum: validate nested VLAN headers tcf_csum_act() walks nested VLAN headers directly from skb->data when an skb still carries in-payload VLAN tags. The current code reads vlan->h_vlan_encapsulated_proto and then pulls VLAN_HLEN bytes without first ensuring that the full VLAN header is present in the linear area. If only part of an inner VLAN header is linearized, accessing h_vlan_encapsulated_proto reads past the linear area, and the following skb_pull(VLAN_HLEN) may violate skb invariants. Fix this by requiring pskb_may_pull(skb, VLAN_HLEN) before accessing and pulling each nested VLAN header. If the header still is not fully available, drop the packet through the existing error path.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 2ecba2d1e45b24620a7c3df9531895cf68d5dec6 before 0410c619e86551677fb79887a38eccad3f5a0725, from 2ecba2d1e45b24620a7c3df9531895cf68d5dec6 before 886469b6455611a511aa6013e957e15e50577513, from 2ecba2d1e45b24620a7c3df9531895cf68d5dec6 before 46c07ad50fa2f4ba7663ee1b72b75ad7ad45cf09, from 2ecba2d1e45b24620a7c3df9531895cf68d5dec6 before eb3765b90eb8f2a3d6310a80c14a9e57ec4267a2, from 2ecba2d1e45b24620a7c3df9531895cf68d5dec6 before a69738efea0996d05a3c7d2178551b891744df1b, from 2ecba2d1e45b24620a7c3df9531895cf68d5dec6 before ec4930979b3f7bbeb7af5744599fc6603a4dba62, from 2ecba2d1e45b24620a7c3df9531895cf68d5dec6 before 3d165d975305cf76ff0b10a3c798fb31e5f5f9a5, from 2ecba2d1e45b24620a7c3df9531895cf68d5dec6 before c842743d073bdd683606cb414eb0ca84465dd834 and 3 more Not affected: before 5.1, from 5.10.258 up to 5.10.*, from 5.15.209 up to 5.15.*, from 6.1.175 up to 6.1.*, from 6.6.136 up to 6.6.*, from 6.12.83 up to 6.12.* | CVE List |
| linux linux_kernel | from 4.19.99 before 4.20, from 5.1 before 6.6.136, from 6.7 before 6.12.83, from 6.13 before 6.18.24, from 6.19 before 6.19.14, 7.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: net: sched: act_csum: validate nested VLAN headers tcf_csum_act() walks nested VLAN headers directly from skb->data when an skb still carries in-payload VLAN tags. The current code reads vlan->h_vlan_encapsulated_proto and then pulls VLAN_HLEN bytes without first ensuring that the full VLAN header is present in the linear area. If only part of an inner VLAN header is linearized, accessing h_vlan_encapsulated_proto reads past the linear area, and the following skb_pull(VLAN_HLEN) may violate skb invariants. Fix this by requiring pskb_may_pull(skb, VLAN_HLEN) before accessing and pulling each nested VLAN header. If the header still is not fully available, drop the packet through the existing error path.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: sched: act_csum: validar cabeceras VLAN anidadas tcf_csum_act() recorre las cabeceras VLAN anidadas directamente desde skb -> data cuando un skb aún lleva etiquetas VLAN en la carga útil. El código actual lee vlan -> h_vlan_encapsulated_proto y luego extrae VLAN_HLEN bytes sin asegurar primero que la cabecera VLAN completa esté presente en el área lineal. Si solo parte de una cabecera VLAN interna se linealiza, acceder a h_vlan_encapsulated_proto lee más allá del área lineal, y la siguiente llamada a skb_pull(VLAN_HLEN) puede violar las invariantes de skb. Solucione esto requiriendo pskb_may_pull(skb, VLAN_HLEN) antes de acceder y extraer cada cabecera VLAN anidada. Si la cabecera aún no está completamente disponible, descarte el paquete a través de la ruta de error existente.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-31684 changed 2026-11-06 | CVE Terms of Use |
| NVD | CVE-2026-31684 changed 2026-11-11 | Public domain |