{"id":"CVE-2026-99801","aliases":["CVE-2026-99801"],"related":[],"kind":"vulnerability","state":"published","title":"io_uring/bpf-ops: clear bpf_ctx while submitting SQEs","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/bpf-ops: clear bpf_ctx while submitting SQEs\n\nbpf_io_uring_submit_sqes() calls io_submit_sqes() from inside the loop\nprogram, with current->bpf_ctx set, and requests issued inline run with\nit set too. The socket code uses has_current_bpf_ctx() to recognize\ncalls from bpf_setsockopt() and friends, where the caller holds the\nsocket lock and has already been vetted, and skips both.\n\nSo a SOCKET_URING_OP_SETSOCKOPT from the SQ passes sockopt_capable()\nwithout the capability, and runs without lock_sock(). A task with no\ncapability can set SO_MARK, IP_TRANSPARENT or TCP_REPAIR, and two\nthreads changing IP_OPTIONS on one socket, one through the ring, double\nfree in no time. SOCK_DESTROY via IORING_OP_SENDMSG ends up in\ntcp_abort() without the lock the same way.\n\nClear the run context around io_submit_sqes(). The SQEs come from\nuserspace and must be issued like those of any other ring. They still\nrun inside the program's RCU tasks trace read section, so a request\nthat sleeps there holds up that grace period, but other request types\ndo that already.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/bpf-ops: clear bpf_ctx while submitting SQEs\n\nbpf_io_uring_submit_sqes() calls io_submit_sqes() from inside the loop\nprogram, with current->bpf_ctx set, and requests issued inline run with\nit set too. The socket code uses has_current_bpf_ctx() to recognize\ncalls from bpf_setsockopt() and friends, where the caller holds the\nsocket lock and has already been vetted, and skips both.\n\nSo a SOCKET_URING_OP_SETSOCKOPT from the SQ passes sockopt_capable()\nwithout the capability, and runs without lock_sock(). A task with no\ncapability can set SO_MARK, IP_TRANSPARENT or TCP_REPAIR, and two\nthreads changing IP_OPTIONS on one socket, one through the ring, double\nfree in no time. SOCK_DESTROY via IORING_OP_SENDMSG ends up in\ntcp_abort() without the lock the same way.\n\nClear the run context around io_submit_sqes(). The SQEs come from\nuserspace and must be issued like those of any other ring. They still\nrun inside the program's RCU tasks trace read section, so a request\nthat sleeps there holds up that grace period, but other request types\ndo that already.","source":"cvelist"}],"published":"2026-11-20T07:02:23.422Z","modified":"2026-11-20T08:18:37.753Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"890819248a8616558fe12e6c06c918ee1c3a2bc6","fixed":"521861b17a107875c884df9474e7746617f256d5","status":"affected"},{"type":"git","introduced":"890819248a8616558fe12e6c06c918ee1c3a2bc6","fixed":"8543a39f03db8816a2d80d0c92c132a19f2afb48","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.1","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/521861b17a107875c884df9474e7746617f256d5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8543a39f03db8816a2d80d0c92c132a19f2afb48","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99801","url":"https://www.cve.org/CVERecord?id=CVE-2026-99801","licence":"CVE Terms of Use","modified":"2026-11-20T07:02:23.422Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99801","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99801","licence":"Public domain","modified":"2026-11-20T08:18:37.753Z"}],"updatedAt":"2026-11-25T22:59:52.369Z","epss":{"score":0.00274,"percentile":0.21205,"date":"2026-12-01T12:00:22.000Z"}}