Skip to main content
VulnerabilityPublished

CVE-2026-139391: Linux kernel · ocfs2: retain all security xattrs during inode creation

Affects Linux kernelSource CVE Database V5

0
Compare

Not known to be exploited · fixed in d637475617d8468c2740a3436428681bcc8d3572 : update Linux kernel when convenient.

Data as of 30 Nov 2026, 14:00 UTC

Severity
Unrated

Rated by Threat Radar · CVSS not yet scored by NVD

Thin evidence

One scorer or none
Patch
Available – fixed in d637475617d8468c2740a3436428681bcc8d3572, ce055a1378e5b4e8fcaf1c8dc4df82c326bf9306, ae8ee59668124a4a544996727067cc5ae20af6dd +9

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
LinuxLinuxAffected
  • >=5.10.181 <5.10.275
  • >=5.15.114 <5.15.226
  • >=6.1.31 <6.1.193
  • >=6.3.5 <6.4
Fixed in
  • d637475617d8468c2740a3436428681bcc8d3572
  • ce055a1378e5b4e8fcaf1c8dc4df82c326bf9306
  • ae8ee59668124a4a544996727067cc5ae20af6dd
  • 314f6183f13fda459261a4723a453df67e15008b
  • 6.4
  • 6.1.193
  • 5c815fd8de4a7e935b287ebf980121876f229b76
  • 5bc277c89570e096c574188dcfdd538e3c139bd1
  • 5.15.226
  • 5.10.275
  • 3a6df319db221e1bc4eb0ce22218c904512b1f60
  • 1b9930ebec9dc92b3cce3231dcb9ed8ebd5da7dd
LinuxLinuxAffected
  • =6.4
Fixed in–

Description

In the Linux kernel, the following vulnerability has been resolved: ocfs2: retain all security xattrs during inode creation When creating a new inode, ocfs2_init_security_get() stores the security xattr returned by the LSM framework in ocfs2_security_xattr_info so that it can be written later within the same transaction. But ocfs2_initxattrs() only ever looks at the first element of the xattr array, and it keeps the name as a bare pointer into memory owned by the security layer instead of copying it. The value, by contrast, is already duplicated with kmemdup(). With stacked LSMs, security_inode_init_security() provides one xattr per LSM, so all labels but the first are silently dropped and never written to disk, leaving newly created files without the security xattrs the other LSMs rely on. The borrowed name is not an outright bug with the LSMs in tree today: security_inode_init_security() frees only ->value once the callback returns, and documents ->name as the attribute name suffix, so the pointer stays valid for as long as ocfs2 uses it. It is fragile though, as an LSM that allocates the name together with the value would turn it into a use-after-free, so the rework below copies the names as well. Fix this by storing copies of all the security xattrs: allocate an array in ocfs2_initxattrs(), copy the names and values, account for all of them in the credit calculations, and write each one in ocfs2_init_security_set(). While at it, switch the allocations from GFP_KERNEL to GFP_NOFS. The callback runs in the inode creation path with the parent directory locked, and the security layer allocates the very same xattr array with GFP_NOFS, so direct reclaim must not be allowed to recurse into the filesystem from here.

References

Community reviews

Loading reviews…