FKIE_CVE-2026-99950

Vulnerability from fkie_nvd - Published: 2026-11-30 14:20 - Updated: 2026-12-01 06:17
Summary
In the Linux kernel, the following vulnerability has been resolved: ucount: take the rlimit reference before checking the limit inc_rlimit_get_ucounts() takes the reference that pins a ucounts level while its rlimit count is non-zero only in the walk whose increment is the 0 -> 1 transition, and only after that walk passed the limit check. A walk that raises the count from zero and then fails the limit backs out without the reference, while a concurrent walk that raised it past one keeps its increment and never takes one either: CPU0 (obeys the limit) CPU1 (overrides it) new = add_return(1) -> 1 new = add_return(1) -> 2 new != 1, no get_ucounts() new > max -> dec_unwind sub_return(1) -> 1 (no put) The count is 1 with no reference held. When CPU1 drops its charge, dec_rlimit_put_ucounts() takes the count to 0 and puts a reference nobody took, which frees the live struct ucounts, and the user_namespace it pins, with kfree_rcu(). The mirror interleaving leaks the reference instead. An unprivileged user reaches this on a kernel with CONFIG_USER_NS=y: in a user namespace with RLIMIT_SIGPENDING 0, one process taking synchronous SIGSEGVs (forced, so override_rlimit is set) races a second process in the same namespace and uid that queues real-time signals, which obey the limit. The two hold different sighand->siglock but charge the same per-namespace SIGPENDING ucounts. Unpatched, with rcuref debugging: rcuref - imbalanced put() WARNING: lib/rcuref.c:266 at rcuref_put_slowpath+0xf4/0x120 put_ucounts+0x5a/0x180 do_dec_rlimit_put_ucounts+0x70/0x90 __sigqueue_free+0x33/0xc0 get_signal+0x56f/0xd20 arch_do_signal_or_restart+0x87/0x380 irqentry_exit+0x243/0x650 asm_exc_page_fault+0x26/0x30 Take the reference on the 0 -> 1 transition before the limit is checked, so the walk that raises the count from zero owns that level's reference even when its request is rejected, and unwind a rejected level through do_dec_rlimit_put_ucounts(), which releases the reference when the count returns to 0. The get_ucounts() failure path is unchanged. With the patch the same interleaving, forced some 80000 times in a KASAN build, produces no warning and no KASAN report.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "kernel/ucount.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "7c9610bdd63f8f5dce3f18d83e63a2fd9e2f1b0f",
              "status": "affected",
              "version": "15bc01effefe97757ef02ca09e9d1b927ab22725",
              "versionType": "git"
            },
            {
              "lessThan": "c8124930acec2dda2b157982aa245ca2d2f5474b",
              "status": "affected",
              "version": "15bc01effefe97757ef02ca09e9d1b927ab22725",
              "versionType": "git"
            },
            {
              "lessThan": "20fef6cd188b1f584e98a607a78166b3ff745a69",
              "status": "affected",
              "version": "15bc01effefe97757ef02ca09e9d1b927ab22725",
              "versionType": "git"
            },
            {
              "lessThan": "b505e2bf49547930fa89f7ffeaed7ccb6737a93b",
              "status": "affected",
              "version": "15bc01effefe97757ef02ca09e9d1b927ab22725",
              "versionType": "git"
            },
            {
              "lessThan": "4429d405124e6199092f029afd5630c84019d6f9",
              "status": "affected",
              "version": "15bc01effefe97757ef02ca09e9d1b927ab22725",
              "versionType": "git"
            },
            {
              "lessThan": "98813eecf7555d35031ad8103c6a4eb14836e61c",
              "status": "affected",
              "version": "15bc01effefe97757ef02ca09e9d1b927ab22725",
              "versionType": "git"
            },
            {
              "lessThan": "b14fcabd34e02c40f72d3cd1e9bd4fd18df40ff1",
              "status": "affected",
              "version": "15bc01effefe97757ef02ca09e9d1b927ab22725",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "e8735e2e306f1c9c8b3a4b9218a349f7d96e3df6",
              "versionType": "git"
            },
            {
              "lessThan": "5.15",
              "status": "affected",
              "version": "5.14.15",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "kernel/ucount.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.15"
            },
            {
              "lessThan": "5.15",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.193",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.117",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.63",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "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\nucount: take the rlimit reference before checking the limit\n\ninc_rlimit_get_ucounts() takes the reference that pins a ucounts level\nwhile its rlimit count is non-zero only in the walk whose increment is\nthe 0 -\u003e 1 transition, and only after that walk passed the limit check.\nA walk that raises the count from zero and then fails the limit backs\nout without the reference, while a concurrent walk that raised it past\none keeps its increment and never takes one either:\n\n  CPU0 (obeys the limit)              CPU1 (overrides it)\n  new = add_return(1) -\u003e 1\n                                      new = add_return(1) -\u003e 2\n                                      new != 1, no get_ucounts()\n  new \u003e max -\u003e dec_unwind\n  sub_return(1) -\u003e 1   (no put)\n\nThe count is 1 with no reference held. When CPU1 drops its charge,\ndec_rlimit_put_ucounts() takes the count to 0 and puts a reference\nnobody took, which frees the live struct ucounts, and the user_namespace\nit pins, with kfree_rcu(). The mirror interleaving leaks the reference\ninstead.\n\nAn unprivileged user reaches this on a kernel with CONFIG_USER_NS=y: in\na user namespace with RLIMIT_SIGPENDING 0, one process taking\nsynchronous SIGSEGVs (forced, so override_rlimit is set) races a second\nprocess in the same namespace and uid that queues real-time signals,\nwhich obey the limit. The two hold different sighand-\u003esiglock but charge\nthe same per-namespace SIGPENDING ucounts. Unpatched, with rcuref\ndebugging:\n\n  rcuref - imbalanced put()\n  WARNING: lib/rcuref.c:266 at rcuref_put_slowpath+0xf4/0x120\n   put_ucounts+0x5a/0x180\n   do_dec_rlimit_put_ucounts+0x70/0x90\n   __sigqueue_free+0x33/0xc0\n   get_signal+0x56f/0xd20\n   arch_do_signal_or_restart+0x87/0x380\n   irqentry_exit+0x243/0x650\n   asm_exc_page_fault+0x26/0x30\n\nTake the reference on the 0 -\u003e 1 transition before the limit is checked,\nso the walk that raises the count from zero owns that level\u0027s reference\neven when its request is rejected, and unwind a rejected level through\ndo_dec_rlimit_put_ucounts(), which releases the reference when the count\nreturns to 0. The get_ucounts() failure path is unchanged. With the\npatch the same interleaving, forced some 80000 times in a KASAN build,\nproduces no warning and no KASAN report."
    }
  ],
  "id": "CVE-2026-99950",
  "lastModified": "2026-12-01T06:17:58.427",
  "metrics": {
    "cvssMetricV31": [
      {
        "cvssData": {
          "attackComplexity": "LOW",
          "attackVector": "LOCAL",
          "availabilityImpact": "HIGH",
          "baseScore": 7.8,
          "baseSeverity": "HIGH",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "privilegesRequired": "LOW",
          "scope": "UNCHANGED",
          "userInteraction": "NONE",
          "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "version": "3.1"
        },
        "exploitabilityScore": 1.8,
        "impactScore": 5.9,
        "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "type": "Secondary"
      }
    ]
  },
  "published": "2026-11-30T14:20:32.233",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/20fef6cd188b1f584e98a607a78166b3ff745a69"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/4429d405124e6199092f029afd5630c84019d6f9"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/7c9610bdd63f8f5dce3f18d83e63a2fd9e2f1b0f"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/98813eecf7555d35031ad8103c6a4eb14836e61c"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/b14fcabd34e02c40f72d3cd1e9bd4fd18df40ff1"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/b505e2bf49547930fa89f7ffeaed7ccb6737a93b"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/c8124930acec2dda2b157982aa245ca2d2f5474b"
    }
  ],
  "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…

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.