Netty: Unix-socket fd receive leaks descriptors when peer sends two at once
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure, Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Partial Red Hat: 19 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-200 and CWE-772.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| netty | netty | 4.2.0.Final to before 4.2.15.Final; before 4.1.135.Final | 4.2.15.Final, 4.1.135.Final | Patch available | CNA |
| — | io.netty:netty-transport-native-epoll (Maven) | 4.2.0.Final to before 4.2.15.Final | 4.2.15.Final | Patch available | GHSA-w573-9ffj-6ff9 |
| — | io.netty:netty-transport-native-kqueue (Maven) | 4.2.0.Final to before 4.2.15.Final | 4.2.15.Final | Patch available | GHSA-w573-9ffj-6ff9 |
| — | io.netty:netty-transport-native-kqueue (Maven) | before 4.1.135.Final | 4.1.135.Final | Patch available | GHSA-w573-9ffj-6ff9 |
| — | io.netty:netty-transport-native-epoll (Maven) | before 4.1.135.Final | 4.1.135.Final | Patch available | GHSA-w573-9ffj-6ff9 |
- netty Vendornetty Affected 4.2.0.Final to before 4.2.15.Final; before 4.1.135.Final Fixed in 4.2.15.Final, 4.1.135.Final Patch available CNA
- io.netty:netty-transport-native-epoll (Maven) Vendor— Affected 4.2.0.Final to before 4.2.15.Final Fixed in 4.2.15.Final Patch available GHSA-w573-9ffj-6ff9
- io.netty:netty-transport-native-kqueue (Maven) Vendor— Affected 4.2.0.Final to before 4.2.15.Final Fixed in 4.2.15.Final Patch available GHSA-w573-9ffj-6ff9
- io.netty:netty-transport-native-kqueue (Maven) Vendor— Affected before 4.1.135.Final Fixed in 4.1.135.Final Patch available GHSA-w573-9ffj-6ff9
- io.netty:netty-transport-native-epoll (Maven) Vendor— Affected before 4.1.135.Final Fixed in 4.1.135.Final Patch available GHSA-w573-9ffj-6ff9
Remediation
- Fix · CNA netty (netty) Fixed in 4.2.15.Final, 4.1.135.Final
- Fix · GHSA-w573-9ffj-6ff9 io.netty:netty-transport-native-epoll (Maven) Fixed in 4.2.15.Final Advisory →
- Fix · GHSA-w573-9ffj-6ff9 io.netty:netty-transport-native-kqueue (Maven) Fixed in 4.2.15.Final Advisory →
- Fix · GHSA-w573-9ffj-6ff9 io.netty:netty-transport-native-kqueue (Maven) Fixed in 4.1.135.Final Advisory →
- Fix · GHSA-w573-9ffj-6ff9 io.netty:netty-transport-native-epoll (Maven) Fixed in 4.1.135.Final Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Cryostat 4 | Affected | No fix yet: Fix deferred |
| Red Hat AMQ Broker 7 | Affected | No fix yet: Fix deferred |
| Red Hat AMQ Clients | Affected | No fix yet: Fix deferred |
| Red Hat Build of Keycloak | Affected | No fix yet: Fix deferred |
| Red Hat Data Grid 8 | Affected | No fix yet: Fix deferred |
| Red Hat Fuse 7 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform 7 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform 8 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | Affected | No fix yet: Fix deferred |
| Red Hat Offline Knowledge Portal | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Dev Spaces | Affected | No fix yet: Fix deferred |
| Red Hat Single Sign-On 7 | Affected | No fix yet: Fix deferred |
| Red Hat build of Apache Camel - HawtIO 4 | Affected | No fix yet: Fix deferred |
| Red Hat build of Apache Camel 4 for Quarkus 3 | Affected | No fix yet: Fix deferred |
| Red Hat build of Apache Camel for Spring Boot 4 | Affected | No fix yet: Fix deferred |
| Red Hat build of Debezium 3 | Affected | No fix yet: Fix deferred |
| streams for Apache Kafka 2 | Affected | No fix yet: Fix deferred |
| streams for Apache Kafka 3 | Affected | No fix yet: Fix deferred |
Not affected: 2 products
- Red Hat Enterprise Linux AI (RHEL AI) 3
- Red Hat Satellite 6
Timeline
- 2026-10-02 Threatist record created from CVE-2026-45536
- 2026-10-03 Alias added: GHSA-w573-9ffj-6ff9
References
More Netty vulnerabilities
- TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
- TI-2026-30861 Netty: HTTP/1.0 TE+CL Coexistence Bypasses Smuggling Sanitization CVSS 3.1CRITICAL 9.8
- TI-2026-30864 Netty: HttpClientCodec response desynchronization CVSS 3.1CRITICAL 9.1
- TI-2026-30859 Netty: DNS Codec Input Validation Bypass in Netty (Encoder + Decoder) CVSS 3.1CRITICAL 9.1
- TI-2026-40973 Netty: Missing CertificateID Validation in OCSP Response Allows Replay Attacks CVSS 3.1CRITICAL 9.1
- TI-2026-40972 Uncontrolled resource consumption in netty CVSS 3.1HIGH 7.5
Sources
- CVE-2026-45536 · CVE Program
- CVE-2026-45536 · NVD
- FIRST EPSS
- GHSA-w573-9ffj-6ff9 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-45536 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences