{"id":"CVE-2022-48819","summary":"tcp: take care of mixed splice()/sendmsg(MSG_ZEROCOPY) case","details":"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.","modified":"2026-04-02T08:27:02.149568Z","published":"2024-07-16T11:44:06.619Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48819.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/47f3860c4931175f112f28dcac66eacca9b1040f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f8d9d938514f46c4892aff6bfe32f425e84d81cc"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48819.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48819"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"9b65b17db72313b7a4fe9bc9502928c88be57986"},{"fixed":"47f3860c4931175f112f28dcac66eacca9b1040f"},{"fixed":"f8d9d938514f46c4892aff6bfe32f425e84d81cc"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48819.json"}}],"schema_version":"1.7.5"}