Bug 2577836 (CVE-2026-99803) - CVE-2026-99803 kernel: kernel: Security filter bypass via unmasked socket flags in io_uring
Summary: CVE-2026-99803 kernel: kernel: Security filter bypass via unmasked socket fla...
Keywords:
Status: NEW
Alias: CVE-2026-99803
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-20 07:21 UTC by OSIDB Bzimport
Modified: 2026-11-20 12:41 UTC (History)
17 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-20 07:21:36 UTC
In the Linux kernel, the following vulnerability has been resolved:

io_uring/net: mask socket type with SOCK_TYPE_MASK in io_socket_bpf_populate()

When an IORING_OP_SOCKET request is prepared in io_socket_prep(),
sock->type retains creation flags such as SOCK_CLOEXEC and SOCK_NONBLOCK
until __sys_socket_file() masks them off with SOCK_TYPE_MASK during
execution.

However, io_socket_bpf_populate() copies sock->type into
bctx->socket.type without masking off ~SOCK_TYPE_MASK. As a result, a
cBPF filter inspecting bctx->socket.type against socket types such as
SOCK_DGRAM or SOCK_STREAM can be bypassed by ORing SOCK_CLOEXEC or
SOCK_NONBLOCK into the socket type.

Mask sock->type with SOCK_TYPE_MASK when populating bctx->socket.type.


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