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
| Vector | AV: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
Affected Products
Astra Linux
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu