Bug 2588731 (CVE-2026-142439) - CVE-2026-142439 io.netty/netty-transport-classes-io_uring: Netty: IoUringBufferRing.nextBid() predicts wrong buffer id under RECVSEND_BUNDLE
Summary: CVE-2026-142439 io.netty/netty-transport-classes-io_uring: Netty: IoUringBuff...
Keywords:
Status: NEW
Alias: CVE-2026-142439
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-12-02 16:49 UTC by OSIDB Bzimport
Modified: 2026-12-02 17:25 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-12-02 16:49:47 UTC
Netty's io_uring transport can compute the wrong next buffer id when it walks the provided-buffer ring entries of a single IORING_RECVSEND_BUNDLE completion. IoUringBufferRing.nextBid masks the incremented id with allocatedBuffers - 1. That is only correct if allocatedBuffers is a power of two and has not changed since the kernel consumed the entries. It breaks in two cases: the ring has a non-power-of-two size because batchSize is smaller than half of ringSize, so it grows in non-power-of-two steps, or the ring expands while a bundle is being processed, which changes allocatedBuffers between the buffer release and the nextBid call.

A remote peer that sends data in a pattern producing bundle completions can trigger the condition. Netty then reads the wrong ring slot, which can deliver wrong or foreign data from a buffer still posted for other reads to the pipeline. The buffer the kernel actually filled is never delivered and its id is never recycled, causing a buffer leak or ring stall. A ring entry can also be left pointing at a buffer Netty has already released, so a later kernel write could land in released memory, which is a possible use-after-free.

Only users of netty-transport-classes-io_uring on Linux that use a provided buffer ring (IoUringBufferRingConfig) and have explicitly enabled RECVSEND_BUNDLE are affected. This option is disabled by default (io.netty.iouring.recvsendBundleEnabled=false). Versions 4.2.0.Final through 4.2.18.Final are affected, and the issue is fixed in 4.2.19.Final.

Affected versions: >=4.2.0.Final, <=4.2.18.Final
Patched versions: 4.2.19.Final
CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N (5.3)
CWE: CWE-416, CWE-682
Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-x2j7-6j3j-5vwj
CVE requested by the Netty Project via PSIRTSUPT-32166.


Note You need to log in before you can comment on or make changes to this bug.