{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99950",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.448Z",
        "datePublished": "2026-11-30T13:18:33.897Z",
        "dateUpdated": "2026-11-30T13:18:33.897Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:18:33.897Z"
            },
            "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 -> 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) -> 1\n                                      new = add_return(1) -> 2\n                                      new != 1, no get_ucounts()\n  new > max -> dec_unwind\n  sub_return(1) -> 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->siglock 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 -> 1 transition before the limit is checked,\nso the walk that raises the count from zero owns that level's 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."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "kernel/ucount.c"
                    ],
                    "versions": [
                        {
                            "version": "15bc01effefe97757ef02ca09e9d1b927ab22725",
                            "lessThan": "7c9610bdd63f8f5dce3f18d83e63a2fd9e2f1b0f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "15bc01effefe97757ef02ca09e9d1b927ab22725",
                            "lessThan": "c8124930acec2dda2b157982aa245ca2d2f5474b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "15bc01effefe97757ef02ca09e9d1b927ab22725",
                            "lessThan": "20fef6cd188b1f584e98a607a78166b3ff745a69",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "15bc01effefe97757ef02ca09e9d1b927ab22725",
                            "lessThan": "b505e2bf49547930fa89f7ffeaed7ccb6737a93b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "15bc01effefe97757ef02ca09e9d1b927ab22725",
                            "lessThan": "4429d405124e6199092f029afd5630c84019d6f9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "15bc01effefe97757ef02ca09e9d1b927ab22725",
                            "lessThan": "98813eecf7555d35031ad8103c6a4eb14836e61c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "15bc01effefe97757ef02ca09e9d1b927ab22725",
                            "lessThan": "b14fcabd34e02c40f72d3cd1e9bd4fd18df40ff1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e8735e2e306f1c9c8b3a4b9218a349f7d96e3df6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5.14.15",
                            "lessThan": "5.15",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "kernel/ucount.c"
                    ],
                    "versions": [
                        {
                            "version": "5.15",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.15",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.63",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15",
                                    "versionEndExcluding": "7.4-rc1"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.14.15"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/7c9610bdd63f8f5dce3f18d83e63a2fd9e2f1b0f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c8124930acec2dda2b157982aa245ca2d2f5474b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/20fef6cd188b1f584e98a607a78166b3ff745a69"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b505e2bf49547930fa89f7ffeaed7ccb6737a93b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/4429d405124e6199092f029afd5630c84019d6f9"
                },
                {
                    "url": "https://git.kernel.org/stable/c/98813eecf7555d35031ad8103c6a4eb14836e61c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b14fcabd34e02c40f72d3cd1e9bd4fd18df40ff1"
                }
            ],
            "title": "ucount: take the rlimit reference before checking the limit",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}