{"id":"CVE-2023-53825","summary":"kcm: Fix error handling for SOCK_DGRAM in kcm_sendmsg().","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nkcm: Fix error handling for SOCK_DGRAM in kcm_sendmsg().\n\nsyzkaller found a memory leak in kcm_sendmsg(), and commit c821a88bd720\n(\"kcm: Fix memory leak in error path of kcm_sendmsg()\") suppressed it by\nupdating kcm_tx_msg(head)-\u003elast_skb if partial data is copied so that the\nfollowing sendmsg() will resume from the skb.\n\nHowever, we cannot know how many bytes were copied when we get the error.\nThus, we could mess up the MSG_MORE queue.\n\nWhen kcm_sendmsg() fails for SOCK_DGRAM, we should purge the queue as we\ndo so for UDP by udp_flush_pending_frames().\n\nEven without this change, when the error occurred, the following sendmsg()\nresumed from a wrong skb and the queue was messed up.  However, we have\nyet to get such a report, and only syzkaller stumbled on it.  So, this\ncan be changed safely.\n\nNote this does not change SOCK_SEQPACKET behaviour.","modified":"2026-03-31T17:29:30.226206059Z","published":"2025-12-09T01:29:38.539Z","related":["SUSE-SU-2026:0278-1","SUSE-SU-2026:0281-1","SUSE-SU-2026:0293-1","SUSE-SU-2026:0315-1","SUSE-SU-2026:0473-1","SUSE-SU-2026:20477-1","SUSE-SU-2026:20498-1","SUSE-SU-2026:20845-1","SUSE-SU-2026:20876-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53825.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1ce8362b4ac6b8e65fd04a22ea37ec776ee1ec5b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/21b467735b0888a8daa048f83d3b9b50fdab71ce"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2e18493c421428a936946c452461b8e979088f17"},{"type":"WEB","url":"https://git.kernel.org/stable/c/55d2e7c1ab8eaa7b62575b8a4194132795d1f9fc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/992b2ac783aad360b98ed9d4686e86176a20f6f1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a22730b1b4bf437c6bbfdeff5feddf54be4aeada"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d4b8f380b0a041ee6a84fdac14127d8fe1dcad7b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e5b28ce127a690f3acc49a6a342e6c9442c9edd6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53825.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53825"},{"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":"ab7ac4eb9832e32a09f4e8042705484d2fb0aad3"},{"fixed":"21b467735b0888a8daa048f83d3b9b50fdab71ce"},{"fixed":"d4b8f380b0a041ee6a84fdac14127d8fe1dcad7b"},{"fixed":"1ce8362b4ac6b8e65fd04a22ea37ec776ee1ec5b"},{"fixed":"2e18493c421428a936946c452461b8e979088f17"},{"fixed":"55d2e7c1ab8eaa7b62575b8a4194132795d1f9fc"},{"fixed":"e5b28ce127a690f3acc49a6a342e6c9442c9edd6"},{"fixed":"992b2ac783aad360b98ed9d4686e86176a20f6f1"},{"fixed":"a22730b1b4bf437c6bbfdeff5feddf54be4aeada"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53825.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.6.0"},{"fixed":"4.14.326"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.295"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.257"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.195"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.132"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.54"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.5.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53825.json"}}],"schema_version":"1.7.5"}