PT-2026-163170

CVE-2026-139129

·

تاريخ النشر

2026-11-30

·

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

2026-11-30

الوصف من

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

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

In the Linux kernel, the following vulnerability has been resolved:
xattr: always invoke cap convert nscap() for security.capability writes
Commit 8db6c34f1dbc ("Introduce v3 namespaced file capabilities") changed cap inode setxattr() to return 0 unconditionally for XATTR NAME CAPS ("security.capability") and moved capability validation into cap convert nscap(), but placed the call inside the "if (size)" block in setxattr(). Commit 7c03e2cda4a5 ("vfs: move cap convert nscap() call into vfs setxattr()") preserved that "size &&" condition in vfs setxattr():
if (size && strcmp(name, XATTR NAME CAPS) == 0) {
	error = cap convert nscap(idmap, dentry, &value, size);
	...
}
For security.* extended attributes, xattr permission() skips inode permission(MAY WRITE) and leaves permission checks to the security module, while cap inode setxattr() returns 0 for XATTR NAME CAPS assuming cap convert nscap() has already validated the write. Because vfs setxattr() treats size == 0 as an empty attribute write (setting value = "") rather than a removal, calling setxattr(2) on "security.capability" with size == 0 bypasses cap convert nscap() and allows an unprivileged caller without CAP SETFCAP or write permission on the target inode to write a 0-byte security.capability xattr (or overwrite an existing one).
When that binary is subsequently executed, get vfs caps from disk() reads the 0-byte security.capability xattr and fails the size < sizeof(magic etc) check with -EINVAL, causing execve(2) to fail with -EINVAL.
Always invoke cap convert nscap() when strcmp(name, XATTR NAME CAPS) == 0 regardless of size, so that 0-byte writes hit the existing !*ivalue / !validheader() checks in cap convert nscap() and are rejected with -EINVAL.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾