Executive brief
A vulnerability was identified in the Linux kernel's networking component responsible for ERSPAN (Encapsulated Remote Switched Port Analyzer) traffic. This component is used to mirror network traffic for monitoring and analysis. An attacker could exploit this flaw to cause a system crash or instability, potentially leading to a denial of service.
Technical details
A vulnerability exists in the ip6erspan_rcv() and erspan_rcv() functions within the Linux kernel's GRE/ERSPAN implementation. The issue stems from a failure to call pskb_may_pull() to ensure the ERSPAN base header (erspan_base_hdr) is present in the linear part of the socket buffer (skb->head) before accessing the version field. This results in an uninitialized value read, as reported by syzbot's Kernel Memory Sanitizer (KMSAN). An attacker with the ability to send specially crafted ERSPAN packets could trigger this flaw to cause a kernel panic or denial of service. Patches have been released across multiple stable kernel branches to include the missing pskb_may_pull() checks.
Affected products
- Linux Linux Kernel 5.5 to 5.10.215, 5.11 to 5.15.154, 6.2 to 6.6.26, 6.7 to 6.8.5
Timeline
- 2024-03-28: patched: Initial fix authored by Eric Dumazet
- 2024-05-19: advisory: CVE-2024-35888 published
References
- https://git.kernel.org/stable/c/06a939f72a24a7d8251f84cf4c042df86c6666ac
- https://git.kernel.org/stable/c/0ac328a5a4138a6c03dfc3f46017bd5c19167446
- https://git.kernel.org/stable/c/17af420545a750f763025149fa7b833a4fc8b8f0
- https://git.kernel.org/stable/c/1db7fcb2b290c47c202b79528824f119fa28937d
- https://git.kernel.org/stable/c/4e3fdeecec5707678b0d1f18c259dadb97262e9d
- https://git.kernel.org/stable/c/b14b9f9503ec823ca75be766dcaeff4f0bfeca85
- https://git.kernel.org/stable/c/e54a0c79cdc2548729dd7e2e468b08c5af4d0df5