In the Linux kernel, the following vulnerability has been resolved:
erspan: Initialize options_len before referencing options.
The struct ip_tunnel_info has a flexible array member named options that is protected by a counted_by(options_len) attribute.
The compiler will use this information to enforce runtime bounds checking deployed by FORTIFY_SOURCE string helpers.
As laid out in the GCC documentation, the counter must be initialized before the first reference to the flexible array member.
After scanning through the files that use struct ip_tunnel_info and also refer to options or options_len, it appears the normal case is to use the ip_tunnel_info_opts_set() helper.
Said helper would initialize options_len properly before copying data into options, however in the GRE ERSPAN code a partial update is done, preventing the use of the helper function.
Before this change the handling of ERSPAN traffic in GRE tunnels would cause a kernel panic when the kernel is compiled with GCC 15+ and having FORTIFY_SOURCE configured:
memcpy: detected buffer overflow: 4 byte write of buffer size 0
Call Trace: <IRQ> __fortify_panic+0xd/0xf erspan_rcv.cold+0x68/0x83 ? ip_route_input_slow+0x816/0x9d0 gre_rcv+0x1b2/0x1c0 gre_rcv+0x8e/0x100 ? raw_v4_input+0x2a0/0x2b0 ip_protocol_deliver_rcu+0x1ea/0x210 ip_local_deliver_finish+0x86/0x110 ip_local_deliver+0x65/0x110 ? ip_rcv_finish_core+0xd6/0x360 ip_rcv+0x186/0x1a0
Reported-at: https://launchpad.net/bugs/2129580
CVSS Details
- CVSS 3.1 Base Score: 7.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Redhat_linux | — | No solution exists | Jul 17, 2026 | Jan 14, 2026 |
| Ubuntu | — | Upgrade linux-image-genericUpgrade linux-image-oracleUpgrade linux-image-aws-64k-6.17Upgrade linux-image-6.17.0-1009-gcpUpgrade linux-image-6.17.0-1009-gcp-64kUpgrade linux-image-oracle-64k-6.17Upgrade linux-image-aws-6.17Upgrade linux-image-oracle-6.17Upgrade linux-image-6.17.0-19-generic-64kUpgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-virtualUpgrade linux-image-6.17.0-1010-raspiUpgrade linux-image-gcp-64k-6.17Upgrade linux-image-oem-24.04bUpgrade linux-image-6.17.0-1009-oracle-64kUpgrade linux-image-generic-64k-6.17Upgrade linux-image-6.17.0-1017-oemUpgrade linux-image-azure-6.17Upgrade linux-image-generic-6.17Upgrade linux-image-oem-24.04aUpgrade linux-image-realtime-6.17Upgrade linux-image-gcpUpgrade linux-image-awsUpgrade linux-image-virtual-6.17Upgrade linux-image-gcp-6.17Upgrade linux-image-oem-24.04dUpgrade linux-image-gcp-64kUpgrade linux-image-oem-24.04Upgrade linux-image-6.17.0-1009-oracleUpgrade linux-image-realtime-hwe-24.04Upgrade linux-image-oem-24.04cUpgrade linux-image-6.17.0-1009-aws-64kUpgrade linux-image-6.17.0-1009-awsUpgrade linux-image-raspiUpgrade linux-image-6.17.0-19-genericUpgrade linux-image-realtimeUpgrade linux-image-oracle-64kUpgrade linux-image-virtual-hwe-24.04Upgrade linux-image-generic-hwe-24.04Upgrade linux-image-6.17.0-1008-realtimeUpgrade linux-image-oem-6.17Upgrade linux-image-generic-64kUpgrade linux-image-azureUpgrade linux-image-aws-64kUpgrade linux-image-6.17.0-1010-azureUpgrade linux-image-raspi-6.17 | Mar 17, 2026 | Jan 14, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub