{"id":"CVE-2022-48819","published":"2024-07-16T11:44:06Z","modified":"2026-05-11T18:47:45Z","title":"tcp: take care of mixed splice()/sendmsg(MSG_ZEROCOPY) case","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: take care of mixed splice()/sendmsg(MSG_ZEROCOPY) case\n\nsyzbot found that mixing sendpage() and sendmsg(MSG_ZEROCOPY)\ncalls over the same TCP socket would again trigger the\ninfamous warning in inet_sock_destruct()\n\n\tWARN_ON(sk_forward_alloc_get(sk));\n\nWhile Talal took into account a mix of regular copied data\nand MSG_ZEROCOPY one in the same skb, the sendpage() path\nhas been forgotten.\n\nWe want the charging to happen for sendpage(), because\npages could be coming from a pipe. What is missing is the\ndowngrading of pure zerocopy status to make sure\nsk_forward_alloc will stay synced.\n\nAdd tcp_downgrade_zcopy_pure() helper so that we can\nuse it from the two callers.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00231,"percentile":0.14239,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/47f3860c4931175f112f28dcac66eacca9b1040f","tags":[]},{"url":"https://git.kernel.org/stable/c/f8d9d938514f46c4892aff6bfe32f425e84d81cc","tags":[]}],"priority":{"score":2.8,"factors":[{"name":"EPSS percentile","points":2.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 9b65b17db72313b7a4fe9bc9502928c88be57986, < 47f3860c4931175f112f28dcac66eacca9b1040f",">= 9b65b17db72313b7a4fe9bc9502928c88be57986, < f8d9d938514f46c4892aff6bfe32f425e84d81cc"]},{"vendor":"Linux","product":"Linux","versions":["5.16"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:58:05.945399Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-53698","exploited":false,"provenance":"source"}}