CVE-2026-45536: Netty: Unix-socket fd receive leaks descriptors when peer sends two at once

Published Jun 8, 2026
·
Updated

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, nettyunixsocketrecvFd sets msgcontrol to char control[CMSGSPACE(sizeof(int))] (line 940) — 24 bytes on 64-bit Linux. A peer-sent SCMRIGHTS cmsg carrying two ints has cmsglen = CMSGLEN(8) = 24, which fits exactly with no MSGCTRUNC, so the kernel installs both fds in the receiving process. The subsequent check cmsg->cmsglen == CMSGLEN(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 MSGCTRUNC handling. Reachable via Epoll/KQueue DomainSocketChannel when the application opts into DomainSocketReadMode.FILEDESCRIPTORS (non-default). Versions 4.1.135.Final and 4.2.15.Final patch the issue.

Other sources

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, nettyunixsocketrecvFd sets msgcontrol to char control[CMSGSPACE(sizeof(int))] (line 940) — 24 bytes on 64-bit Linux. A peer-sent SCMRIGHTS cmsg carrying two ints has cmsglen = CMSGLEN(8) = 24, which fits exactly with no MSGCTRUNC, so the kernel installs both fds in the receiving process. The subsequent check cmsg-cmsglen == CMSGLEN(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 MSGCTRUNC handling. Reachable via Epoll/KQueue DomainSocketChannel when the application opts into DomainSocketReadMode.FILEDESCRIPTORS (non-default). Versions 4.1.135.Final and 4.2.15.Final patch the issue.

IBM

Affected Software

7 affected componentsFixes available
maven/io.netty:netty-transport-native-epoll<=4.1.134.Final
4.1.135.Final
maven/io.netty:netty-transport-native-kqueue<=4.1.134.Final
4.1.135.Final
maven/io.netty:netty-transport-native-kqueue>=4.2.0.Final<=4.2.14.Final
4.2.15.Final
maven/io.netty:netty-transport-native-epoll>=4.2.0.Final<=4.2.14.Final
4.2.15.Final
Netty Netty<4.1.135
Netty Netty>=4.2.0<4.2.15
IBM Netezza Software<=11.3.0.3-IF2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/io.netty:netty-transport-native-epoll to a version that resolves this vulnerability.

    Fixed in 4.1.135.Final
  2. Upgrade

    Upgrade maven/io.netty:netty-transport-native-kqueue to a version that resolves this vulnerability.

    Fixed in 4.1.135.Final
  3. Upgrade

    Upgrade maven/io.netty:netty-transport-native-kqueue to a version that resolves this vulnerability.

    Fixed in 4.2.15.Final
  4. Upgrade

    Upgrade maven/io.netty:netty-transport-native-epoll to a version that resolves this vulnerability.

    Fixed in 4.2.15.Final
  5. Upgrade

    Upgrade netty to a version that resolves this vulnerability.

    Fixed in 4.1.135.Final
  6. Upgrade

    Upgrade netty to a version that resolves this vulnerability.

    Fixed in 4.2.15.Final
  7. Compensating control

    If using Epoll/KQueue DomainSocketChannel with DomainSocketReadMode.FILE_DESCRIPTORS, avoid receiving file descriptors over Unix sockets until upgrading; otherwise each recvmsg can leak fds when the peer sends two at once.

Event History

Jun 8, 2026
Advisory Published
via GitHub·11:01 PM
Data Sourced
via GitHub·11:01 PM
DescriptionSeverityWeaknessAffected Software
Jun 12, 2026
CVE Published
via MITRE·02:12 PM
Data Sourced
via MITRE·02:12 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·03:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeaknessAffected Software
Aug 20, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-45536?

CVE-2026-45536 has a medium severity rating of 4.

2

How do I fix CVE-2026-45536?

To fix CVE-2026-45536, update to the latest version of the Netty transport libraries, specifically netty-transport-native-epoll or netty-transport-native-kqueue.

3

What type of vulnerability is CVE-2026-45536?

CVE-2026-45536 is categorized as an information leakage vulnerability (CWE-200).

4

What affected software versions are associated with CVE-2026-45536?

The affected software versions for CVE-2026-45536 include netty-transport-native-epoll and netty-transport-native-kqueue.

5

What is the impact of CVE-2026-45536?

The impact of CVE-2026-45536 is that it can lead to an information leak due to improper handling of message control data.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203