Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Don't let bpf_skb_adjust_room() raise gso_size to GSO_BY_FRAGS When bpf_skb_adjust_room() shrinks a TCP GSO skb, it adds the number of removed bytes to gso_size. gso_size has 16 bits, and nothing checks the sum. Thus gso_size can wrap to 0 or to a small size, or it can be GSO_BY_FRAGS. GSO_BY_FRAGS is not a size. It tells skb_segment() to read the length of each segment from the frag_list. If the TCP GSO skb has no frag_list, skb_segment() dereferences a NULL pointer. Return -ENOTSUPP and do not change the skb if the sum is GSO_BY_FRAGS or larger. With BPF_F_ADJ_ROOM_FIXED_GSO the helper does not change gso_size, so it shrinks the skb as before.
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
2be7e212d5419a400d051c84ca9fdd083e5aacac to < 7ce80a72fc14888d835bae1e7a981b35a2837a23affected2be7e212d5419a400d051c84ca9fdd083e5aacac to < 991d26913d1fd607d7052a56c7649d0e40d91fcaaffected2be7e212d5419a400d051c84ca9fdd083e5aacac to < d2f87ad5b7b7bdf1dab6ecc2853f0357e070733eaffected2be7e212d5419a400d051c84ca9fdd083e5aacac to < 8ff854b515dfd559e14bc9898cb84543fcc6a3daaffected2be7e212d5419a400d051c84ca9fdd083e5aacac to < e4384414432b98e93e6413856064b7c165be1a56affected2be7e212d5419a400d051c84ca9fdd083e5aacac to < 6d8118937ba477e03fa2e94e9bd9abac7291a2a2affected
Linux Linux
Default version status: affected
4.13affected0 to < 4.13unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/7ce80a72fc14888d835bae1e7a981b35a2837a23 ↗
- https://git.kernel.org/stable/c/991d26913d1fd607d7052a56c7649d0e40d91fca ↗
- https://git.kernel.org/stable/c/d2f87ad5b7b7bdf1dab6ecc2853f0357e070733e ↗
- https://git.kernel.org/stable/c/8ff854b515dfd559e14bc9898cb84543fcc6a3da ↗
- https://git.kernel.org/stable/c/e4384414432b98e93e6413856064b7c165be1a56 ↗
- https://git.kernel.org/stable/c/6d8118937ba477e03fa2e94e9bd9abac7291a2a2 ↗