CVE-2024-26752

l2tp: pass correct message length to ip6_append_data

MEDIUM
5.5
CVSS Score
Published: April 3, 2024 at 05:00 PM UTC
Updated: June 17, 2026 at 07:18 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 4.14.327v ≥ 6.5.74.14.327 ≤ v < 4.154.19.296 ≤ v < 4.19.3085.10.198 ≤ v < 5.10.2115.15.135 ≤ v < 5.15.1505.4.258 ≤ v < 5.4.2706.1.57 ≤ v < 6.1.806.5.7 ≤ v < 6.66.6 ≤ v < 6.6.196.6 ≤ v < 6.7.76.6 ≤ v < 6.86.7 ≤ v < 6.7.71fc793d68d50dee4782ef2e808913d5dd880bcc64.14.3274.19.2965.10.1985.15.1355.4.258559d697c5d072593d22b3e0bd8b8081108aeaf596.1.576.5.76.8 rc16.8 rc26.8 rc36.8 rc46.8 rc57626b9fed53092aa2147978070e610ecb61af84496b2e1090397217839fcd6c9b6d8f5d439e705ed9d4c75800f61e5d75c1659ba201b6c0c7ead3070cd1189956393bf850b2e275e37411855d3bd86bbf6a7182179c0ed788e3755ee2ed18c888ddcc33ffe80658c08e3001c80c5533cd41abfbb0e0e28fd
Vendor states this is fixed in 0da15a70395182ee8cb75716baf00dddc0bea38d (fixed)
Vendor states this is fixed in 13cd1daeea848614e585b2c6ecc11ca9c8ab2500 (fixed)
Vendor states this is fixed in 359e54a93ab43d32ee1bff3c2f9f10cb9f6b6e79 (fixed)
Vendor states this is fixed in 4c3ce64bc9d36ca9164dd6c77ff144c121011aae (fixed)
Vendor states this is fixed in 804bd8650a3a2bf3432375f8c97d5049d845ce56 (fixed)
Vendor states this is fixed in 83340c66b498e49353530e41542500fc8a4782d6 (fixed)
Vendor states this is fixed in c1d3a84a67db910ce28a871273c992c3d7f9efb5 (fixed)
Vendor states this is fixed in dcb4d14268595065c85dc5528056713928e17243 (fixed)
Affected range stops below 4.15, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 4.19.308 (unaffected)
Vendor states this is fixed in 5.10.211 (unaffected)
Vendor states this is fixed in 5.15.150 (unaffected)
Vendor states this is fixed in 5.4.270 (unaffected)
Vendor states this is fixed in 6.1.80 (unaffected)
Vendor states this is fixed in 6.6 (unaffected)
Vendor states this is fixed in 6.6.19 (unaffected)
Vendor states this is fixed in 6.7.7 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0da15a70395182ee8cb75716baf00dddc0bea38d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/13cd1daeea848614e585b2c6ecc11ca9c8ab2500
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/359e54a93ab43d32ee1bff3c2f9f10cb9f6b6e79
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4c3ce64bc9d36ca9164dd6c77ff144c121011aae
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/804bd8650a3a2bf3432375f8c97d5049d845ce56
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/83340c66b498e49353530e41542500fc8a4782d6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c1d3a84a67db910ce28a871273c992c3d7f9efb5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/dcb4d14268595065c85dc5528056713928e17243

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-131

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card