# CVE-2026-99803: io_uring/net: mask socket type with SOCK_TYPE_MASK in io_socket_bpf_populate()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-11-20T07:02:24.615Z
- Modified: 2026-11-20T08:18:37.960Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from cff1c26b4223820431129696b45525e5928e6409 before cf635f0def46818d43f40c816b6ba0ff5f3f1618; from cff1c26b4223820431129696b45525e5928e6409 before e66907c3ba229399ecfb4ef032b95a4a071c894e; 7.0 (not affected: before 7.0; from 7.3.2 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/cf635f0def46818d43f40c816b6ba0ff5f3f1618>
- <https://git.kernel.org/stable/c/e66907c3ba229399ecfb4ef032b95a4a071c894e>

## Sources

- CVE List: [CVE-2026-99803](https://www.cve.org/CVERecord?id=CVE-2026-99803), CVE Terms of Use, modified 2026-11-20
- NVD: [CVE-2026-99803](https://nvd.nist.gov/vuln/detail/CVE-2026-99803), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-99803 · Whole record: https://cve.day/CVE-2026-99803.json · Rebuilt by cve.day 2026-11-25T22:59:52.370Z
