{"id":"CVE-2026-99843","aliases":[],"cve":{"records":[{"id":"CVE-2026-99843","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.437Z","published":"2026-11-30T13:17:34.423Z","modified":"2026-11-30T13:17:34.423Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-30T13:17:34.423Z"}],"references":[{"url":"https://git.kernel.org/stable/c/24705093eeb28c70f56ea509d9110e802435b1b8","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/a0da1ee51f1dfa7c3ddac48bdb04858264b56539","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/bf5ba73c9bdd5e872eb35e801e429a3b526f8f04","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.4-rc1"}]}]}]}],"prioritization":[]},"title":"userns: don't drop the exec securebits","titleSource":"Linux","descriptionSource":"Linux","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nuserns: don't drop the exec securebits\n\nSECBIT_EXEC_RESTRICT_FILE and SECBIT_EXEC_DENY_INTERACTIVE tell script\ninterpreters to only run what AT_EXECVE_CHECK allows and to refuse\ninteractive input. A service manager sets them together with their lock\nbits so that nothing below it can turn them off again.\n\nBut set_cred_user_ns() resets all securebits to SECUREBITS_DEFAULT. So\nany task that can create a user namespace sheds the locked exec bits\nwith a single unshare(CLONE_NEWUSER) and joining one with setns() does\nthe same. The lock is pointless if anyone who may create a user\nnamespace can drop it, and that is pretty much everyone.\n\nResetting the other bits is fine. They are about how capabilities are\ncomputed and a new user namespace starts out with a full set of\ncapabilities anyway. The exec bits grant nothing though. They are\nrestrictions a task placed on itself, just like no_new_privs which a\nuser namespace doesn't touch either. So keep them and their locks.\n\nReproducer:\n\n  // SPDX-License-Identifier: GPL-2.0\n  /* Lock the exec securebits, then create a user namespace and look at them again. */\n  #define _GNU_SOURCE\n  #include <sched.h>\n  #include <stdio.h>\n  #include <sys/prctl.h>\n\n  #define SECBIT_EXEC_RESTRICT_FILE\t\t(1 << 8)\n  #define SECBIT_EXEC_RESTRICT_FILE_LOCKED\t(1 << 9)\n  #define SECBIT_EXEC_DENY_INTERACTIVE\t\t(1 << 10)\n  #define SECBIT_EXEC_DENY_INTERACTIVE_LOCKED\t(1 << 11)\n\n  int main(void)\n  {\n  \tint bits = SECBIT_EXEC_RESTRICT_FILE | SECBIT_EXEC_RESTRICT_FILE_LOCKED |\n  \t\t   SECBIT_EXEC_DENY_INTERACTIVE | SECBIT_EXEC_DENY_INTERACTIVE_LOCKED;\n\n  \tif (prctl(PR_SET_SECUREBITS, bits, 0, 0, 0)) {\n  \t\tperror(\"PR_SET_SECUREBITS\");\n  \t\treturn 1;\n  \t}\n  \tprintf(\"before: 0x%x\\n\", prctl(PR_GET_SECUREBITS, 0, 0, 0, 0));\n  \tprintf(\"clear locked bits: %s\\n\", prctl(PR_SET_SECUREBITS, 0, 0, 0, 0) ? \"refused\" : \"ALLOWED\");\n\n  \tif (unshare(CLONE_NEWUSER)) {\n  \t\tperror(\"unshare(CLONE_NEWUSER)\");\n  \t\treturn 1;\n  \t}\n  \tprintf(\"after unshare(CLONE_NEWUSER): 0x%x\\n\", prctl(PR_GET_SECUREBITS, 0, 0, 0, 0));\n  \treturn 0;\n  }\n\nOn v7.1 this prints \"before: 0xf00\", \"clear locked bits: refused\" and\n\"after unshare(CLONE_NEWUSER): 0x0\". With this patch the last line\nreads 0xf00 as well.","score":null,"severity":"unknown","published":"2026-11-30T13:17:34.423Z","modified":"2026-11-30T13:17:34.423Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"a0623b2a1d595341971c189b90a6b06f42cd209d","status":"affected","lessThan":"24705093eeb28c70f56ea509d9110e802435b1b8","versionType":"git"},{"version":"a0623b2a1d595341971c189b90a6b06f42cd209d","status":"affected","lessThan":"a0da1ee51f1dfa7c3ddac48bdb04858264b56539","versionType":"git"},{"version":"a0623b2a1d595341971c189b90a6b06f42cd209d","status":"affected","lessThan":"bf5ba73c9bdd5e872eb35e801e429a3b526f8f04","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99843"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99843"}],"remediation":[],"references":["https://git.kernel.org/stable/c/24705093eeb28c70f56ea509d9110e802435b1b8","https://git.kernel.org/stable/c/a0da1ee51f1dfa7c3ddac48bdb04858264b56539","https://git.kernel.org/stable/c/bf5ba73c9bdd5e872eb35e801e429a3b526f8f04"],"sources":[{"name":"CVE","id":"CVE-2026-99843","modified":"2026-11-30T13:17:34.423Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99843"}],"assessments":[],"sourceAffected":[],"observedAt":"2026-11-30T13:46:49.882Z","kev":{"status":"not-listed","checkedAt":"2026-11-30T22:55:31.926Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}