Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139391

published

ocfs2: retain all security xattrs during inode creation

Published
30 Nov 2026, 13:34:19 UTC
Updated
30 Nov 2026, 13:34:19 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxc41324385aa7c9ac0fc1fa9c2521aacedea24788 to < ce055a1378e5b4e8fcaf1c8dc4df82c326bf9306 · 291fe3d6f5dbafa6dd87a510c1351e8ce8a8a52e to < 1b9930ebec9dc92b3cce3231dcb9ed8ebd5da7dd · 8bdf47f9dbeac6b247c8f14fbaebfe020d9a2ffa to < ae8ee59668124a4a544996727067cc5ae20af6dd · de3004c874e740304cc4f4a83d6200acb511bbda to < 3a6df319db221e1bc4eb0ce22218c904512b1f60 · de3004c874e740304cc4f4a83d6200acb511bbda to < 5c815fd8de4a7e935b287ebf980121876f229b76 · de3004c874e740304cc4f4a83d6200acb511bbda to < 5bc277c89570e096c574188dcfdd538e3c139bd1 · de3004c874e740304cc4f4a83d6200acb511bbda to < 314f6183f13fda459261a4723a453df67e15008b · de3004c874e740304cc4f4a83d6200acb511bbda to < d637475617d8468c2740a3436428681bcc8d3572 · 0c80524f34e66fed0bc837758c5a80b1527847a4 · 5.10.181 to < 5.10.275 · 5.15.114 to < 5.15.226 · 6.1.31 to < 6.1.193 · 6.3.5 to < 6.4 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.4 (affected) · 0 to < 6.4 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux c41324385aa7c9ac0fc1fa9c2521aacedea24788 to < ce055a1378e5b4e8fcaf1c8dc4df82c326bf9306 (affected · git)291fe3d6f5dbafa6dd87a510c1351e8ce8a8a52e to < 1b9930ebec9dc92b3cce3231dcb9ed8ebd5da7dd (affected · git)8bdf47f9dbeac6b247c8f14fbaebfe020d9a2ffa to < ae8ee59668124a4a544996727067cc5ae20af6dd (affected · git)de3004c874e740304cc4f4a83d6200acb511bbda to < 3a6df319db221e1bc4eb0ce22218c904512b1f60 (affected · git)de3004c874e740304cc4f4a83d6200acb511bbda to < 5c815fd8de4a7e935b287ebf980121876f229b76 (affected · git)de3004c874e740304cc4f4a83d6200acb511bbda to < 5bc277c89570e096c574188dcfdd538e3c139bd1 (affected · git)de3004c874e740304cc4f4a83d6200acb511bbda to < 314f6183f13fda459261a4723a453df67e15008b (affected · git)de3004c874e740304cc4f4a83d6200acb511bbda to < d637475617d8468c2740a3436428681bcc8d3572 (affected · git)0c80524f34e66fed0bc837758c5a80b1527847a4 (affected · git)5.10.181 to < 5.10.275 (affected · semver)5.15.114 to < 5.15.226 (affected · semver)6.1.31 to < 6.1.193 (affected · semver)6.3.5 to < 6.4 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.4 (affected)0 to < 6.4 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

ocfs2: retain all security xattrs during inode creation

Provenance

Schema
5.2
Searchable
yes
Content hash
309f62f74bc89c9d76adfda26a7b609ecc384b43eb535ce6752419f7e45bcd88
Ingested
30 Nov 2026, 13:42:23 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected