CVE-2026-139129

Not scored yetLast modified Nov 30, 2026

Description

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 8db6c34f1dbc8e06aa016a9b829b06902c3e1340, < 95d264a93340840b52d54ccf321dc7e4875d88b4; >= 8db6c34f1dbc8e06aa016a9b829b06902c3e1340, < a0d86d8e7297fb51b924642fe256b4a8d70ff7c7; >= 8db6c34f1dbc8e06aa016a9b829b06902c3e1340, < 136fbb8cba5236655a4e0be62b96a8f3bb4f3568; >= 8db6c34f1dbc8e06aa016a9b829b06902c3e1340, < 3a0260fc82412405c00491efe2287650bcbfb373; >= 8db6c34f1dbc8e06aa016a9b829b06902c3e1340, < 0f4a9e682f7fa5becc3af7204606d9bf4780e425
LinuxLinux4.14

References

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139136.5Insufficient policy enforcement in Autofill in Google Chrome on iOS prior to 150.0.7871.47 allowed a remote attacker who convinced a user toCVE-2026-139130In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: Intel: hda: Stop the controller before freeing its DMA buffeCVE-2026-1391317.0In the Linux kernel, the following vulnerability has been resolved: fork: Let nobody keep a task that may not come to life dup_task_structCVE-2026-139132In the Linux kernel, the following vulnerability has been resolved: octeontx2-pf: pass the skb to otx2_dma_unmap_skb_frags() After a DMA mCVE-2026-1391338.1In the Linux kernel, the following vulnerability has been resolved: octeontx2-pf: fix skb use-after-free on ipsec transmit drop When an SACVE-2026-139134In the Linux kernel, the following vulnerability has been resolved: net: mctp: free reassembly head skb when key_add fails on SOM When a sCVE-2026-139135In the Linux kernel, the following vulnerability has been resolved: writeback: don't kick a missing wb for dontcache writes With CONFIG_CGCVE-2026-139136In the Linux kernel, the following vulnerability has been resolved: net/mlx5: Only set num_doorbells on a fully initialized SF The validatCVE-2026-139137In the Linux kernel, the following vulnerability has been resolved: ice: set in_use only after preparing Tx timestamp index The ice_ptp_reCVE-2026-139138In the Linux kernel, the following vulnerability has been resolved: ice: use reference counting and SRCU for PTP port access The ice adaptCVE-2026-139139In the Linux kernel, the following vulnerability has been resolved: ppp: linearize and segment bridged packets when required PPP channel bCVE-2026-139145.5Inappropriate implementation in Passwords in Google Chrome on Mac prior to 150.0.7871.47 allowed a local attacker to obtain potentially sens
CVE-2026-139129: Unscored | Vulnix