CVE & CISA-KEV Catalog

CVE-2023-52527

MEDIUM
5.5
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
linuxDebian
Fixed in:5.10.205-1CVE-2023-52527
Fixed in:6.1.64-1CVE-2023-52527
Fixed in:6.5.8-1CVE-2023-52527
Fixed in:6.5.8-1CVE-2023-52527
linuxUbuntu
Fixed in:4.4.0-259.293USN-7039-1
Fixed in:4.15.0-229.241USN-7028-1
linux-awsUbuntu
Fixed in:4.4.0-1136.142USN-7039-1
Fixed in:4.4.0-1174.189USN-7039-1
Fixed in:4.15.0-1173.186USN-7028-1
linux-aws-hweUbuntu
Fixed in:4.15.0-1173.186~16.04.1USN-7028-1
linux-azureUbuntu
Fixed in:4.15.0-1181.196~14.04.1USN-7028-2
Fixed in:4.15.0-1181.196~16.04.1USN-7028-1
linux-azure-4.15Ubuntu
Fixed in:4.15.0-1181.196USN-7028-1
linux-gcpUbuntu
Fixed in:4.15.0-1166.183~16.04.1USN-7028-1
linux-gcp-4.15Ubuntu
Fixed in:4.15.0-1166.183USN-7028-1
linux-hweUbuntu
Fixed in:4.15.0-229.241~16.04.1USN-7028-1
linux-image-4.15.0-1135-oracleUbuntu
Fixed in:4.15.0-1135.146~16.04.1USN-7028-1
Fixed in:4.15.0-1135.146USN-7028-1
linux-image-4.15.0-1156-kvmUbuntu
Fixed in:4.15.0-1156.161USN-7028-1
linux-image-4.15.0-1166-gcpUbuntu
Fixed in:4.15.0-1166.183~16.04.1USN-7028-1
Fixed in:4.15.0-1166.183USN-7028-1
linux-image-4.15.0-1173-awsUbuntu
Fixed in:4.15.0-1173.186~16.04.1USN-7028-1
Fixed in:4.15.0-1173.186USN-7028-1
linux-image-4.15.0-1181-azureUbuntu
Fixed in:4.15.0-1181.196~14.04.1USN-7028-2
Fixed in:4.15.0-1181.196~16.04.1USN-7028-1
Fixed in:4.15.0-1181.196USN-7028-1
linux-image-4.15.0-229-genericUbuntu
Fixed in:4.15.0-229.241~16.04.1USN-7028-1
Fixed in:4.15.0-229.241USN-7028-1
linux-image-4.15.0-229-lowlatencyUbuntu
Fixed in:4.15.0-229.241~16.04.1USN-7028-1
Fixed in:4.15.0-229.241USN-7028-1
linux-image-4.4.0-1136-awsUbuntu
Fixed in:4.4.0-1136.142USN-7039-1
linux-image-4.4.0-1137-kvmUbuntu
Fixed in:4.4.0-1137.147USN-7039-1
linux-image-4.4.0-1174-awsUbuntu
Fixed in:4.4.0-1174.189USN-7039-1
linux-image-4.4.0-259-genericUbuntu
Fixed in:4.4.0-259.293~14.04.1USN-7039-1
Fixed in:4.4.0-259.293USN-7039-1
linux-image-4.4.0-259-lowlatencyUbuntu
Fixed in:4.4.0-259.293~14.04.1USN-7039-1
Fixed in:4.4.0-259.293USN-7039-1
linux-image-awsUbuntu
Fixed in:4.4.0.1136.133USN-7039-1
Fixed in:4.4.0.1174.178USN-7039-1
linux-image-aws-hweUbuntu
Fixed in:4.15.0.1173.186~16.04.1USN-7028-1
linux-image-aws-lts-18.04Ubuntu
Fixed in:4.15.0.1173.171USN-7028-1
linux-image-azureUbuntu
Fixed in:4.15.0-1181.196~14.04.1USN-7028-2
Fixed in:4.15.0.1181.196~16.04.1USN-7028-1
linux-image-azure-lts-18.04Ubuntu
Fixed in:4.15.0.1181.149USN-7028-1
linux-image-gcpUbuntu
Fixed in:4.15.0.1166.183~16.04.1USN-7028-1
linux-image-gcp-lts-18.04Ubuntu
Fixed in:4.15.0.1166.179USN-7028-1
linux-image-genericUbuntu
Fixed in:4.4.0.259.265USN-7039-1
Fixed in:4.15.0.229.213USN-7028-1
linux-image-generic-hwe-16.04Ubuntu
Fixed in:4.15.0.229.241~16.04.1USN-7028-1
linux-image-generic-lts-utopicUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-generic-lts-vividUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-generic-lts-wilyUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-generic-lts-xenialUbuntu
Fixed in:4.4.0.259.293~14.04.1USN-7039-1
Fixed in:4.4.0.259.265USN-7039-1
linux-image-gkeUbuntu
Fixed in:4.15.0.1166.183~16.04.1USN-7028-1
linux-image-kvmUbuntu
Fixed in:4.4.0.1137.134USN-7039-1
Fixed in:4.15.0.1156.147USN-7028-1
linux-image-lowlatencyUbuntu
Fixed in:4.4.0.259.265USN-7039-1
Fixed in:4.15.0.229.213USN-7028-1
linux-image-lowlatency-hwe-16.04Ubuntu
Fixed in:4.15.0.229.241~16.04.1USN-7028-1
linux-image-lowlatency-lts-utopicUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-lowlatency-lts-vividUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-lowlatency-lts-wilyUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-lowlatency-lts-xenialUbuntu
Fixed in:4.4.0.259.293~14.04.1USN-7039-1
Fixed in:4.4.0.259.265USN-7039-1
linux-image-oemUbuntu
Fixed in:4.15.0.229.241~16.04.1USN-7028-1
linux-image-oracleUbuntu
Fixed in:4.15.0.1135.146~16.04.1USN-7028-1
linux-image-oracle-lts-18.04Ubuntu
Fixed in:4.15.0.1135.140USN-7028-1
linux-image-virtualUbuntu
Fixed in:4.4.0.259.265USN-7039-1
Fixed in:4.15.0.229.213USN-7028-1
linux-image-virtual-hwe-16.04Ubuntu
Fixed in:4.15.0.229.241~16.04.1USN-7028-1
linux-image-virtual-lts-utopicUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-virtual-lts-vividUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-virtual-lts-wilyUbuntu
Fixed in:4.4.0.259.265USN-7039-1
linux-image-virtual-lts-xenialUbuntu
Fixed in:4.4.0.259.293~14.04.1USN-7039-1
Fixed in:4.4.0.259.265USN-7039-1
linux-kvmUbuntu
Fixed in:4.4.0-1137.147USN-7039-1
Fixed in:4.15.0-1156.161USN-7028-1
linux-lts-xenialUbuntu
Fixed in:4.4.0-259.293~14.04.1USN-7039-1
linux-oracleUbuntu
Fixed in:4.15.0-1135.146~16.04.1USN-7028-1
Fixed in:4.15.0-1135.146USN-7028-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

0.23%probability of exploitation in 30 days
13thpercentile

Low risk: more likely to be exploited than 13% of all known CVEs.

References

Embed a live status badge for CVE-2023-52527
CVE-2023-52527 severity badge

Markdown

[![CVE-2023-52527](https://tridentstack.com/cve/badge/CVE-2023-52527.svg)](https://tridentstack.com/cve/CVE-2023-52527)

HTML

<a href="https://tridentstack.com/cve/CVE-2023-52527"><img src="https://tridentstack.com/cve/badge/CVE-2023-52527.svg" alt="CVE-2023-52527"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-01-13.