CVE-2024-49979
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
21/10/2024
Last modified:
29/10/2024
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
net: gso: fix tcp fraglist segmentation after pull from frag_list<br />
<br />
Detect tcp gso fraglist skbs with corrupted geometry (see below) and<br />
pass these to skb_segment instead of skb_segment_list, as the first<br />
can segment them correctly.<br />
<br />
Valid SKB_GSO_FRAGLIST skbs<br />
- consist of two or more segments<br />
- the head_skb holds the protocol headers plus first gso_size<br />
- one or more frag_list skbs hold exactly one segment<br />
- all but the last must be gso_size<br />
<br />
Optional datapath hooks such as NAT and BPF (bpf_skb_pull_data) can<br />
modify these skbs, breaking these invariants.<br />
<br />
In extreme cases they pull all data into skb linear. For TCP, this<br />
causes a NULL ptr deref in __tcpv4_gso_segment_list_csum at<br />
tcp_hdr(seg->next).<br />
<br />
Detect invalid geometry due to pull, by checking head_skb size.<br />
Don&#39;t just drop, as this may blackhole a destination. Convert to be<br />
able to pass to regular skb_segment.<br />
<br />
Approach and description based on a patch by Willem de Bruijn.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.10 (including) | 6.10.14 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.11 (including) | 6.11.3 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



