Linux kernel ocfs2 drops security xattrs when creating inodes
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
Linux kernel ocfs2 is affected from 5.10.181 before 5.10.275, from 5.15.114 before 5.15.226, from 6.1.31 before 6.1.193, from 6.3.5 before 6.4, and from 6.4 onward. With stacked LSMs, ocfs2 keeps only the first security xattr when creating an inode, so newly created files lack the labels that other LSMs need. The xattr names are also kept as borrowed pointers rather than copies, which is fragile.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.10.181 to before 5.10.275; 5.15.114 to before 5.15.226; 6.1.31 to before 6.1.193; 6.3.5 to before 6.4 | 5.10.275, 5.15.226, 6.1.193, 6.4 | Patch available | CNA |
| Linux | Linux | 6.4 and later | 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1 | Patch available | CNA |
- Linux VendorLinux Affected 5.10.181 to before 5.10.275; 5.15.114 to before 5.15.226; 6.1.31 to before 6.1.193; 6.3.5 to before 6.4 Fixed in 5.10.275, 5.15.226, 6.1.193, 6.4 Patch available CNA
- Linux VendorLinux Affected 6.4 and later Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1 Patch available CNA
Remediation
Fixed versions for the Linux kernel are 5.10.275, 5.15.226, 6.1.193, 6.4, 6.6.163, 6.12.119, 6.18.65, 7.3.6 and 7.4-rc1.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
- Fix · CNA Linux (Linux) Fixed in 5.10.275, 5.15.226, 6.1.193, 6.4
- Fix · CNA Linux (Linux) Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
Not affected: 7 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 5
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139391
- 2026-11-30 Alias added: GHSA-6q88-5jqm-v8hv
- 2026-12-01 Affected versions changed · Red Hat
- 2026-12-01 CVSS score added · Red Hat
References
Other 8
- https://git.kernel.org/stable/c/ce055a1378e5b4e8fcaf1c8dc4df82c326bf9306
- https://git.kernel.org/stable/c/1b9930ebec9dc92b3cce3231dcb9ed8ebd5da7dd
- https://git.kernel.org/stable/c/ae8ee59668124a4a544996727067cc5ae20af6dd
- https://git.kernel.org/stable/c/3a6df319db221e1bc4eb0ce22218c904512b1f60
- https://git.kernel.org/stable/c/5c815fd8de4a7e935b287ebf980121876f229b76
- https://git.kernel.org/stable/c/5bc277c89570e096c574188dcfdd538e3c139bd1
- https://git.kernel.org/stable/c/314f6183f13fda459261a4723a453df67e15008b
- https://git.kernel.org/stable/c/d637475617d8468c2740a3436428681bcc8d3572
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-139391 · CVE Program
- CVE-2026-139391 · NVD
- GHSA-6q88-5jqm-v8hv · GitHub Advisory Database · CC BY 4.0
- CVE-2026-139391 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences