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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.0
- **CVSS:** 4.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-200, CWE-772
- **Aliases:** GHSA-w573-9ffj-6ff9
- **Published:** 2026-06-08T23:01:33.000Z
- **Modified:** 2026-09-10T03:50:12.439Z

## Who should check

- Projects that depend on Maven package io.netty:netty-transport-native-epoll (\>= 4.2.0.Final, \< 4.2.15.Final)
- Projects that depend on Maven package io.netty:netty-transport-native-kqueue (\>= 4.2.0.Final, \< 4.2.15.Final)
- Anyone running netty \>= 4.2.0.Final, \< 4.2.15.Final; \< 4.1.135.Final

## Description

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.

## Affected and fixed versions

- Maven `io.netty:netty-transport-native-epoll`: affected \>= 4.2.0.Final, \< 4.2.15.Final; fixed 4.2.15.Final, 4.1.135.Final (osv)
- Maven `io.netty:netty-transport-native-kqueue`: affected \>= 4.2.0.Final, \< 4.2.15.Final; fixed 4.2.15.Final, 4.1.135.Final (osv)
- netty: \>= 4.2.0.Final, \< 4.2.15.Final; \< 4.1.135.Final (cvelist)

## Mitigation

- Upgrade io.netty:netty-transport-native-epoll to one of 4.2.15.Final, 4.1.135.Final (or later in the same release line).
- Upgrade io.netty:netty-transport-native-kqueue to one of 4.2.15.Final, 4.1.135.Final (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-45536. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-45536.md
Affected: io.netty:netty-transport-native-epoll >= 4.2.0.Final, < 4.2.15.Final; io.netty:netty-transport-native-kqueue >= 4.2.0.Final, < 4.2.15.Final
Fixed in: 4.2.15.Final, 4.1.135.Final

Steps:
1. Search this machine and project for io.netty:netty-transport-native-epoll (Maven), io.netty:netty-transport-native-kqueue (Maven), netty: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-45536 being exploited?

There is no confirmed exploitation: CVE-2026-45536 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-45536?

Medium: CVSS 4.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-45536?

io.netty:netty-transport-native-epoll \>= 4.2.0.Final, \< 4.2.15.Final; io.netty:netty-transport-native-kqueue \>= 4.2.0.Final, \< 4.2.15.Final.

### Is there a fix for CVE-2026-45536?

Yes. Fixed in 4.2.15.Final, 4.1.135.Final. Upgrade io.netty:netty-transport-native-epoll to one of 4.2.15.Final, 4.1.135.Final (or later in the same release line). Upgrade io.netty:netty-transport-native-kqueue to one of 4.2.15.Final, 4.1.135.Final (or later in the same release line).

### How do I check if I'm affected by CVE-2026-45536?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/netty/netty/security/advisories/GHSA-w573-9ffj-6ff9>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-45536>
- other: <https://github.com/netty/netty/releases/tag/netty-4.1.135.Final>
- other: <https://github.com/netty/netty/releases/tag/netty-4.2.15.Final>
- other: <https://github.com/netty/netty>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-45536>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-w573-9ffj-6ff9> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-45536> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-45536>
