{"api_version":"1","generated_at":"2026-12-02T09:12:54+00:00","cve":"CVE-2026-99843","urls":{"html":"https://cve.report/CVE-2026-99843","api":"https://cve.report/api/cve/CVE-2026-99843.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99843","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99843"},"summary":{"title":"userns: don't drop the exec securebits","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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:20:17","updated_at":"2026-11-30 14:20:17"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/24705093eeb28c70f56ea509d9110e802435b1b8","name":"https://git.kernel.org/stable/c/24705093eeb28c70f56ea509d9110e802435b1b8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/bf5ba73c9bdd5e872eb35e801e429a3b526f8f04","name":"https://git.kernel.org/stable/c/bf5ba73c9bdd5e872eb35e801e429a3b526f8f04","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a0da1ee51f1dfa7c3ddac48bdb04858264b56539","name":"https://git.kernel.org/stable/c/a0da1ee51f1dfa7c3ddac48bdb04858264b56539","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99843","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99843","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a0623b2a1d595341971c189b90a6b06f42cd209d 24705093eeb28c70f56ea509d9110e802435b1b8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a0623b2a1d595341971c189b90a6b06f42cd209d a0da1ee51f1dfa7c3ddac48bdb04858264b56539 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a0623b2a1d595341971c189b90a6b06f42cd209d bf5ba73c9bdd5e872eb35e801e429a3b526f8f04 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.14","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.14 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["Documentation/userspace-api/check_exec.rst","kernel/user_namespace.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"24705093eeb28c70f56ea509d9110e802435b1b8","status":"affected","version":"a0623b2a1d595341971c189b90a6b06f42cd209d","versionType":"git"},{"lessThan":"a0da1ee51f1dfa7c3ddac48bdb04858264b56539","status":"affected","version":"a0623b2a1d595341971c189b90a6b06f42cd209d","versionType":"git"},{"lessThan":"bf5ba73c9bdd5e872eb35e801e429a3b526f8f04","status":"affected","version":"a0623b2a1d595341971c189b90a6b06f42cd209d","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["Documentation/userspace-api/check_exec.rst","kernel/user_namespace.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.14"},{"lessThan":"6.14","status":"unaffected","version":"0","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"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"6.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"6.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.14","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:17:34.423Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/24705093eeb28c70f56ea509d9110e802435b1b8"},{"url":"https://git.kernel.org/stable/c/a0da1ee51f1dfa7c3ddac48bdb04858264b56539"},{"url":"https://git.kernel.org/stable/c/bf5ba73c9bdd5e872eb35e801e429a3b526f8f04"}],"title":"userns: don't drop the exec securebits","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99843","datePublished":"2026-11-30T13:17:34.423Z","dateReserved":"2026-09-25T10:25:14.437Z","dateUpdated":"2026-11-30T13:17:34.423Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:20:17","lastModifiedDate":"2026-11-30 14:20:17","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99843","Ordinal":"1","Title":"userns: don't drop the exec securebits","CVE":"CVE-2026-99843","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99843","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"userns: don't drop the exec securebits"}]}}}