{"id":7290,"date":"2026-09-04T18:49:29","date_gmt":"2026-09-04T10:49:29","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-74343"},"modified":"2026-09-04T18:49:29","modified_gmt":"2026-09-04T10:49:29","slug":"cve-2026-74343","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-74343","title":{"rendered":"CVE-2026-74343 [HIGH] &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nkernfs: fix xattr rac"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>kernfs: fix xattr race condition with multiple superblocks<\/p>\n<p>Multiple superblocks with different namespaces can share the same<br \/>\nkernfs_node when kernfs_test_super() finds a matching root but<br \/>\ndifferent namespace. This means multiple inodes from different<br \/>\nsuperblocks can reference the same kernfs_node-&gt;iattr-&gt;xattrs<br \/>\nstructure.<\/p>\n<p>The VFS layer only holds per-inode locks during xattr operations,<br \/>\nwhich is insufficient to serialize concurrent xattr modifications on<br \/>\nthe shared kernfs_node. This can lead to race conditions in<br \/>\nsimple_xattr_set() where the lookup-&gt;replace\/remove sequence is not<br \/>\natomic with respect to operations from other superblocks.<\/p>\n<p>Fix this by protecting xattr operations with the existing hashed<br \/>\nkernfs_locks-&gt;open_file_mutex[] array, which is already used to<br \/>\nprotect per-node open file data. The hashed mutex array provides<br \/>\nscalable per-node serialization (scaled by CPU count, up to 1024 locks<br \/>\non 32+ CPU systems) with zero memory overhead.<\/p>\n<p>Changes:<br \/>\n&#8211; Rename open_file_mutex[] to node_mutex[] to reflect dual purpose<br \/>\n&#8211; Add kernfs_node_lock_ptr() and kernfs_node_lock() helpers<br \/>\n&#8211; Protect simple_xattr_set() calls in kernfs_xattr_set() and<br \/>\n  kernfs_vfs_user_xattr_set() with the hashed mutex<br \/>\n&#8211; Update file.c to use new helpers via compatibility wrappers<br \/>\n&#8211; Update documentation to explain the extended lock usage<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>kernfs: fix xattr race condition with multiple superblocks<\/p>\n<p>Multiple superblocks with different namespaces can share the same<br \/>\nkernf<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-7290","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/7290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}