CVE-2026-139080: ocfs2: reject inconsistent local xattr entries

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ocfs2: reject inconsistent local xattr entries

[BUG] A corrupt OCFS2 xattr entry can set OCFS2XATTRENTRYLOCAL while keeping xevaluesize larger than OCFS2XATTRINLINESIZE. When that entry reaches namevaluesizexe(), the filesystem hits its BUGON:

kernel BUG at fs/ocfs2/xattr.c:231! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI RIP: 0010:namevaluesizexe fs/ocfs2/xattr.c:231 [inline] RIP: 0010:ocfs2xablockwipenamevalue+0x2e4/0x330 fs/ocfs2/xattr.c:1638 Call Trace: ocfs2xawipenamevalue fs/ocfs2/xattr.c:1470 [inline] ocfs2xaremoveentry+0xae/0x1d0 fs/ocfs2/xattr.c:1941 ocfs2xaremove fs/ocfs2/xattr.c:2043 [inline] ocfs2xaset+0x11a8/0x30a0 fs/ocfs2/xattr.c:2247 ocfs2xattribodyset+0x302/0xc50 fs/ocfs2/xattr.c:2795 ocfs2xattrsethandle+0x7e6/0xdb0 fs/ocfs2/xattr.c:3416 ocfs2xattrset+0x1447/0x2610 fs/ocfs2/xattr.c:3650 ocfs2xattrsecurityset+0x37/0x50 fs/ocfs2/xattr.c:7241 vfsremovexattr+0x14d/0x1d0 fs/xattr.c:518 capinodekillpriv+0x29/0x50 security/commoncap.c:355 securityinodekillpriv+0x105/0x220 security/security.c:2724 setattrprepare+0x147/0x8a0 fs/attr.c:219 ocfs2setattr+0x504/0x1fd0 fs/ocfs2/file.c:1148 notifychange+0x4b5/0x1030 fs/attr.c:546 dotruncate+0x1d2/0x230 fs/open.c:68 handletruncate fs/namei.c:3596 [inline] doopen fs/namei.c:3979 [inline] pathopenat+0x260f/0x2ce0 fs/namei.c:4134 dofilpopen+0x1f6/0x430 fs/namei.c:4161 dosysopenat2+0x117/0x1c0 fs/open.c:1437 ...

[CAUSE] namevaluesizexe() assumes that local entries contain an inline value no larger than OCFS2XATTRINLINESIZE. Existing xattr metadata validation only checks whether the value fits the storage region, and cached entries can reach lookup and bucket maintenance paths without a semantic check. A corrupt entry can therefore be passed to namevaluesizexe().

[FIX] Validate the local/value-size invariant in the existing flat and bucket metadata validators and before accepting matched entries or traversing bucket entries in paths that call namevaluesizexe(). Return an OCFS2 corruption error instead of firing the assertion.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Reject inconsistent local OCFS2 xattr entries by validating that their value size does not exceed OCFS2_XATTR_INLINE_SIZE in the existing flat and bucket metadata validators, before accepting matched entries or traversing bucket entries; report a corruption error instead of triggering the assertion.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:31 PM
Data Sourced
via MITRE·01:31 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203