Description
In the Linux kernel, the following vulnerability has been resolved: vxlan: re-fetch eth header after route_shortcircuit() Before route_shortcircuit(), the eth header pointer is cached from eth_hdr(skb). Inside route_shortcircuit(), pskb_may_pull() can be called, which may reallocate skb->head. In this case, returning to vxlan_xmit() leaves the cached eth pointer pointing to freed memory, leading to a use-after-free when dereferencing eth->h_dest. Fix this by updating eth = eth_hdr(skb) after calling route_shortcircuit().
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
ae8840825605f36f98f247323edc150e761cb64e to < 6375093eb45cd7d89f1945f939eeae3b29d79f56affectedae8840825605f36f98f247323edc150e761cb64e to < 1b7f7b653e3557690047c62f03b80a24ea5a58a5affectedae8840825605f36f98f247323edc150e761cb64e to < bf045341dfb3e767f0ff94cf240ce3c371973bd4affectedae8840825605f36f98f247323edc150e761cb64e to < 2355c8c26d2aa1b4385b369e67202e47d460d555affectedae8840825605f36f98f247323edc150e761cb64e to < 1511631b7cfc4152b10a0a9d04c7a0bf2ddf4585affectedae8840825605f36f98f247323edc150e761cb64e to < 1235e017aa11cf01e91b613c4c5ed6aa28934fffaffectedae8840825605f36f98f247323edc150e761cb64e to < c9dceac9e1c7c772c43c732fc0d325e72835801aaffectedae8840825605f36f98f247323edc150e761cb64e to < 1395a676ec15a0a02a2a6d86602324f2d5fd41d5affected
Linux Linux
Default version status: affected
3.10affected0 to < 3.10unaffected5.10.265 to ≤ 5.10.*unaffected5.15.216 to ≤ 5.15.*unaffected6.1.183 to ≤ 6.1.*unaffected6.6.151 to ≤ 6.6.*unaffected6.12.103 to ≤ 6.12.*unaffected6.18.44 to ≤ 6.18.*unaffected7.1.8 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/6375093eb45cd7d89f1945f939eeae3b29d79f56 ↗
- https://git.kernel.org/stable/c/1b7f7b653e3557690047c62f03b80a24ea5a58a5 ↗
- https://git.kernel.org/stable/c/bf045341dfb3e767f0ff94cf240ce3c371973bd4 ↗
- https://git.kernel.org/stable/c/2355c8c26d2aa1b4385b369e67202e47d460d555 ↗
- https://git.kernel.org/stable/c/1511631b7cfc4152b10a0a9d04c7a0bf2ddf4585 ↗
- https://git.kernel.org/stable/c/1235e017aa11cf01e91b613c4c5ed6aa28934fff ↗
- https://git.kernel.org/stable/c/c9dceac9e1c7c772c43c732fc0d325e72835801a ↗
- https://git.kernel.org/stable/c/1395a676ec15a0a02a2a6d86602324f2d5fd41d5 ↗