# GHSA-268P-9R42-7QP4: Lack of Rule-Type Check in sortAndFilter() Leads to IP Allow-List Bypass via Silently Erased REJECT Rules

- Database: GitHub
- Severity: CVSS 7.5 (High)
- Published: 2026-12-02
- Modified: 2026-12-02

## Tracked as

- [CVE-2026-142441](https://cve.now/CVE-2026-142441.md): Io.netty/netty-handler: netty: missing rule-type check in sortandfilter() allows ip allow-list bypass via erased reject rules

## Affected versions

- io.netty:netty-handler (Maven): through 4.1.138.Final
- io.netty:netty-handler (Maven): from 4.2.0.Final, through 4.2.18.Final

## Description

`IpSubnetFilter` in `io.netty:netty-handler` is Netty's CIDR-based IP access control handler. Operators configure it with a list of `IpSubnetFilterRule` entries of type `ACCEPT` or `REJECT`, and the handler admits or drops connections accordingly. The standard "allow 10/8 except 10.5/16" pattern — allowing a broad corporate CIDR but denying a quarantine VLAN — is the canonical use case.

`IpSubnetFilter.sortAndFilter()` de-duplicates the operator-supplied rule list by dropping any rule whose network address falls inside the previous rule's subnet — **without checking `ruleType()`**.

Beside this `AbstractRemoteAddressFilter.handleNewChannel()` removes itself from the pipeline **before** calling `accept()`. If `accept()` throws, the exception propagates to `DefaultChannelPipeline.onUnhandledInboundException which logs WARN and returns — the channel is never closed.

## References

- https://github.com/netty/netty/security/advisories/GHSA-268p-9r42-7qp4

Page: https://cve.now/GHSA-268P-9R42-7QP4

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
