{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99843","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.437Z","datePublished":"2026-11-30T13:17:34.423Z","dateUpdated":"2026-11-30T13:17:34.423Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:17:34.423Z"},"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."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["Documentation/userspace-api/check_exec.rst","kernel/user_namespace.c"],"versions":[{"version":"a0623b2a1d595341971c189b90a6b06f42cd209d","lessThan":"24705093eeb28c70f56ea509d9110e802435b1b8","status":"affected","versionType":"git"},{"version":"a0623b2a1d595341971c189b90a6b06f42cd209d","lessThan":"a0da1ee51f1dfa7c3ddac48bdb04858264b56539","status":"affected","versionType":"git"},{"version":"a0623b2a1d595341971c189b90a6b06f42cd209d","lessThan":"bf5ba73c9bdd5e872eb35e801e429a3b526f8f04","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["Documentation/userspace-api/check_exec.rst","kernel/user_namespace.c"],"versions":[{"version":"6.14","status":"affected"},{"version":"0","lessThan":"6.14","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":"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"}]}]}],"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"}}}}