Bug 2588733 (CVE-2026-142441)

Summary: CVE-2026-142441 io.netty/netty-handler: Netty: Missing rule-type check in sortAndFilter() allows IP allow-list bypass via erased REJECT rules
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: amctagga, ant, anujha, aoconnor, aschwart, asoldano, asyoung, aszczucz, bbaranow, bmaxwell, bniver, boliveir, bstansbe, ccranfor, cescoffi, chfoley, cmah, csuconic, dbruscin, dhanak, dlofthou, drichtar, drosa, dsimansk, ehelms, ewittman, flucifre, fmariani, fmongiar, gmalinko, gmeno, groman, gsmet, gtanzill, gtully, istudens, ivassile, iweiss, janstey, jbaesner, jbuscemi, jkrystof, jmartisk, jnethert, jpasqual, jpechane, jsherman, jturenov, juwatts, jwon, kaycoth, kingland, kvanderr, lblicha, manderse, mbenjamin, mcarlett, mhackett, mhulan, mnovotny, mosmerov, mposolda, msvehla, nipatil, nwallace, ogajduse, olubyans, osousa, ozzy, pantinor, pberan, pesilva, pjindal, pmackay, prichard, rchan, rgemmell, rgodfrey, rguimara, rkubis, rmartinc, rstancel, rstepani, sausingh, sbiarozk, sdawley, smallamp, sostapov, ssilvert, sthirugn, sthorger, swoodman, tbish, tcunning, thjenkin, tlavocat, tmielke, tzimanyi, varjain, vdosoudi, vereddy, vmuzikar, yfang, zhunting
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in netty-handler. When processing IP (Internet Protocol) access control rules, the filter improperly de-duplicates nested network ranges without checking whether a rule permits or blocks connections. This flaw allows a remote attacker to bypass access controls and gain unauthorized network access to protected services.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-12-02 16:49:51 UTC
IpSubnetFilter in netty-handler is Netty's CIDR-based IP access control handler, configured with a list of IpSubnetFilterRule entries of type ACCEPT or REJECT. Its sortAndFilter() method de-duplicates the supplied rules by dropping any rule whose network address falls inside the previous rule's subnet, and it does not check the rule type when doing so. A REJECT rule for a narrower subnet nested inside a broader ACCEPT rule, such as allowing 10.0.0.0/8 while denying 10.5.0.0/16, is therefore silently removed from the effective rule set.

As a result, connections from addresses the operator explicitly intended to block are admitted, because only the broader ACCEPT rule remains. The configuration looks correct to the operator, and no error or warning indicates that a rule was discarded. The impact is a bypass of IP-based access control, which can give unauthorized hosts network access to services the filter was meant to protect.

The advisory also notes a related fail-open behavior in AbstractRemoteAddressFilter. Its handleNewChannel() removes the handler from the pipeline before calling accept(). If accept() throws, the exception reaches DefaultChannelPipeline.onUnhandledInboundException, which only logs a warning, and the channel is never closed.

Affected are users of netty-handler who use IpSubnetFilter (or filters derived from AbstractRemoteAddressFilter) in versions up to and including 4.1.138.Final, and from 4.2.0.Final up to and including 4.2.18.Final. The issue is fixed in 4.1.139.Final and 4.2.19.Final.

Affected versions: <= 4.1.138.Final; >= 4.2.0.Final, <= 4.2.18.Final
Patched versions: 4.1.139.Final; 4.2.19.Final
CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (7.5)
CWE: CWE-284, CWE-1023
Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-268p-9r42-7qp4
CVE requested by the Netty Project via PSIRTSUPT-32166.