ipv4, ipv6: Fix handling of transhdrlen in __ip{,6}_append_data()
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA.
Summary
In the Linux kernel, the following vulnerability has been resolved: ipv4, ipv6: Fix handling of transhdrlen in __ip{,6}_append_data() Including the transhdrlen in length is a problem when the packet is partially filled (e.g. something like send(MSG_MORE) happened previously) when appending to an IPv4 or IPv6 packet as we don't want to repeat the transport header or account for it twice. This can happen under some circumstances, such as splicing into an L2TP socket. The symptom observed is a warning in __ip6_append_data(): WARNING: CPU: 1 PID: 5042 at net/ipv6/ip6_output.c:1800 __ip6_append_data.isra.0+0x1be8/0x47f0 net/ipv6/ip6_output.c:1800 that occurs when MSG_SPLICE_PAGES is used to append more data to an already partially occupied skbuff. The warning occurs when 'copy' is larger than the amount of data in the message iterator. This is because the requested length includes the transport header length when it shouldn't. This can be triggered by, for example: sfd = socket(AF_INET6, SOCK_DGRAM, IPPROTO_L2TP); bind(sfd, ...); // ::1 connect(sfd, ...); // ::1 port 7 send(sfd, buffer, 4100, MSG_MORE); sendfile(sfd, dfd, NULL, 1024); Fix this by only adding transhdrlen into the length if the write queue is empty in l2tp_ip6_sendmsg(), analogously to how UDP does things. l2tp_ip_sendmsg() looks like it won't suffer from this problem as it builds the UDP packet itself.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 3.5 and later | 4.14.327, 4.19.296, 5.4.258, 5.10.198, 5.15.135, 6.1.57, 6.5.7, 6.6 | Patch available | CNA |
- Linux VendorLinux Affected 3.5 and later Fixed in 4.14.327, 4.19.296, 5.4.258, 5.10.198, 5.15.135, 6.1.57, 6.5.7, 6.6 Patch available CNA
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 3.5 to before 4.14.327; 4.15 to before 4.19.296; 4.20 to before 5.4.258; 5.5 to before 5.10.198; 5.11 to before 5.15.135; 5.16 to before 6.1.57; 6.2 to before 6.5.7 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.6:rc1:*:*:*:*:*:* | 6.6 rc1 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.6:rc2:*:*:*:*:*:* | 6.6 rc2 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.6:rc3:*:*:*:*:*:* | 6.6 rc3 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:6.6:rc4:*:*:*:*:*:* | 6.6 rc4 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 3.5 to before 4.14.327; 4.15 to before 4.19.296; 4.20 to before 5.4.258; 5.5 to before 5.10.198; 5.11 to before 5.15.135; 5.16 to before 6.1.57; 6.2 to before 6.5.7 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.6:rc1:*:*:*:*:*:* Versions 6.6 rc1 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.6:rc2:*:*:*:*:*:* Versions 6.6 rc2 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.6:rc3:*:*:*:*:*:* Versions 6.6 rc3 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:6.6:rc4:*:*:*:*:*:* Versions 6.6 rc4 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 4.14.327, 4.19.296, 5.4.258, 5.10.198, 5.15.135, 6.1.57, 6.5.7, 6.6
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 4 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2023-52527
- 2026-10-03 Alias added: GHSA-j6qg-38wf-82gm
References
Patch 8
- https://git.kernel.org/stable/c/7626b9fed53092aa2147978070e610ecb61af844
- https://git.kernel.org/stable/c/559d697c5d072593d22b3e0bd8b8081108aeaf59
- https://git.kernel.org/stable/c/1fc793d68d50dee4782ef2e808913d5dd880bcc6
- https://git.kernel.org/stable/c/96b2e1090397217839fcd6c9b6d8f5d439e705ed
- https://git.kernel.org/stable/c/cd1189956393bf850b2e275e37411855d3bd86bb
- https://git.kernel.org/stable/c/f6a7182179c0ed788e3755ee2ed18c888ddcc33f
- https://git.kernel.org/stable/c/fe80658c08e3001c80c5533cd41abfbb0e0e28fd
- https://git.kernel.org/stable/c/9d4c75800f61e5d75c1659ba201b6c0c7ead3070
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2023-52527 · CVE Program
- CVE-2023-52527 · NVD
- FIRST EPSS
- GHSA-j6qg-38wf-82gm · GitHub Advisory Database · CC BY 4.0
- CVE-2023-52527 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences