# CVE-2024-26752: l2tp: pass correct message length to ip6\_append\_data

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-131
- **Published:** 2024-04-03T17:00:37.340Z
- **Modified:** 2026-06-17T07:18:15.297Z

## Who should check

- Anyone running Linux \>= 559d697c5d072593d22b3e0bd8b8081108aeaf59, \< 4c3ce64bc9d36ca9164dd6c77ff144c121011aae; \>= 1fc793d68d50dee4782ef2e808913d5dd880bcc6, \< c1d3a84a67db910ce28a871273c992c3d7f9efb5; \>= 96b2e1090397217839fcd6c9b6d8f5d439e705ed, \< dcb4d14268595065c85dc5528056713928e17243; \>= cd1189956393bf850b2e275e37411855d3bd86bb, \< 0da15a70395182ee8cb75716baf00dddc0bea38d; \>= f6a7182179c0ed788e3755ee2ed18c888ddcc33f, \< 13cd1daeea848614e585b2c6ecc11ca9c8ab2500; \>= 9d4c75800f61e5d75c1659ba201b6c0c7ead3070, \< 804bd8650a3a2bf3432375f8c97d5049d845ce56; \>= 9d4c75800f61e5d75c1659ba201b6c0c7ead3070, \< 83340c66b498e49353530e41542500fc8a4782d6; \>= 9d4c75800f61e5d75c1659ba201b6c0c7ead3070, \< 359e54a93ab43d32ee1bff3c2f9f10cb9f6b6e79; 7626b9fed53092aa2147978070e610ecb61af844; fe80658c08e3001c80c5533cd41abfbb0e0e28fd; …
- Anyone running Linux 6.6

## 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 and fixed versions

- Linux: \>= 559d697c5d072593d22b3e0bd8b8081108aeaf59, \< 4c3ce64bc9d36ca9164dd6c77ff144c121011aae; \>= 1fc793d68d50dee4782ef2e808913d5dd880bcc6, \< c1d3a84a67db910ce28a871273c992c3d7f9efb5; \>= 96b2e1090397217839fcd6c9b6d8f5d439e705ed, \< dcb4d14268595065c85dc5528056713928e17243; \>= cd1189956393bf850b2e275e37411855d3bd86bb, \< 0da15a70395182ee8cb75716baf00dddc0bea38d; \>= f6a7182179c0ed788e3755ee2ed18c888ddcc33f, \< 13cd1daeea848614e585b2c6ecc11ca9c8ab2500; \>= 9d4c75800f61e5d75c1659ba201b6c0c7ead3070, \< 804bd8650a3a2bf3432375f8c97d5049d845ce56; \>= 9d4c75800f61e5d75c1659ba201b6c0c7ead3070, \< 83340c66b498e49353530e41542500fc8a4782d6; \>= 9d4c75800f61e5d75c1659ba201b6c0c7ead3070, \< 359e54a93ab43d32ee1bff3c2f9f10cb9f6b6e79; 7626b9fed53092aa2147978070e610ecb61af844; fe80658c08e3001c80c5533cd41abfbb0e0e28fd; … (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26752. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26752.md
Affected: Linux >= 559d697c5d072593d22b3e0bd8b8081108aeaf59, < 4c3ce64bc9d36ca9164dd6c77ff144c121011aae; >= 1fc793d68d50dee4782ef2e808913d5dd880bcc6, < c1d3a84a67db910ce28a871273c992c3d7f9efb5; >= 96b2e1090397217839fcd6c9b6d8f5d439e705ed, < dcb4d14268595065c85dc5528056713928e17243; >= cd1189956393bf850b2e275…
Fixed in: Linux 4c3ce64bc9d36ca9164dd6c77ff144c121011aae, Linux 0da15a70395182ee8cb75716baf00dddc0bea38d, Linux 13cd1daeea848614e585b2c6ecc11ca9c8ab2500, Linux 804bd8650a3a2bf3432375f8c97d5049d845ce56, Linux 83340c66b498e49353530e41542500fc8a4782d6, Linux 359e54a93ab43d32ee1bff3c2f9f10cb9f6b6e79

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26752 being exploited?

There is no confirmed exploitation: CVE-2024-26752 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-26752?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26752?

Linux \>= 559d697c5d072593d22b3e0bd8b8081108aeaf59, \< 4c3ce64bc9d36ca9164dd6c77ff144c121011aae; \>= 1fc793d68d50dee4782ef2e808913d5dd880bcc6, \< c1d3a84a67db910ce28a871273c992c3d7f9efb5; \>= 96b2e1090397217839fcd6c9b6d8f5d439e705ed, \< dcb4d14268595065c85dc5528056713928e17243; \>= cd1189956393bf850b2e275e37411855d3bd86bb, \< 0da15a70395182ee8cb75716baf00dddc0bea38d; \>= f6a7182179c0ed788e3755ee2ed18c888ddcc33f, \< 13cd1daeea848614e585b2c6ecc11ca9c8ab2500; \>= 9d4c75800f61e5d75c1659ba201b6c0c7ead3070, \< 804bd8650a3a2bf3432375f8c97d5049d845ce56; \>= 9d4c75800f61e5d75c1659ba201b6c0c7ead3070, \< 83340c66b498e49353530e41542500fc8a4782d6; \>= 9d4c75800f61e5d75c1659ba201b6c0c7ead3070, \< 359e54a93ab43d32ee1bff3c2f9f10cb9f6b6e79; 7626b9fed53092aa2147978070e610ecb61af844; fe80658c08e3001c80c5533cd41abfbb0e0e28fd; …; Linux 6.6.

### Is there a fix for CVE-2024-26752?

Yes. Fixed in Linux 4c3ce64bc9d36ca9164dd6c77ff144c121011aae, Linux 0da15a70395182ee8cb75716baf00dddc0bea38d, Linux 13cd1daeea848614e585b2c6ecc11ca9c8ab2500, Linux 804bd8650a3a2bf3432375f8c97d5049d845ce56, Linux 83340c66b498e49353530e41542500fc8a4782d6, Linux 359e54a93ab43d32ee1bff3c2f9f10cb9f6b6e79. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-26752?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4c3ce64bc9d36ca9164dd6c77ff144c121011aae>
- patch: <https://git.kernel.org/stable/c/c1d3a84a67db910ce28a871273c992c3d7f9efb5>
- patch: <https://git.kernel.org/stable/c/dcb4d14268595065c85dc5528056713928e17243>
- patch: <https://git.kernel.org/stable/c/0da15a70395182ee8cb75716baf00dddc0bea38d>
- patch: <https://git.kernel.org/stable/c/13cd1daeea848614e585b2c6ecc11ca9c8ab2500>
- patch: <https://git.kernel.org/stable/c/804bd8650a3a2bf3432375f8c97d5049d845ce56>
- patch: <https://git.kernel.org/stable/c/83340c66b498e49353530e41542500fc8a4782d6>
- patch: <https://git.kernel.org/stable/c/359e54a93ab43d32ee1bff3c2f9f10cb9f6b6e79>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26752>

HTML: <https://flawdb.com/CVE-2024-26752> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26752>
