{"api_version":"1","generated_at":"2026-11-30T18:22:10+00:00","cve":"CVE-2026-139080","urls":{"html":"https://cve.report/CVE-2026-139080","api":"https://cve.report/api/cve/CVE-2026-139080.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139080","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139080"},"summary":{"title":"ocfs2: reject inconsistent local xattr entries","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: reject inconsistent local xattr entries\n\n[BUG]\nA corrupt OCFS2 xattr entry can set OCFS2_XATTR_ENTRY_LOCAL while\nkeeping xe_value_size larger than OCFS2_XATTR_INLINE_SIZE. When that\nentry reaches namevalue_size_xe(), the filesystem hits its BUG_ON:\n\nkernel BUG at fs/ocfs2/xattr.c:231!\nOops: invalid opcode: 0000 [#1] SMP KASAN NOPTI\nRIP: 0010:namevalue_size_xe fs/ocfs2/xattr.c:231 [inline]\nRIP: 0010:ocfs2_xa_block_wipe_namevalue+0x2e4/0x330 fs/ocfs2/xattr.c:1638\nCall Trace:\n ocfs2_xa_wipe_namevalue fs/ocfs2/xattr.c:1470 [inline]\n ocfs2_xa_remove_entry+0xae/0x1d0 fs/ocfs2/xattr.c:1941\n ocfs2_xa_remove fs/ocfs2/xattr.c:2043 [inline]\n ocfs2_xa_set+0x11a8/0x30a0 fs/ocfs2/xattr.c:2247\n ocfs2_xattr_ibody_set+0x302/0xc50 fs/ocfs2/xattr.c:2795\n __ocfs2_xattr_set_handle+0x7e6/0xdb0 fs/ocfs2/xattr.c:3416\n ocfs2_xattr_set+0x1447/0x2610 fs/ocfs2/xattr.c:3650\n ocfs2_xattr_security_set+0x37/0x50 fs/ocfs2/xattr.c:7241\n __vfs_removexattr+0x14d/0x1d0 fs/xattr.c:518\n cap_inode_killpriv+0x29/0x50 security/commoncap.c:355\n security_inode_killpriv+0x105/0x220 security/security.c:2724\n setattr_prepare+0x147/0x8a0 fs/attr.c:219\n ocfs2_setattr+0x504/0x1fd0 fs/ocfs2/file.c:1148\n notify_change+0x4b5/0x1030 fs/attr.c:546\n do_truncate+0x1d2/0x230 fs/open.c:68\n handle_truncate fs/namei.c:3596 [inline]\n do_open fs/namei.c:3979 [inline]\n path_openat+0x260f/0x2ce0 fs/namei.c:4134\n do_filp_open+0x1f6/0x430 fs/namei.c:4161\n do_sys_openat2+0x117/0x1c0 fs/open.c:1437\n ...\n\n[CAUSE]\nnamevalue_size_xe() assumes that local entries contain an inline value\nno larger than OCFS2_XATTR_INLINE_SIZE. Existing xattr metadata\nvalidation only checks whether the value fits the storage region, and\ncached entries can reach lookup and bucket maintenance paths without a\nsemantic check. A corrupt entry can therefore be passed to\nnamevalue_size_xe().\n\n[FIX]\nValidate the local/value-size invariant in the existing flat and bucket\nmetadata validators and before accepting matched entries or traversing\nbucket entries in paths that call namevalue_size_xe(). Return an OCFS2\ncorruption error instead of firing the assertion.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:15","updated_at":"2026-11-30 14:18:15"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/1d1bcc50465e24d999bfecc539753d0820ddfcc2","name":"https://git.kernel.org/stable/c/1d1bcc50465e24d999bfecc539753d0820ddfcc2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/415ad9147484a9994ad7963c46aaf56e14dd3b49","name":"https://git.kernel.org/stable/c/415ad9147484a9994ad7963c46aaf56e14dd3b49","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139080","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139080","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 1d1bcc50465e24d999bfecc539753d0820ddfcc2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 415ad9147484a9994ad7963c46aaf56e14dd3b49 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.3.6 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/ocfs2/xattr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"1d1bcc50465e24d999bfecc539753d0820ddfcc2","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"415ad9147484a9994ad7963c46aaf56e14dd3b49","status":"affected","version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","versionType":"git"},{"lessThan":"7.3.6","status":"affected","version":"0","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ocfs2/xattr.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: reject inconsistent local xattr entries\n\n[BUG]\nA corrupt OCFS2 xattr entry can set OCFS2_XATTR_ENTRY_LOCAL while\nkeeping xe_value_size larger than OCFS2_XATTR_INLINE_SIZE. When that\nentry reaches namevalue_size_xe(), the filesystem hits its BUG_ON:\n\nkernel BUG at fs/ocfs2/xattr.c:231!\nOops: invalid opcode: 0000 [#1] SMP KASAN NOPTI\nRIP: 0010:namevalue_size_xe fs/ocfs2/xattr.c:231 [inline]\nRIP: 0010:ocfs2_xa_block_wipe_namevalue+0x2e4/0x330 fs/ocfs2/xattr.c:1638\nCall Trace:\n ocfs2_xa_wipe_namevalue fs/ocfs2/xattr.c:1470 [inline]\n ocfs2_xa_remove_entry+0xae/0x1d0 fs/ocfs2/xattr.c:1941\n ocfs2_xa_remove fs/ocfs2/xattr.c:2043 [inline]\n ocfs2_xa_set+0x11a8/0x30a0 fs/ocfs2/xattr.c:2247\n ocfs2_xattr_ibody_set+0x302/0xc50 fs/ocfs2/xattr.c:2795\n __ocfs2_xattr_set_handle+0x7e6/0xdb0 fs/ocfs2/xattr.c:3416\n ocfs2_xattr_set+0x1447/0x2610 fs/ocfs2/xattr.c:3650\n ocfs2_xattr_security_set+0x37/0x50 fs/ocfs2/xattr.c:7241\n __vfs_removexattr+0x14d/0x1d0 fs/xattr.c:518\n cap_inode_killpriv+0x29/0x50 security/commoncap.c:355\n security_inode_killpriv+0x105/0x220 security/security.c:2724\n setattr_prepare+0x147/0x8a0 fs/attr.c:219\n ocfs2_setattr+0x504/0x1fd0 fs/ocfs2/file.c:1148\n notify_change+0x4b5/0x1030 fs/attr.c:546\n do_truncate+0x1d2/0x230 fs/open.c:68\n handle_truncate fs/namei.c:3596 [inline]\n do_open fs/namei.c:3979 [inline]\n path_openat+0x260f/0x2ce0 fs/namei.c:4134\n do_filp_open+0x1f6/0x430 fs/namei.c:4161\n do_sys_openat2+0x117/0x1c0 fs/open.c:1437\n ...\n\n[CAUSE]\nnamevalue_size_xe() assumes that local entries contain an inline value\nno larger than OCFS2_XATTR_INLINE_SIZE. Existing xattr metadata\nvalidation only checks whether the value fits the storage region, and\ncached entries can reach lookup and bucket maintenance paths without a\nsemantic check. A corrupt entry can therefore be passed to\nnamevalue_size_xe().\n\n[FIX]\nValidate the local/value-size invariant in the existing flat and bucket\nmetadata validators and before accepting matched entries or traversing\nbucket entries in paths that call namevalue_size_xe(). Return an OCFS2\ncorruption error instead of firing the assertion."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:31:23.529Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/1d1bcc50465e24d999bfecc539753d0820ddfcc2"},{"url":"https://git.kernel.org/stable/c/415ad9147484a9994ad7963c46aaf56e14dd3b49"}],"title":"ocfs2: reject inconsistent local xattr entries","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139080","datePublished":"2026-11-30T13:31:23.529Z","dateReserved":"2026-11-30T13:22:15.913Z","dateUpdated":"2026-11-30T13:31:23.529Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:15","lastModifiedDate":"2026-11-30 14:18:15","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139080","Ordinal":"1","Title":"ocfs2: reject inconsistent local xattr entries","CVE":"CVE-2026-139080","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139080","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: reject inconsistent local xattr entries\n\n[BUG]\nA corrupt OCFS2 xattr entry can set OCFS2_XATTR_ENTRY_LOCAL while\nkeeping xe_value_size larger than OCFS2_XATTR_INLINE_SIZE. When that\nentry reaches namevalue_size_xe(), the filesystem hits its BUG_ON:\n\nkernel BUG at fs/ocfs2/xattr.c:231!\nOops: invalid opcode: 0000 [#1] SMP KASAN NOPTI\nRIP: 0010:namevalue_size_xe fs/ocfs2/xattr.c:231 [inline]\nRIP: 0010:ocfs2_xa_block_wipe_namevalue+0x2e4/0x330 fs/ocfs2/xattr.c:1638\nCall Trace:\n ocfs2_xa_wipe_namevalue fs/ocfs2/xattr.c:1470 [inline]\n ocfs2_xa_remove_entry+0xae/0x1d0 fs/ocfs2/xattr.c:1941\n ocfs2_xa_remove fs/ocfs2/xattr.c:2043 [inline]\n ocfs2_xa_set+0x11a8/0x30a0 fs/ocfs2/xattr.c:2247\n ocfs2_xattr_ibody_set+0x302/0xc50 fs/ocfs2/xattr.c:2795\n __ocfs2_xattr_set_handle+0x7e6/0xdb0 fs/ocfs2/xattr.c:3416\n ocfs2_xattr_set+0x1447/0x2610 fs/ocfs2/xattr.c:3650\n ocfs2_xattr_security_set+0x37/0x50 fs/ocfs2/xattr.c:7241\n __vfs_removexattr+0x14d/0x1d0 fs/xattr.c:518\n cap_inode_killpriv+0x29/0x50 security/commoncap.c:355\n security_inode_killpriv+0x105/0x220 security/security.c:2724\n setattr_prepare+0x147/0x8a0 fs/attr.c:219\n ocfs2_setattr+0x504/0x1fd0 fs/ocfs2/file.c:1148\n notify_change+0x4b5/0x1030 fs/attr.c:546\n do_truncate+0x1d2/0x230 fs/open.c:68\n handle_truncate fs/namei.c:3596 [inline]\n do_open fs/namei.c:3979 [inline]\n path_openat+0x260f/0x2ce0 fs/namei.c:4134\n do_filp_open+0x1f6/0x430 fs/namei.c:4161\n do_sys_openat2+0x117/0x1c0 fs/open.c:1437\n ...\n\n[CAUSE]\nnamevalue_size_xe() assumes that local entries contain an inline value\nno larger than OCFS2_XATTR_INLINE_SIZE. Existing xattr metadata\nvalidation only checks whether the value fits the storage region, and\ncached entries can reach lookup and bucket maintenance paths without a\nsemantic check. A corrupt entry can therefore be passed to\nnamevalue_size_xe().\n\n[FIX]\nValidate the local/value-size invariant in the existing flat and bucket\nmetadata validators and before accepting matched entries or traversing\nbucket entries in paths that call namevalue_size_xe(). Return an OCFS2\ncorruption error instead of firing the assertion.","Type":"Description","Title":"ocfs2: reject inconsistent local xattr entries"}]}}}