{"id":"CVE-2026-99803","summary":"io_uring/net: mask socket type with SOCK_TYPE_MASK in io_socket_bpf_populate()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/net: mask socket type with SOCK_TYPE_MASK in io_socket_bpf_populate()\n\nWhen an IORING_OP_SOCKET request is prepared in io_socket_prep(),\nsock-\u003etype retains creation flags such as SOCK_CLOEXEC and SOCK_NONBLOCK\nuntil __sys_socket_file() masks them off with SOCK_TYPE_MASK during\nexecution.\n\nHowever, io_socket_bpf_populate() copies sock-\u003etype into\nbctx-\u003esocket.type without masking off ~SOCK_TYPE_MASK. As a result, a\ncBPF filter inspecting bctx-\u003esocket.type against socket types such as\nSOCK_DGRAM or SOCK_STREAM can be bypassed by ORing SOCK_CLOEXEC or\nSOCK_NONBLOCK into the socket type.\n\nMask sock-\u003etype with SOCK_TYPE_MASK when populating bctx-\u003esocket.type.","modified":"2026-11-20T09:00:25.507886662Z","published":"2026-11-20T07:02:24.615Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99803.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cf635f0def46818d43f40c816b6ba0ff5f3f1618"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e66907c3ba229399ecfb4ef032b95a4a071c894e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99803.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99803"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"cff1c26b4223820431129696b45525e5928e6409"},{"fixed":"cf635f0def46818d43f40c816b6ba0ff5f3f1618"},{"fixed":"e66907c3ba229399ecfb4ef032b95a4a071c894e"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99803.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0.0"},{"fixed":"7.3.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99803.json"}}],"schema_version":"1.9.2"}