PT-2023-9463 · Linux+4 · Linux Kernel+4

Published

2023-10-01

·

Updated

2025-01-13

·

CVE-2023-52527

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The issue is related to the handling of transhdrlen in the ip{,6} append data() function. Including transhdrlen in the length is a problem when the packet is partially filled, as it can cause the transport header to be repeated or accounted for twice. This can happen under certain circumstances, such as splicing into an L2TP socket. The symptom observed is a warning in ip6 append data() 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, because the requested length includes the transport header length when it shouldn't. This can be triggered by, for example, creating a socket with AF INET6, SOCK DGRAM, and IPPROTO L2TP, binding it to ::1, connecting to ::1 port 7, sending data with MSG MORE, and then sending a file with sendfile(). The issue can be fixed by only adding transhdrlen into the length if the write queue is empty in l2tp ip6 sendmsg(), similar to how UDP handles things.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2024-07799
CVE-2023-52527
SUSE-SU-2024:1979-1
SUSE-SU-2024:1983-1
SUSE-SU-2024:2184-1
USN-7028-1
USN-7028-2
USN-7039-1

Affected Products

Astra Linux
Linux Kernel
Red Os
Suse
Ubuntu