# CVE-2022-48819: tcp: take care of mixed splice()/sendmsg(MSG_ZEROCOPY) case

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-07-16T11:44:06.619Z
- Modified: 2026-06-17T05:16:16.677Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

tcp: take care of mixed splice()/sendmsg(MSG_ZEROCOPY) case

syzbot found that mixing sendpage() and sendmsg(MSG_ZEROCOPY)
calls over the same TCP socket would again trigger the
infamous warning in inet_sock_destruct()

	WARN_ON(sk_forward_alloc_get(sk));

While Talal took into account a mix of regular copied data
and MSG_ZEROCOPY one in the same skb, the sendpage() path
has been forgotten.

We want the charging to happen for sendpage(), because
pages could be coming from a pipe. What is missing is the
downgrading of pure zerocopy status to make sure
sk_forward_alloc will stay synced.

Add tcp_downgrade_zcopy_pure() helper so that we can
use it from the two callers.

(As written by CVE List.)

## Affected

- Linux Linux: from 9b65b17db72313b7a4fe9bc9502928c88be57986 before 47f3860c4931175f112f28dcac66eacca9b1040f; from 9b65b17db72313b7a4fe9bc9502928c88be57986 before f8d9d938514f46c4892aff6bfe32f425e84d81cc; 5.16 (not affected: before 5.16; from 5.16.10 up to 5.16.*; from 5.17 up to *)
- linux linux_kernel: from 5.16 before 5.16.10; 5.17

## References

- <https://git.kernel.org/stable/c/47f3860c4931175f112f28dcac66eacca9b1040f> (patch)
- <https://git.kernel.org/stable/c/f8d9d938514f46c4892aff6bfe32f425e84d81cc> (patch)

## Sources

- CVE List: [CVE-2022-48819](https://www.cve.org/CVERecord?id=CVE-2022-48819), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-48819](https://nvd.nist.gov/vuln/detail/CVE-2022-48819), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-48819 · Whole record: https://cve.day/CVE-2022-48819.json · Rebuilt by cve.day 2026-11-25T22:58:19.900Z
