{"id":"CVE-2026-80925","published":"2026-09-09T16:19:44Z","modified":"2026-10-30T12:31:26Z","title":"vlan: fix skb_under_panic and races when toggling HW VLAN offload","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvlan: fix skb_under_panic and races when toggling HW VLAN offload\n\nToggling hardware VLAN TX offload (NETIF_F_HW_VLAN_CTAG_TX or\nNETIF_F_HW_VLAN_STAG_TX) on a lower device invokes vlan_transfer_features(),\nwhich dynamically changed vlandev->hard_header_len.\n\nThis causes two issues:\n1. Lockless TX paths (e.g. packet_snd in af_packet.c, ip6_finish_output2)\n   read dev->hard_header_len without holding RTNL lock. Mutating\n   hard_header_len dynamically under RTNL creates a data race where upper\n   layers reserve insufficient headroom based on a stale hard_header_len,\n   resulting in skb_under_panic when vlan_dev_hard_header() is called.\n2. In addition, vlan_transfer_features() updated hard_header_len without\n   updating header_ops, causing a mismatch between allocated headroom\n   and header creation.\n\nAlways setting dev->hard_header_len = real_dev->hard_header_len and\ndev->needed_headroom = real_dev->needed_headroom + VLAN_HLEN unconditionally\nensures:\n- dev->hard_header_len remains 100% static and immutable at real_dev->hard_header_len,\n  eliminating all dynamic runtime updates and data races on hard_header_len.\n- Upper layers allocating skbs via LL_RESERVED_SPACE() will always reserve\n  sufficient headroom for software VLAN tag insertion (real_dev->hard_header_len +\n  real_dev->needed_headroom + VLAN_HLEN).\n- vlandev inherits real_dev->needed_tailroom so underlying trailer/padding/ICV\n  requirements are honored.\n- AF_PACKET SOCK_RAW network header offsets remain correctly aligned at\n  real_dev->hard_header_len.\n- vlan_header_ops is used unconditionally.\n\nNote to stable teams: Make sure to backport these commits:\n\ne16e960d55a4 (\"ipvlan: inherit needed_headroom and needed_tailroom from phy_dev\")\ncef51860becd (\"macvlan: inherit needed_headroom and needed_tailroom from lowerdev\")","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00161,"percentile":0.05251,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/69f2fc6e761ee68a4c0c8e416ae88c573d4d7319","tags":[]},{"url":"https://git.kernel.org/stable/c/b38d7a4bc9c17e1d437696da25f9fbc286614d9d","tags":[]},{"url":"https://git.kernel.org/stable/c/b30fe4de285b9bdaf9508740191f69f7cd83b8fa","tags":[]},{"url":"https://git.kernel.org/stable/c/1517d1996b5236fe69eccd9d253f725e06996eb1","tags":[]},{"url":"https://git.kernel.org/stable/c/a29f3b884ba50217e6f50414f568073221e2bb07","tags":[]},{"url":"https://git.kernel.org/stable/c/447cbe95ebb95392b5d8f6a01c0556826919ce23","tags":[]}],"priority":{"score":1.1,"factors":[{"name":"EPSS percentile","points":1.05}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 69f2fc6e761ee68a4c0c8e416ae88c573d4d7319",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b38d7a4bc9c17e1d437696da25f9fbc286614d9d",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b30fe4de285b9bdaf9508740191f69f7cd83b8fa",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1517d1996b5236fe69eccd9d253f725e06996eb1",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a29f3b884ba50217e6f50414f568073221e2bb07",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 447cbe95ebb95392b5d8f6a01c0556826919ce23"]},{"vendor":"Linux","product":"Linux","versions":["2.6.12"]}],"euvd":{"id":"EUVD-2026-75102","exploited":false,"provenance":"source"}}