# CVE-2024-35841: net: tls, fix WARNIING in \_\_sk\_msg\_free

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **Published:** 2024-05-17T14:27:31.822Z
- **Modified:** 2026-06-17T07:35:31.863Z

## Who should check

- Anyone running Linux \>= fe1e81d4f73b6cbaed4fcc476960d26770642842, \< 02e368eb1444a4af649b73cbe2edd51780511d86; \>= fe1e81d4f73b6cbaed4fcc476960d26770642842, \< 294e7ea85f34748f04e5f3f9dba6f6b911d31aa8; \>= fe1e81d4f73b6cbaed4fcc476960d26770642842, \< dc9dfc8dc629e42f2234e3327b75324ffc752bc9
- Anyone running Linux 6.5

## 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.

## Affected and fixed versions

- Linux: \>= fe1e81d4f73b6cbaed4fcc476960d26770642842, \< 02e368eb1444a4af649b73cbe2edd51780511d86; \>= fe1e81d4f73b6cbaed4fcc476960d26770642842, \< 294e7ea85f34748f04e5f3f9dba6f6b911d31aa8; \>= fe1e81d4f73b6cbaed4fcc476960d26770642842, \< dc9dfc8dc629e42f2234e3327b75324ffc752bc9 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35841. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35841.md
Affected: Linux >= fe1e81d4f73b6cbaed4fcc476960d26770642842, < 02e368eb1444a4af649b73cbe2edd51780511d86; >= fe1e81d4f73b6cbaed4fcc476960d26770642842, < 294e7ea85f34748f04e5f3f9dba6f6b911d31aa8; >= fe1e81d4f73b6cbaed4fcc476960d26770642842, < dc9dfc8dc629e42f2234e3327b75324ffc752bc9; Linux 6.5
Fixed in: Linux 02e368eb1444a4af649b73cbe2edd51780511d86, Linux 294e7ea85f34748f04e5f3f9dba6f6b911d31aa8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-35841 being exploited?

There is no confirmed exploitation: CVE-2024-35841 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35841?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-35841?

Linux \>= fe1e81d4f73b6cbaed4fcc476960d26770642842, \< 02e368eb1444a4af649b73cbe2edd51780511d86; \>= fe1e81d4f73b6cbaed4fcc476960d26770642842, \< 294e7ea85f34748f04e5f3f9dba6f6b911d31aa8; \>= fe1e81d4f73b6cbaed4fcc476960d26770642842, \< dc9dfc8dc629e42f2234e3327b75324ffc752bc9; Linux 6.5.

### Is there a fix for CVE-2024-35841?

Yes. Fixed in Linux 02e368eb1444a4af649b73cbe2edd51780511d86, Linux 294e7ea85f34748f04e5f3f9dba6f6b911d31aa8. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-35841?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/02e368eb1444a4af649b73cbe2edd51780511d86>
- patch: <https://git.kernel.org/stable/c/294e7ea85f34748f04e5f3f9dba6f6b911d31aa8>
- patch: <https://git.kernel.org/stable/c/dc9dfc8dc629e42f2234e3327b75324ffc752bc9>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35841>

HTML: <https://flawdb.com/CVE-2024-35841> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35841>
