Linux kernel: Exploitable memory corruption due to UFO to non-UFO path switch. When building a UFO packet with MSG_MORE __ip_append_data() calls ip_uf...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:14.04:LTSlinux |
< 3.13.0-128.177→ 3.13.0-128.177 |
3.13.0-128.177 |
| Ubuntu:14.04:LTSlinux-lts-xenial |
< 4.4.0-91.114~14.04.1→ 4.4.0-91.114~14.04.1 |
4.4.0-91.114~14.04.1 |
| Ubuntu:16.04:LTSlinux |
< 4.4.0-91.114→ 4.4.0-91.114 |
4.4.0-91.114 |
| Ubuntu:16.04:LTSlinux-aws |
< 4.4.0-1030.39→ 4.4.0-1030.39 |
4.4.0-1030.39 |
| Ubuntu:16.04:LTSlinux-gke |
< 4.4.0-1026.26→ 4.4.0-1026.26 |
4.4.0-1026.26 |
| Ubuntu:16.04:LTSlinux-hwe |
< 4.10.0-32.36~16.04.1→ 4.10.0-32.36~16.04.1 |
4.10.0-32.36~16.04.1 |
| Ubuntu:16.04:LTSlinux-raspi2 |
< 4.4.0-1069.77→ 4.4.0-1069.77 |
4.4.0-1069.77 |
| Ubuntu:16.04:LTSlinux-snapdragon |
< 4.4.0-1071.76→ 4.4.0-1071.76 |
4.4.0-1071.76 |
| Ubuntu:20.04:LTSlinux-azure-fde |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-gke |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-raspi2 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlinux-riscv |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-intel-iot-realtime |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-realtime |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlinux-riscv |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlinux-raspi-realtime |
All versions→ Not listed |
Not listed |
Original description The description as published by the source.
Linux kernel: Exploitable memory corruption due to UFO to non-UFO path switch. When building a UFO packet with MSG_MORE __ip_append_data() calls ip_ufo_append_data() to append. However in between two send() calls, the append path can be switched from UFO to non-UFO one, which leads to a memory corruption. In case UFO packet lengths exceeds MTU, copy = maxfraglen - skb->len becomes negative on the non-UFO path and the branch to allocate new skb is taken. This triggers fragmentation and computation of fraggap = skb_prev->len - maxfraglen. Fraggap can exceed MTU, causing copy = datalen - transhdrlen - fraggap to become negative. Subsequently skb_copy_and_csum_bits() writes out-of-bounds. A similar issue is present in IPv6 code. The bug was introduced in e89e9cf539a2 ("[IPv4/IPv6]: UFO Scatter-gather approach") on Oct 18 2005.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory ubuntu.com
- advisory ubuntu.com
- advisory ubuntu.com
- advisory ubuntu.com
- advisory ubuntu.com
- advisory ubuntu.com
- report ubuntu.com
- report git.kernel.org
- report cve.org