PT-2024-9808 · Linux+5 · Linux Kernel+5

Edward Adam Davis

·

Published

2024-01-14

·

Updated

2025-03-28

·

CVE-2024-35841

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 a vulnerability in the Linux kernel's net component, specifically with the TLS sendmsg code. When a splice with MSG SPLICE PAGES is used, it can cause the tls sw sendmsg splice path to loop over the message until it is full, checked by sk msg full(msg pl). The user can set the MORE flag to delay sending until more pages are received, but if more pages are added than can fit in the msg pl scatterlist (MAX MSG FRAGS), the MORE flag should be ignored and the buffer sent anyway. However, the code aborts the msg to msg pl scatterlist setup and falls through to the 'continue' path, which checks if msg data left(msg) has more bytes to send and attempts to fit them in the already full msg pl, resulting in a warning.
Recommendations: To fix the issue, simply check if there is a full record in the splice code path and if not, send the message regardless of the MORE flag. As a temporary workaround, consider restricting access to the vulnerable TLS sendmsg code until a patch is available.

Exploit

Fix

Infinite Loop

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

Weakness Enumeration

Related Identifiers

BDU:2024-11582
CVE-2024-35841
SUSE-SU-2024:2135-1
SUSE-SU-2024:2203-1
SUSE-SU-2024:2973-1
SUSE-SU-2025:20008-1
SUSE-SU-2025:20028-1
SUSE-SU-2025:20166-1
SUSE-SU-2025:20249-1
USN-6818-1
USN-6818-2
USN-6818-3
USN-6818-4
USN-6819-1
USN-6819-2
USN-6819-3
USN-6819-4

Affected Products

Astra Linux
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu