{"id":"AZL-116905","summary":"CVE-2026-139129 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nxattr: always invoke cap_convert_nscap() for security.capability writes\n\nCommit 8db6c34f1dbc (\"Introduce v3 namespaced file capabilities\") changed\ncap_inode_setxattr() to return 0 unconditionally for XATTR_NAME_CAPS\n(\"security.capability\") and moved capability validation into\ncap_convert_nscap(), but placed the call inside the \"if (size)\" block in\nsetxattr(). Commit 7c03e2cda4a5 (\"vfs: move cap_convert_nscap() call into\nvfs_setxattr()\") preserved that \"size &&\" condition in vfs_setxattr():\n\n\tif (size && strcmp(name, XATTR_NAME_CAPS) == 0) {\n\t\terror = cap_convert_nscap(idmap, dentry, &value, size);\n\t\t...\n\t}\n\nFor security.* extended attributes, xattr_permission() skips\ninode_permission(MAY_WRITE) and leaves permission checks to the security\nmodule, while cap_inode_setxattr() returns 0 for XATTR_NAME_CAPS assuming\ncap_convert_nscap() has already validated the write. Because\n__vfs_setxattr() treats size == 0 as an empty attribute write (setting\nvalue = \"\") rather than a removal, calling setxattr(2) on\n\"security.capability\" with size == 0 bypasses cap_convert_nscap() and\nallows an unprivileged caller without CAP_SETFCAP or write permission on\nthe target inode to write a 0-byte security.capability xattr (or\noverwrite an existing one).\n\nWhen that binary is subsequently executed, get_vfs_caps_from_disk() reads\nthe 0-byte security.capability xattr and fails the\nsize \u003c sizeof(magic_etc) check with -EINVAL, causing execve(2) to fail\nwith -EINVAL.\n\nAlways invoke cap_convert_nscap() when strcmp(name, XATTR_NAME_CAPS) == 0\nregardless of size, so that 0-byte writes hit the existing !*ivalue /\n!validheader() checks in cap_convert_nscap() and are rejected with\n-EINVAL.","modified":"2026-12-02T05:27:16Z","published":"2026-11-30T14:18:27Z","upstream":["CVE-2026-139129"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139129"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-116905.json"}}],"schema_version":"1.9.2"}