CVE-2024-35841: Linux kernel · net: tls, fix WARNIING in __sk_msg_free
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 5.5 Medium · fixed in 6.5.0-1022.23~22.04.1 : update Linux kernel when convenient.
Data as of 24 Nov 2026, 21:14 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 12% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 6.5.0-1022.23~22.04.1, 6.5.0-1022.24~22.04.1, 6.5.0-41.41~22.04.2 +7
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 17 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
- ubuntu.com/security/notices/USN-6818-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6819-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6818-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6819-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6819-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-6818-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-6818-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-6819-4 (opens in a new tab)
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu Pro Realtime 24.04 LTSlinux-raspi-realtimepkg:deb/ubuntu/linux-raspi-realtime?arch=source&distro=realtime/nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSlinux-allwinner-5.19pkg:deb/ubuntu/linux-allwinner-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-5.19pkg:deb/ubuntu/linux-aws-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-6.2pkg:deb/ubuntu/linux-aws-6.2?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-aws-6.5pkg:deb/ubuntu/linux-aws-6.5?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSlinux-azure-5.19pkg:deb/ubuntu/linux-azure-5.19?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
In the Linux kernel, the following vulnerability has been resolved: net: tls, fix WARNIING in __sk_msg_free A splice with MSG_SPLICE_PAGES will cause tls code to use the tls_sw_sendmsg_splice path in the TLS sendmsg code to move the user provided pages from the msg into the msg_pl. This will loop over the msg until msg_pl is full, checked by sk_msg_full(msg_pl). The user can also set the MORE flag to hint stack to delay sending until receiving more pages and ideally a full buffer. If the user adds more pages to the msg than can fit in the msg_pl scatterlist (MAX_MSG_FRAGS) we should ignore the MORE flag and send the buffer anyways. What actually happens though is we abort the msg to msg_pl scatterlist setup and then because we forget to set 'full record' indicating we can no longer consume data without a send we fallthrough to the 'continue' path which will check if msg_data_left(msg) has more bytes to send and then attempts to fit them in the already full msg_pl. Then next iteration of sender doing send will encounter a full msg_pl and throw the warning in the syzbot report. To fix simply check if we have a full_record in splice code path and if not send the msg regardless of MORE flag.
References
- ubuntu.com/security/CVE-2024-35841 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-35841 (opens in a new tab)
- git.kernel.org/linus/dc9dfc8dc629e42f2234e3327b75324ffc752bc9 (opens in a new tab)
- git.kernel.org/stable/c/02e368eb1444a4af649b73cbe2edd51780511d86 (opens in a new tab)
- git.kernel.org/stable/c/294e7ea85f34748f04e5f3f9dba6f6b911d31aa8 (opens in a new tab)
- git.kernel.org/stable/c/dc9dfc8dc629e42f2234e3327b75324ffc752bc9 (opens in a new tab)
- ubuntu.com/security/notices/USN-6818-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6819-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6818-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6819-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-6819-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-6818-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-6818-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-6819-4 (opens in a new tab)