{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "15bc01effefe97757ef02ca09e9d1b927ab22725"
            },
            {
              "fixed": "64b45e9ef33b037a66b3ffafeb8909c00272b4a1"
            },
            {
              "fixed": "f43528c980b17aef3ee03368afe30e50ec47e2f6"
            },
            {
              "fixed": "41e644f89e556db08b535108e27dcc62859da443"
            },
            {
              "fixed": "a81dc6acbdbe145b7e5776fd317002a7cfbd769f"
            },
            {
              "fixed": "cb10fa39723fdfd1b7a7c1e6c33bec5ab98cf1d3"
            },
            {
              "fixed": "0aa5576a9836d68e4e6fa92d5bf6b95bad1fd697"
            },
            {
              "fixed": "38bf603d1ea5d5a65a9cb277df75327ffec01ff1"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "e8735e2e306f1c9c8b3a4b9218a349f7d96e3df6"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.14.15"
            },
            {
              "fixed": "5.15"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.15.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.119"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139089.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nucount: read the parent ucounts before dropping the rlimit count\n\ndo_dec_rlimit_put_ucounts() drops its share of iter-\u003erlimit[type] and\nonly then loads iter-\u003ens-\u003eucounts. If the decrement leaves the count\nnon-zero, a concurrent caller can take it to zero and put the last\nreference, which frees the ucounts and possibly its user namespace with\nkfree_rcu(). An exiting task frees its pending signals without siglock\nor any RCU read-side section, so when it is preempted between the\ndecrement and the load for a grace period it reads freed memory and\nthen decrements a counter through the pointer it found there.\n\nA pending signal holds no reference on its ucounts: the reference is\ntaken by whoever moves the count from 0 to 1 and dropped by whoever\nmoves it back to 0, so the caller's share of the count is all that\nkeeps iter alive, and only until it is dropped.\n\nLoad the parent first; it stays pinned by the caller's share of its\nown count.",
  "id": "CVE-2026-139089",
  "modified": "2026-11-30T14:45:17.878567820Z",
  "published": "2026-11-30T13:31:28.611Z",
  "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/0aa5576a9836d68e4e6fa92d5bf6b95bad1fd697"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/38bf603d1ea5d5a65a9cb277df75327ffec01ff1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/41e644f89e556db08b535108e27dcc62859da443"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/64b45e9ef33b037a66b3ffafeb8909c00272b4a1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a81dc6acbdbe145b7e5776fd317002a7cfbd769f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cb10fa39723fdfd1b7a7c1e6c33bec5ab98cf1d3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f43528c980b17aef3ee03368afe30e50ec47e2f6"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139089.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139089"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ucount: read the parent ucounts before dropping the rlimit count"
}