VDB

CVE-2024-26752

CVE-2024-26752 PUBLISHED

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.

PackageEcosystemFixed in
kernel-develAmazon Linux4.14.343-259.562.amzn2
kernel-livepatch-4.14.343-259.562Amazon Linux1.0-0.amzn2
kernel-headersAmazon Linux4.14.343-259.562.amzn2
kernel-toolsAmazon Linux4.14.343-259.562.amzn2
python-perfAmazon Linux4.14.343-259.562.amzn2
kernel-tools-develAmazon Linux4.14.343-259.562.amzn2
linux_kernellinux6.7.7, 6.6.19, 6.1.80, 5.15.150, 5.10.211, 5.4.270, 4.19.308

Affected products

VendorProductVersions
LinuxLinux559d697c5d072593d22b3e0bd8b8081108aeaf59, 1fc793d68d50dee4782ef2e808913d5dd880bcc6, 96b2e1090397217839fcd6c9b6d8f5d439e705ed
LinuxLinux6.6, 0, 4.19.308
amazon:2kernel-devel0
amazon:2kernel-livepatch-4.14.343-259.5620
amazon:2kernel-headers0
amazon:2kernel-tools0
amazon:2python-perf0
amazon:2kernel-tools-devel0
LinuxLinux6.5.7, *, 6.7.7
amazon:2perf0
amazon:2kernel0
linuxlinux_kernel5.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›