CVE-2026-99803

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

State
Published
Severity
Not scored
Published
Nov 20, 2026
Updated
Nov 20, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • cff1c26b4223820431129696b45525e5928e6409 to before cf635f0def46818d43f40c816b6ba0ff5f3f1618Affected
  • cff1c26b4223820431129696b45525e5928e6409 to before e66907c3ba229399ecfb4ef032b95a4a071c894eAffected
LinuxLinux
  • 7.0Affected
  • before 7.0Not affected
  • 7.3.2 through 7.3.*Not affected
  • 7.4-rc1 and laterNot affected

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.