CVE-2024-26752
l2tp: pass correct message length to ip6_append_data
Reported by linux · Published April 3, 2024
In the Linux kernel, the following vulnerability has been resolved: l2tp: pass correct message length to ip6_append_data l2tp_ip6_sendmsg needs to avoid accounting for the transport header twice when splicing more data into an already partially-occupied skbuff. To manage this, we check whether the skbuff contains data using skb_queue_empty when deciding how much data to append using ip6_append_data. However, the code which performed the calculation was incorrect: ulen = len + skb_queue_empty(&sk->sk_write_queue) ? transhdrlen : 0; ...due to C operator precedence, this ends up setting ulen to transhdrlen for messages with a non-zero length, which results in corrupted packets on the wire. Add parentheses to correct the calculation in line with the original intent.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-devel | Amazon Linux | 4.14.343-259.562.amzn2 |
| kernel-livepatch-4.14.343-259.562 | Amazon Linux | 1.0-0.amzn2 |
| kernel-headers | Amazon Linux | 4.14.343-259.562.amzn2 |
| kernel-tools | Amazon Linux | 4.14.343-259.562.amzn2 |
| python-perf | Amazon Linux | 4.14.343-259.562.amzn2 |
| kernel-tools-devel | Amazon Linux | 4.14.343-259.562.amzn2 |
| linux_kernel | linux | 6.7.7, 6.6.19, 6.1.80, 5.15.150, 5.10.211, 5.4.270, 4.19.308 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 559d697c5d072593d22b3e0bd8b8081108aeaf59, 1fc793d68d50dee4782ef2e808913d5dd880bcc6, 96b2e1090397217839fcd6c9b6d8f5d439e705ed |
| Linux | Linux | 6.6, 0, 4.19.308 |
| amazon:2 | kernel-devel | 0 |
| amazon:2 | kernel-livepatch-4.14.343-259.562 | 0 |
| amazon:2 | kernel-headers | 0 |
| amazon:2 | kernel-tools | 0 |
| amazon:2 | python-perf | 0 |
| amazon:2 | kernel-tools-devel | 0 |
| Linux | Linux | 6.5.7, *, 6.7.7 |
| amazon:2 | perf | 0 |
| amazon:2 | kernel | 0 |
| linux | linux_kernel | 5.4.258, 5.10.198, 5.15.135 |
Timeline
- Apr 1, 2024 CVE Published
- Apr 4, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (9 in total, the first dated here)
- Jan 15, 2026 Security Advisory (270 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (233 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-26752
vulnetix vdb fixes CVE-2024-26752
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-26752/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart