FKIE_CVE-2026-99801

Vulnerability from fkie_nvd - Published: 2026-11-20 08:18 - Updated: 2026-11-20 08:18
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved: io_uring/bpf-ops: clear bpf_ctx while submitting SQEs bpf_io_uring_submit_sqes() calls io_submit_sqes() from inside the loop program, with current->bpf_ctx set, and requests issued inline run with it set too. The socket code uses has_current_bpf_ctx() to recognize calls from bpf_setsockopt() and friends, where the caller holds the socket lock and has already been vetted, and skips both. So a SOCKET_URING_OP_SETSOCKOPT from the SQ passes sockopt_capable() without the capability, and runs without lock_sock(). A task with no capability can set SO_MARK, IP_TRANSPARENT or TCP_REPAIR, and two threads changing IP_OPTIONS on one socket, one through the ring, double free in no time. SOCK_DESTROY via IORING_OP_SENDMSG ends up in tcp_abort() without the lock the same way. Clear the run context around io_submit_sqes(). The SQEs come from userspace and must be issued like those of any other ring. They still run inside the program's RCU tasks trace read section, so a request that sleeps there holds up that grace period, but other request types do that already.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "io_uring/bpf-ops.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "521861b17a107875c884df9474e7746617f256d5",
              "status": "affected",
              "version": "890819248a8616558fe12e6c06c918ee1c3a2bc6",
              "versionType": "git"
            },
            {
              "lessThan": "8543a39f03db8816a2d80d0c92c132a19f2afb48",
              "status": "affected",
              "version": "890819248a8616558fe12e6c06c918ee1c3a2bc6",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "io_uring/bpf-ops.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "7.1"
            },
            {
              "lessThan": "7.1",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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-\u003ebpf_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\u0027s RCU tasks trace read section, so a request\nthat sleeps there holds up that grace period, but other request types\ndo that already."
    }
  ],
  "id": "CVE-2026-99801",
  "lastModified": "2026-11-20T08:18:37.753",
  "metrics": {},
  "published": "2026-11-20T08:18:37.753",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/521861b17a107875c884df9474e7746617f256d5"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/8543a39f03db8816a2d80d0c92c132a19f2afb48"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…