CVE-2026-139304 (GCVE-0-2026-139304)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:33 – Updated: 2026-11-30 13:33
VLAI
Title
bpf: Check the maps that sleepable callbacks use
Summary
In the Linux kernel, the following vulnerability has been resolved: bpf: Check the maps that sleepable callbacks use Sleepable programs can only use the kinds of map that do without an RCU read side critical section. check_map_prog_compatibility() sees to that when a map is bound to the program, and asks whether the program is sleepable. That misses the bpf_wq or bpf_task_work callback of a program that is not, which runs sleepable all the same, and it misses an inner map, which is not bound. The bpf_wq callback of a tc program that looks a key up in a sockhash gets as far as WARNING: net/core/sock_map.c:903 at __sock_hash_lookup_elem+0x18f/0x1e0 Ask the same question for the map that is handed to a helper in sleepable context, unless the RCU read lock is held: by bpf_rcu_read_lock(), or by the helper that runs the callback, as bpf_for_each_map_elem() does for a hash map. Programs that take the lock go on working. Disabled preemption or interrupts are not enough, since the maps ask for rcu_read_lock_held(). The other parts of the program may use such a map as before. A global function that is called with preemption or interrupts disabled is verified for the non-sleepable context, in which nothing is known of all that. Verify it for a context of its own: not sleepable, and without the RCU read lock. It differs in what maps can be used, and in nothing else. What is refused from now on runs into the warning above, or uses what the map frees behind a plain RCU grace period: an entry of a devmap, of a perf event array or of a cgroup array. A bloom filter does without RCU. Add it to the list, so that callbacks which use one go on loading. As a side effect sleepable programs can use bloom filters as well. A pointer to the value of a devmap which a program keeps beyond bpf_rcu_read_unlock() is not dealt with here.
Severity
No CVSS data available.
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 638e4b825d523bed7a55e776c153049fb7716466 , < 9f13a653c21d5efb99c44b7adc3fa9005b20c442 (git)
Affected: 638e4b825d523bed7a55e776c153049fb7716466 , < 3e6d7522af2cd1b8bf135ee7df6ca962986f44d6 (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.12
Unaffected: 0 , < 5.12 (semver)
Unaffected: 7.3.6 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "include/linux/bpf.h",
            "include/linux/bpf_verifier.h",
            "kernel/bpf/verifier.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "9f13a653c21d5efb99c44b7adc3fa9005b20c442",
              "status": "affected",
              "version": "638e4b825d523bed7a55e776c153049fb7716466",
              "versionType": "git"
            },
            {
              "lessThan": "3e6d7522af2cd1b8bf135ee7df6ca962986f44d6",
              "status": "affected",
              "version": "638e4b825d523bed7a55e776c153049fb7716466",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "include/linux/bpf.h",
            "include/linux/bpf_verifier.h",
            "kernel/bpf/verifier.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.12"
            },
            {
              "lessThan": "5.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.6",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Check the maps that sleepable callbacks use\n\nSleepable programs can only use the kinds of map that do without an RCU\nread side critical section.  check_map_prog_compatibility() sees to that\nwhen a map is bound to the program, and asks whether the program is\nsleepable.  That misses the bpf_wq or bpf_task_work callback of a program\nthat is not, which runs sleepable all the same, and it misses an inner\nmap, which is not bound.\n\nThe bpf_wq callback of a tc program that looks a key up in a sockhash\ngets as far as\n\n  WARNING: net/core/sock_map.c:903 at __sock_hash_lookup_elem+0x18f/0x1e0\n\nAsk the same question for the map that is handed to a helper in sleepable\ncontext, unless the RCU read lock is held: by bpf_rcu_read_lock(), or by\nthe helper that runs the callback, as bpf_for_each_map_elem() does for a\nhash map.  Programs that take the lock go on working.  Disabled preemption\nor interrupts are not enough, since the maps ask for rcu_read_lock_held().\nThe other parts of the program may use such a map as before.\n\nA global function that is called with preemption or interrupts disabled is\nverified for the non-sleepable context, in which nothing is known of all\nthat.  Verify it for a context of its own: not sleepable, and without the\nRCU read lock.  It differs in what maps can be used, and in nothing else.\n\nWhat is refused from now on runs into the warning above, or uses what the\nmap frees behind a plain RCU grace period: an entry of a devmap, of a perf\nevent array or of a cgroup array.\n\nA bloom filter does without RCU.  Add it to the list, so that callbacks\nwhich use one go on loading.  As a side effect sleepable programs can use\nbloom filters as well.\n\nA pointer to the value of a devmap which a program keeps beyond\nbpf_rcu_read_unlock() is not dealt with here."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-30T13:33:31.040Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/9f13a653c21d5efb99c44b7adc3fa9005b20c442"
        },
        {
          "url": "https://git.kernel.org/stable/c/3e6d7522af2cd1b8bf135ee7df6ca962986f44d6"
        }
      ],
      "title": "bpf: Check the maps that sleepable callbacks use",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-139304",
    "datePublished": "2026-11-30T13:33:31.040Z",
    "dateReserved": "2026-11-30T13:22:15.926Z",
    "dateUpdated": "2026-11-30T13:33:31.040Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-139304",
      "date": "2026-12-04",
      "epss": "0.0019",
      "percentile": "0.09047"
    },
    "microsoft_vex": {
      "current_release_date": "2026-12-02T01:02:28.000Z",
      "cve": "CVE-2026-139304",
      "id": "msrc_CVE-2026-139304",
      "initial_release_date": "2026-12-01T01:20:14.000Z",
      "product_status:known_affected": "1",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "bpf: Check the maps that sleepable callbacks use",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-139304.json",
      "version": "2"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "include/linux/bpf.h",
                  "include/linux/bpf_verifier.h",
                  "kernel/bpf/verifier.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "9f13a653c21d5efb99c44b7adc3fa9005b20c442",
                    "status": "affected",
                    "version": "638e4b825d523bed7a55e776c153049fb7716466",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "3e6d7522af2cd1b8bf135ee7df6ca962986f44d6",
                    "status": "affected",
                    "version": "638e4b825d523bed7a55e776c153049fb7716466",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "include/linux/bpf.h",
                  "include/linux/bpf_verifier.h",
                  "kernel/bpf/verifier.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "5.12"
                  },
                  {
                    "lessThan": "5.12",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.6",
                    "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\nbpf: Check the maps that sleepable callbacks use\n\nSleepable programs can only use the kinds of map that do without an RCU\nread side critical section.  check_map_prog_compatibility() sees to that\nwhen a map is bound to the program, and asks whether the program is\nsleepable.  That misses the bpf_wq or bpf_task_work callback of a program\nthat is not, which runs sleepable all the same, and it misses an inner\nmap, which is not bound.\n\nThe bpf_wq callback of a tc program that looks a key up in a sockhash\ngets as far as\n\n  WARNING: net/core/sock_map.c:903 at __sock_hash_lookup_elem+0x18f/0x1e0\n\nAsk the same question for the map that is handed to a helper in sleepable\ncontext, unless the RCU read lock is held: by bpf_rcu_read_lock(), or by\nthe helper that runs the callback, as bpf_for_each_map_elem() does for a\nhash map.  Programs that take the lock go on working.  Disabled preemption\nor interrupts are not enough, since the maps ask for rcu_read_lock_held().\nThe other parts of the program may use such a map as before.\n\nA global function that is called with preemption or interrupts disabled is\nverified for the non-sleepable context, in which nothing is known of all\nthat.  Verify it for a context of its own: not sleepable, and without the\nRCU read lock.  It differs in what maps can be used, and in nothing else.\n\nWhat is refused from now on runs into the warning above, or uses what the\nmap frees behind a plain RCU grace period: an entry of a devmap, of a perf\nevent array or of a cgroup array.\n\nA bloom filter does without RCU.  Add it to the list, so that callbacks\nwhich use one go on loading.  As a side effect sleepable programs can use\nbloom filters as well.\n\nA pointer to the value of a devmap which a program keeps beyond\nbpf_rcu_read_unlock() is not dealt with here."
          }
        ],
        "id": "CVE-2026-139304",
        "lastModified": "2026-11-30T14:18:54.453",
        "metrics": {},
        "published": "2026-11-30T14:18:54.453",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/3e6d7522af2cd1b8bf135ee7df6ca962986f44d6"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/9f13a653c21d5efb99c44b7adc3fa9005b20c442"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-12-01T08:31:53+00:00",
      "cve": "CVE-2026-139304",
      "id": "CVE-2026-139304",
      "initial_release_date": "2026-11-30T13:33:31.040000+00:00",
      "product_status:known_affected": "238",
      "product_status:known_not_affected": "42",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of service via improper map checks in sleepable BPF callbacks",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-139304.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    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.