CVE-2023-53825 Details
Description
In the Linux kernel, the following vulnerability has been resolved: kcm: Fix error handling for SOCK_DGRAM in kcm_sendmsg(). syzkaller found a memory leak in kcm_sendmsg(), and commit c821a88bd720 ("kcm: Fix memory leak in error path of kcm_sendmsg()") suppressed it by updating kcm_tx_msg(head)->last_skb if partial data is copied so that the following sendmsg() will resume from the skb. However, we cannot know how many bytes were copied when we get the error. Thus, we could mess up the MSG_MORE queue. When kcm_sendmsg() fails for SOCK_DGRAM, we should purge the queue as we do so for UDP by udp_flush_pending_frames(). Even without this change, when the error occurred, the following sendmsg() resumed from a wrong skb and the queue was messed up. However, we have yet to get such a report, and only syzkaller stumbled on it. So, this can be changed safely. Note this does not change SOCK_SEQPACKET behaviour.
A memory leak vulnerability has been identified in the Linux kernel's KCM (Kernel Connection Multiplexor) module, specifically within the `kcm_sendmsg()` function for SOCK_DGRAM sockets. This issue arises because the function does not properly manage the MSG_MORE queue when an error occurs, leading to potential data transmission problems. The vulnerability was discovered by syzkaller, a fuzzing tool, which found that the error handling for SOCK_DGRAM was inadequate. Although this issue has not been widely reported, it can be safely addressed by modifying the error handling process to properly flush the pending message queue, similar to how it is managed for UDP sockets.
Users can apply the latest patches available in the Linux kernel stable tree to address this vulnerability. Instructions for downloading the patched version can be found in the Linux kernel Git repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1ce8362b4ac6b8e65fd04a22ea37ec776ee1ec5b | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/21b467735b0888a8daa048f83d3b9b50fdab71ce | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/2e18493c421428a936946c452461b8e979088f17 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/55d2e7c1ab8eaa7b62575b8a4194132795d1f9fc | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/992b2ac783aad360b98ed9d4686e86176a20f6f1 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/a22730b1b4bf437c6bbfdeff5feddf54be4aeada | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/d4b8f380b0a041ee6a84fdac14127d8fe1dcad7b | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/e5b28ce127a690f3acc49a6a342e6c9442c9edd6 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 9, 2025 | New CVE Received | kernel.org |
Volerion