CVE-2026-99803
io_uring/net: mask socket type with SOCK_TYPE_MASK in io_socket_bpf_populate()
- CVSS
- —
- EPSS
- 0.32% (p27)
- Published
- 2026-11-20
- Age
- 12d old
- Modified
- 2026-11-21
- Product
- Linux 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.
Fixed in
7.3.2 · cf635f0def46818d43f40c816b6ba0ff5f3f1618 · e66907c3ba229399ecfb4ef032b95a4a071c894e
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Linux | Kernel | >=7.0.0, <7.3.2 | 7.3.2 |
| vendor | Linux | >=cff1c26b4223820431129696b45525e5928e6409, <cf635f0def46818d43f40c816b6ba0ff5f3f1618 | cf635f0def46818d43f40c816b6ba0ff5f3f1618 |
| vendor | Linux | >=cff1c26b4223820431129696b45525e5928e6409, <e66907c3ba229399ecfb4ef032b95a4a071c894e | e66907c3ba229399ecfb4ef032b95a4a071c894e |
Sources
- NVD · first seen 12d ago · NVD terms of use
- OSV · first seen 11d ago · CC-BY 4.0
- CVE List · first seen 12d ago · CVE Terms of Use
References
- https://git.kernel.org/stable/c/cf635f0def46818d43f40c816b6ba0ff5f3f1618 other
- https://git.kernel.org/stable/c/e66907c3ba229399ecfb4ef032b95a4a071c894e other
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99803.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-99803 advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git package