{"id":"CVE-2026-100089","aliases":["CVE-2026-100089"],"related":[],"kind":"vulnerability","state":"published","title":"ocfs2: update xattr count before moving bucket entries","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: update xattr count before moving bucket entries\n\nSince commit 2f26f58df041 (\"ocfs2: annotate flexible array members with\n__counted_by_le()\"), the xh_entries array is annotated with\n__counted_by_le(xh_count), so FORTIFY uses xh_count to determine its\nbounds.  When inserting an entry into a bucket,\nocfs2_xa_bucket_add_entry() shifts existing entries before incrementing\nxh_count.  The destination therefore extends one entry past the bounds\ndescribed by the old count.\n\nWith CONFIG_CC_HAS_COUNTED_BY and CONFIG_FORTIFY_SOURCE enabled,\nocfs2-test: single_run-WIP.sh -t reflink triggers the following failure\nwhile adding an extended attribute:\n\n[  150.156484] memmove: detected buffer overflow: 352 byte write of buffer size 336\n[  150.156487] WARNING: lib/string_helpers.c:1036 at __fortify_report+0x3d/0x50, CPU#15: reflink_test/2336\n[  150.160496] RIP: 0010:__fortify_report+0x40/0x50\n[  150.164031] Call Trace:\n[  150.164141]  <TASK>\n[  150.164232]  __fortify_panic+0x9/0xb\n[  150.164383]  ocfs2_xa_bucket_add_entry.cold+0x17/0x28 [ocfs2]\n[  150.164661]  ocfs2_xa_set+0x8fb/0xf40 [ocfs2]\n\nIncrement xh_count before memmove() so the destination bounds include the\nnew entry.  Keep the local count unchanged to calculate the insertion\nposition and move length from the original number of entries.  The caller\nhas already checked that there is enough space for the new entry.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: update xattr count before moving bucket entries\n\nSince commit 2f26f58df041 (\"ocfs2: annotate flexible array members with\n__counted_by_le()\"), the xh_entries array is annotated with\n__counted_by_le(xh_count), so FORTIFY uses xh_count to determine its\nbounds.  When inserting an entry into a bucket,\nocfs2_xa_bucket_add_entry() shifts existing entries before incrementing\nxh_count.  The destination therefore extends one entry past the bounds\ndescribed by the old count.\n\nWith CONFIG_CC_HAS_COUNTED_BY and CONFIG_FORTIFY_SOURCE enabled,\nocfs2-test: single_run-WIP.sh -t reflink triggers the following failure\nwhile adding an extended attribute:\n\n[  150.156484] memmove: detected buffer overflow: 352 byte write of buffer size 336\n[  150.156487] WARNING: lib/string_helpers.c:1036 at __fortify_report+0x3d/0x50, CPU#15: reflink_test/2336\n[  150.160496] RIP: 0010:__fortify_report+0x40/0x50\n[  150.164031] Call Trace:\n[  150.164141]  <TASK>\n[  150.164232]  __fortify_panic+0x9/0xb\n[  150.164383]  ocfs2_xa_bucket_add_entry.cold+0x17/0x28 [ocfs2]\n[  150.164661]  ocfs2_xa_set+0x8fb/0xf40 [ocfs2]\n\nIncrement xh_count before memmove() so the destination bounds include the\nnew entry.  Keep the local count unchanged to calculate the insertion\nposition and move length from the original number of entries.  The caller\nhas already checked that there is enough space for the new entry.","source":"cvelist"}],"published":"2026-11-30T13:23:40.569Z","modified":"2026-11-30T14:17:27.083Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2f26f58df041bbcf692730ff4d8ab0f250d9670d","fixed":"ff2d64cb1fc1356b9be95d0aa220776edb393cc6","status":"affected"},{"type":"git","introduced":"2f26f58df041bbcf692730ff4d8ab0f250d9670d","fixed":"cd6920b6f3e5c6402d49e1128d0e53ee1c7c9b55","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/ff2d64cb1fc1356b9be95d0aa220776edb393cc6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cd6920b6f3e5c6402d49e1128d0e53ee1c7c9b55","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-100089","url":"https://www.cve.org/CVERecord?id=CVE-2026-100089","licence":"CVE Terms of Use","modified":"2026-11-30T13:23:40.569Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-100089","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100089","licence":"Public domain","modified":"2026-11-30T14:17:27.083Z"}],"updatedAt":"2026-11-30T14:32:22.179Z","epss":{"score":0.00214,"percentile":0.12572,"date":"2026-12-01T12:00:22.000Z"}}