CVE-2022-49066 Information
Description
In the Linux kernel the following vulnerability has been resolved:
veth: Ensure eth header is in skb’s linear part
After feeding a decapsulated packet to a veth device with act_mirred skb_headlen() may be 0. But veth_xmit() calls __dev_forward_skb() which expects at least ETH_HLEN byte of linear data (as __dev_forward_skb2() calls eth_type_trans() which pulls ETH_HLEN bytes unconditionally).
Use pskb_may_pull() to ensure veth_xmit() respects this constraint.
kernel BUG at include/linux/skbuff.h:2328!
RIP: 0010:eth_type_trans+0xcf/0x140
Call Trace:
Reference
https://git.kernel.org/stable/c/1ef0088e43af1de4e3b365218c4d3179d9a37eec https://git.kernel.org/stable/c/2fd90b86dff413fbf8128780c04ea9c6849c16e2 https://git.kernel.org/stable/c/3de2a02b60a4ef0ab76263216f08c7d095fc7c42 https://git.kernel.org/stable/c/46bc359fec0c6d87b70d7a008bcd9a5e30dd6f27 https://git.kernel.org/stable/c/726e2c5929de841fdcef4e2bf995680688ae1b87 https://git.kernel.org/stable/c/93940fc4cb81840dc0fa202de48cccb949a0261d https://git.kernel.org/stable/c/d417a859221f127e8edf09c14b76ab50f825e171 https://git.kernel.org/stable/c/d67c900f1947d64ba8a64f693504bcaab8d9000c
Share on: