{"id":66589,"date":"2026-06-28T03:30:05","date_gmt":"2026-06-28T03:30:05","guid":{"rendered":"https:\/\/zero.redgem.net\/?p=66589"},"modified":"2026-06-28T03:30:05","modified_gmt":"2026-06-28T03:30:05","slug":"ocfs2-fix-listxattr-handling-when-the-buffer-is-full","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=66589","title":{"rendered":"ocfs2: fix listxattr handling when the buffer is full_CVE-2026-53041"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;&#8221;,&#8221;description&#8221;:&#8221;In the Linux kernel, the following vulnerability has been resolved:\\n\\nocfs2: fix listxattr handling when the buffer is full\\n\\n[BUG]\\nIf an OCFS2 inode has both inline and block-based xattrs, listxattr()\\ncan return a size larger than the caller&#8217;s buffer when the inline names\\nconsume that buffer exactly.\\n\\nkernel BUG at mm\/usercopy.c:102!\\nOops: invalid opcode: 0000 [#1] SMP KASAN NOPTI\\nRIP: 0010:usercopy_abort+0xb7\/0xd0 mm\/usercopy.c:102\\nCall Trace:\\n __check_heap_object+0xe3\/0x120 mm\/slub.c:8243\\n check_heap_object mm\/usercopy.c:196 [inline]\\n __check_object_size mm\/usercopy.c:250 [inline]\\n __check_object_size+0x5c5\/0x780 mm\/usercopy.c:215\\n check_object_size include\/linux\/ucopysize.h:22 [inline]\\n check_copy_size include\/linux\/ucopysize.h:59 [inline]\\n copy_to_user include\/linux\/uaccess.h:219 [inline]\\n listxattr+0xb0\/0x170 fs\/xattr.c:926\\n filename_listxattr fs\/xattr.c:958 [inline]\\n path_listxattrat+0x137\/0x320 fs\/xattr.c:988\\n __do_sys_listxattr fs\/xattr.c:1001 [inline]\\n __se_sys_listxattr fs\/xattr.c:998 [inline]\\n __x64_sys_listxattr+0x7f\/0xd0 fs\/xattr.c:998\\n &#8230;\\n\\n[CAUSE]\\nCommit 936b8834366e (\\&#8221;ocfs2: Refactor xattr list and remove\\nocfs2_xattr_handler().\\&#8221;) replaced the old per-handler list accounting\\nwith ocfs2_xattr_list_entry(), but it kept using size == 0 to detect\\nprobe mode.\\n\\nThat assumption stops being true once ocfs2_listxattr() finishes the\\ninline-xattr pass. If the inline names fill the caller buffer exactly,\\nthe block-xattr pass runs with a non-NULL buffer and a remaining size of\\nzero. ocfs2_xattr_list_entry() then skips the bounds check, keeps\\ncounting block names, and returns a positive size larger than the\\nsupplied buffer.\\n\\n[FIX]\\nDetect probe mode by testing whether the destination buffer pointer is\\nNULL instead of whether the remaining size is zero.\\n\\nThat restores the pre-refactor behavior and matches the OCFS2 getxattr\\nhelpers. Once the remaining buffer reaches zero while more names are\\nleft, the block-xattr pass now returns -ERANGE instead of reporting a\\nsize larger than the allocated list buffer.&#8221;,&#8221;published&#8221;:&#8221;2026-06-24T16:29:47.501Z&#8221;,&#8221;modified&#8221;:&#8221;2026-06-28T06:38:23.107Z&#8221;,&#8221;type&#8221;:&#8221;cve&#8221;,&#8221;title&#8221;:&#8221;ocfs2: fix listxattr handling when the buffer is full&#8221;,&#8221;source&#8221;:&#8221;Linux&#8221;,&#8221;references&#8221;:&#8221;https:\/\/git.kernel.org\/stable\/c\/a35a1c2b170b5b578b1b3fecb95694796552af9a\\nhttps:\/\/git.kernel.org\/stable\/c\/2323084c17370304f49c84b354fe7b3edbb264fe\\nhttps:\/\/git.kernel.org\/stable\/c\/6f702b00b8124c5d3525f19172934544826a114d\\nhttps:\/\/git.kernel.org\/stable\/c\/d919b905939eda93393e3572900ff70dbad2b47f\\nhttps:\/\/git.kernel.org\/stable\/c\/46e66fefb83811958127bc9ad736983ec629d82b\\nhttps:\/\/git.kernel.org\/stable\/c\/2685df8577a38d83b367c8cf52eda9dc286959ff\\nhttps:\/\/git.kernel.org\/stable\/c\/50033ec1350fe68abdc63b950ced7ae57364b77a\\nhttps:\/\/git.kernel.org\/stable\/c\/d12f558e6200b3f47dbef9331ed6d115d2410e59&#8243;,&#8221;id&#8221;:&#8221;CVE-2026-53041&#8243;,&#8221;bulletinFamily&#8221;:&#8221;&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:null,&#8221;sourceData&#8221;:&#8221;Linux Linux 936b8834366ec05f2a6993f73afd8348cac9718e\\nLinux Linux 936b8834366ec05f2a6993f73afd8348cac9718e\\nLinux Linux 936b8834366ec05f2a6993f73afd8348cac9718e\\nLinux Linux 936b8834366ec05f2a6993f73afd8348cac9718e\\nLinux Linux 936b8834366ec05f2a6993f73afd8348cac9718e\\nLinux Linux 936b8834366ec05f2a6993f73afd8348cac9718e\\nLinux Linux 936b8834366ec05f2a6993f73afd8348cac9718e\\nLinux Linux 936b8834366ec05f2a6993f73afd8348cac9718e\\nLinux Linux 2.6.28&#8243;,&#8221;sourceHref&#8221;:&#8221;&#8221;,&#8221;cvss&#8221;:{&#8220;score&#8221;:7.1,&#8221;severity&#8221;:&#8221;HIGH&#8221;,&#8221;vector&#8221;:&#8221;CVSS:3.1\/AV:L\/AC:L\/PR:L\/UI:N\/S:U\/C:H\/I:N\/A:H&#8221;,&#8221;version&#8221;:&#8221;3.1&#8243;},&#8221;cvss2&#8243;:{},&#8221;cvss3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;,&#8221;cvssV3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;}},&#8221;href&#8221;:&#8221;&#8221;,&#8221;category_name&#8221;:&#8221;CVE&#8221;,&#8221;post_link&#8221;:&#8221;&#8221;,&#8221;product&#8221;:&#8221;Linux&#8221;,&#8221;version&#8221;:&#8221;936b8834366ec05f2a6993f73afd8348cac9718e&#8221;,&#8221;vendor&#8221;:&#8221;Linux&#8221;,&#8221;ai_description&#8221;:&#8221;&#8221;,&#8221;ai_severity&#8221;:&#8221;&#8221;,&#8221;ai_vendor&#8221;:&#8221;&#8221;,&#8221;ai_product&#8221;:&#8221;&#8221;,&#8221;ai_version&#8221;:&#8221;&#8221;,&#8221;ai_score&#8221;:0}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;&#8221;,&#8221;description&#8221;:&#8221;In the Linux kernel, the following vulnerability has been resolved:\\n\\nocfs2: fix listxattr handling when the buffer is full\\n\\n[BUG]\\nIf an OCFS2 inode has both inline and&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[6,8,50,12,15,13,7,11,5],"class_list":["post-66589","post","type-post","status-publish","format-standard","hentry","category-category_cve","tag-cve","tag-cvss","tag-cvss-71","tag-exploit","tag-high","tag-news","tag-security","tag-tapic","tag-vulnerability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ocfs2: fix listxattr handling when the buffer is full_CVE-2026-53041 - zero redgem<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zero.redgem.net\/?p=66589\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ocfs2: fix listxattr handling when the buffer is full_CVE-2026-53041 - zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;&#8221;,&#8221;description&#8221;:&#8221;In the Linux kernel, the following vulnerability has been resolved:nnocfs2: fix listxattr handling when the buffer is fullnn[BUG]nIf an OCFS2 inode has both inline and...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=66589\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2026-06-28T03:30:05+00:00\" \/>\n<meta name=\"author\" content=\"invoker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"invoker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=66589#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=66589\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"ocfs2: fix listxattr handling when the buffer is full_CVE-2026-53041\",\"datePublished\":\"2026-06-28T03:30:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=66589\"},\"wordCount\":671,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"keywords\":[\"CVE\",\"CVSS\",\"CVSS-7.1\",\"exploit\",\"HIGH\",\"news\",\"Security\",\"tapic\",\"Vulnerability\"],\"articleSection\":[\"category_cve\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=66589#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=66589\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=66589\",\"name\":\"ocfs2: fix listxattr handling when the buffer is full_CVE-2026-53041 - zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2026-06-28T03:30:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=66589#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=66589\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=66589#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ocfs2: fix listxattr handling when the buffer is full_CVE-2026-53041\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"name\":\"zero redgem\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zero.redgem.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\",\"name\":\"zero redgem\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":191,\"height\":188,\"caption\":\"zero redgem\"},\"image\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\",\"name\":\"invoker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"caption\":\"invoker\"},\"sameAs\":[\"https:\\\/\\\/zero.redgem.net\"],\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ocfs2: fix listxattr handling when the buffer is full_CVE-2026-53041 - zero redgem","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zero.redgem.net\/?p=66589","og_locale":"en_US","og_type":"article","og_title":"ocfs2: fix listxattr handling when the buffer is full_CVE-2026-53041 - zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;&#8221;,&#8221;description&#8221;:&#8221;In the Linux kernel, the following vulnerability has been resolved:nnocfs2: fix listxattr handling when the buffer is fullnn[BUG]nIf an OCFS2 inode has both inline and...","og_url":"https:\/\/zero.redgem.net\/?p=66589","og_site_name":"zero redgem","article_published_time":"2026-06-28T03:30:05+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=66589#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=66589"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"ocfs2: fix listxattr handling when the buffer is full_CVE-2026-53041","datePublished":"2026-06-28T03:30:05+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=66589"},"wordCount":671,"commentCount":0,"publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"keywords":["CVE","CVSS","CVSS-7.1","exploit","HIGH","news","Security","tapic","Vulnerability"],"articleSection":["category_cve"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zero.redgem.net\/?p=66589#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=66589","url":"https:\/\/zero.redgem.net\/?p=66589","name":"ocfs2: fix listxattr handling when the buffer is full_CVE-2026-53041 - zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2026-06-28T03:30:05+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=66589#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=66589"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=66589#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"ocfs2: fix listxattr handling when the buffer is full_CVE-2026-53041"}]},{"@type":"WebSite","@id":"https:\/\/zero.redgem.net\/#website","url":"https:\/\/zero.redgem.net\/","name":"zero redgem","description":"","publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zero.redgem.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/zero.redgem.net\/#organization","name":"zero redgem","url":"https:\/\/zero.redgem.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":191,"height":188,"caption":"zero redgem"},"image":{"@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca","name":"invoker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","caption":"invoker"},"sameAs":["https:\/\/zero.redgem.net"],"url":"https:\/\/zero.redgem.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/66589","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=66589"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/66589\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=66589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=66589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=66589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}