Linux kernel io_uring SOCK_TYPE_MASK bypass (cBPF)
CVE-2026-99803 Published on November 20, 2026

io_uring/net: mask socket type with SOCK_TYPE_MASK in io_socket_bpf_populate()
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.

NVD


Products Associated with CVE-2026-99803

Want to know whenever a new CVE is published for Linux Kernel? stack.watch will email you.

Affected Versions

Linux: Linux:

Exploit Probability

EPSS
0.32%
Percentile
25.45%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.