{"id":79517,"date":"2026-06-09T17:46:45","date_gmt":"2026-06-09T14:16:45","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-52906-9p-fix-access-mode-flags-being-ored-instead-of-replaced\/"},"modified":"2026-06-09T17:46:45","modified_gmt":"2026-06-09T14:16:45","slug":"cve-2026-52906-9p-fix-access-mode-flags-being-ored-instead-of-replaced","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-52906-9p-fix-access-mode-flags-being-ored-instead-of-replaced\/","title":{"rendered":"CVE-2026-52906 &#8211; 9p: fix access mode flags being ORed instead of replaced"},"content":{"rendered":"<p>CVE ID :CVE-2026-52906<\/p>\n<p>  Published : June 9, 2026, 2:16 p.m. | 19\u00a0minutes ago<\/p>\n<p>  Description :In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>9p: fix access mode flags being ORed instead of replaced<\/p>\n<p>Since commit 1f3e4142c0eb (&#8220;9p: convert to the new mount API&#8221;),<br \/>\nv9fs_apply_options() applies parsed mount flags with |= onto flags<br \/>\nalready set by v9fs_session_init(). For 9P2000.L, session_init sets<br \/>\nV9FS_ACCESS_CLIENT as the default, so when the user mounts with<br \/>\n&#8220;access=user&#8221;, both bits end up set. Access mode checks compare<br \/>\nagainst exact values, so having both bits set matches neither mode.<\/p>\n<p>This causes v9fs_fid_lookup() to fall through to the default switch<br \/>\ncase, using INVALID_UID (nobody\/65534) instead of current_fsuid()<br \/>\nfor all fid lookups. Root is then unable to chown or perform other<br \/>\nprivileged operations.<\/p>\n<p>Fix by clearing the access mask before applying the user&#8217;s choice.<\/p>\n<p>  Severity: 0.0 | NA<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-52906 Published : June 9, 2026, 2:16 p.m. | 19\u00a0minutes ago Description :In the Linux kernel, the following vulnerability has been resolved: 9p: fix access mode flags being ORed instead of replaced Since commit 1f3e4142c0eb (&#8220;9p: convert to the new mount API&#8221;), v9fs_apply_options() applies parsed mount flags with |= onto flags already set &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-79517","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/79517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=79517"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/79517\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=79517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=79517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=79517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}