PT-2026-162810

CVE-2026-99843

·

تاريخ النشر

2026-11-30

·

تاريخ التحديث

2026-11-30

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

In the Linux kernel, the following vulnerability has been resolved:
userns: don't drop the exec securebits
SECBIT EXEC RESTRICT FILE and SECBIT EXEC DENY INTERACTIVE tell script interpreters to only run what AT EXECVE CHECK allows and to refuse interactive input. A service manager sets them together with their lock bits so that nothing below it can turn them off again.
But set cred user ns() resets all securebits to SECUREBITS DEFAULT. So any task that can create a user namespace sheds the locked exec bits with a single unshare(CLONE NEWUSER) and joining one with setns() does the same. The lock is pointless if anyone who may create a user namespace can drop it, and that is pretty much everyone.
Resetting the other bits is fine. They are about how capabilities are computed and a new user namespace starts out with a full set of capabilities anyway. The exec bits grant nothing though. They are restrictions a task placed on itself, just like no new privs which a user namespace doesn't touch either. So keep them and their locks.
Reproducer:
// SPDX-License-Identifier: GPL-2.0 /* Lock the exec securebits, then create a user namespace and look at them again. */ #define GNU SOURCE #include <sched.h> #include <stdio.h> #include <sys/prctl.h>
#define SECBIT EXEC RESTRICT FILE (1 << 8) #define SECBIT EXEC RESTRICT FILE LOCKED (1 << 9) #define SECBIT EXEC DENY INTERACTIVE (1 << 10) #define SECBIT EXEC DENY INTERACTIVE LOCKED (1 << 11)
int main(void) { int bits = SECBIT EXEC RESTRICT FILE | SECBIT EXEC RESTRICT FILE LOCKED | SECBIT EXEC DENY INTERACTIVE | SECBIT EXEC DENY INTERACTIVE LOCKED;
if (prctl(PR SET SECUREBITS, bits, 0, 0, 0)) {
	perror("PR SET SECUREBITS");
	return 1;
}
printf("before: 0x%x
", prctl(PR GET SECUREBITS, 0, 0, 0, 0)); printf("clear locked bits: %s ", prctl(PR SET SECUREBITS, 0, 0, 0, 0) ? "refused" : "ALLOWED");
if (unshare(CLONE NEWUSER)) {
	perror("unshare(CLONE NEWUSER)");
	return 1;
}
printf("after unshare(CLONE NEWUSER): 0x%x
", prctl(PR GET SECUREBITS, 0, 0, 0, 0)); return 0; }
On v7.1 this prints "before: 0xf00", "clear locked bits: refused" and "after unshare(CLONE NEWUSER): 0x0". With this patch the last line reads 0xf00 as well.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾