{"id":"CVE-2026-45536","published":"2026-06-12T14:12:48Z","modified":"2026-06-12T15:05:36Z","title":"Netty: Unix-socket fd receive leaks descriptors when peer sends two at once","vendor":"netty","product":"netty","tier":"tail","description":{"text":"Netty is a network application framework for development of protocol servers and clients. Prior to versions 4.1.135.Final and 4.2.15.Final, netty_unix_socket_recvFd sets msg_control to `char control[CMSG_SPACE(sizeof(int))]` (line 940) — 24 bytes on 64-bit Linux. A peer-sent SCM_RIGHTS cmsg carrying two ints has cmsg_len = CMSG_LEN(8) = 24, which fits exactly with no MSG_CTRUNC, so the kernel installs both fds in the receiving process. The subsequent check `cmsg->cmsg_len == CMSG_LEN(sizeof(int))` (line 972, expected 20) fails, the branch that would read the fd is skipped, and neither installed fd is closed. The for(;;) loop calls recvmsg again (non-blocking → EAGAIN → Java maps to 0 → read loop exits normally), leaving two leaked fds per message. There is no MSG_CTRUNC handling. Reachable via Epoll/KQueue DomainSocketChannel when the application opts into DomainSocketReadMode.FILE_DESCRIPTORS (non-default). Versions 4.1.135.Final and 4.2.15.Final patch the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00136,"percentile":0.03091,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-772","name":"Missing Release of Resource after Effective Lifetime"}],"references":[{"url":"https://github.com/netty/netty/security/advisories/GHSA-w573-9ffj-6ff9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/netty/netty/releases/tag/netty-4.1.135.Final","tags":["x_refsource_MISC"]},{"url":"https://github.com/netty/netty/releases/tag/netty-4.2.15.Final","tags":["x_refsource_MISC"]}],"priority":{"score":3.4,"factors":[{"name":"EPSS percentile","points":0.62},{"name":"CVSS severity","points":2.8}]},"vendorSlug":"netty","affectedVersions":[{"vendor":"netty","product":"netty","versions":[">= 4.2.0.Final, < 4.2.15.Final","< 4.1.135.Final"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-12T15:05:26.043862Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"io.netty:netty-transport-native-epoll","vulnerableRanges":[">=4.2.0.Final, <4.2.15.Final","<4.1.135.Final"],"patched":["4.2.15.Final","4.1.135.Final"],"from":["GHSA-w573-9ffj-6ff9"],"provenance":"source"},{"ecosystem":"Maven","package":"io.netty:netty-transport-native-kqueue","vulnerableRanges":[">=4.2.0.Final, <4.2.15.Final","<4.1.135.Final"],"patched":["4.2.15.Final","4.1.135.Final"],"from":["GHSA-w573-9ffj-6ff9"],"provenance":"source"}],"summary":{"text":"Netty's Unix-socket file-descriptor receive path (netty_unix_socket_recvFd, used by DomainSocketChannel when an application enables DomainSocketReadMode.FILE_DESCRIPTORS) sizes its control buffer for a single descriptor, so a peer that sends two descriptors in one message causes both to be installed in the receiving process and never closed. An attacker who can reach the Unix domain socket with the non-default file-descriptor read mode enabled can cause descriptors to leak with each message sent.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:47Z"},"euvd":{"id":"EUVD-2026-36439","exploited":false,"provenance":"source"}}