{"id":"CVE-2026-52906","aliases":["CVE-2026-52906"],"related":[],"kind":"vulnerability","state":"published","title":"9p: fix access mode flags being ORed instead of replaced","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\n9p: fix access mode flags being ORed instead of replaced\n\nSince commit 1f3e4142c0eb (\"9p: convert to the new mount API\"),\nv9fs_apply_options() applies parsed mount flags with |= onto flags\nalready set by v9fs_session_init(). For 9P2000.L, session_init sets\nV9FS_ACCESS_CLIENT as the default, so when the user mounts with\n\"access=user\", both bits end up set. Access mode checks compare\nagainst exact values, so having both bits set matches neither mode.\n\nThis causes v9fs_fid_lookup() to fall through to the default switch\ncase, using INVALID_UID (nobody/65534) instead of current_fsuid()\nfor all fid lookups. Root is then unable to chown or perform other\nprivileged operations.\n\nFix by clearing the access mask before applying the user's choice.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\n9p: fix access mode flags being ORed instead of replaced\n\nSince commit 1f3e4142c0eb (\"9p: convert to the new mount API\"),\nv9fs_apply_options() applies parsed mount flags with |= onto flags\nalready set by v9fs_session_init(). For 9P2000.L, session_init sets\nV9FS_ACCESS_CLIENT as the default, so when the user mounts with\n\"access=user\", both bits end up set. Access mode checks compare\nagainst exact values, so having both bits set matches neither mode.\n\nThis causes v9fs_fid_lookup() to fall through to the default switch\ncase, using INVALID_UID (nobody/65534) instead of current_fsuid()\nfor all fid lookups. Root is then unable to chown or perform other\nprivileged operations.\n\nFix by clearing the access mask before applying the user's choice.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\n9p: corrige que los indicadores de modo de acceso se combinen con OR en lugar de ser reemplazados\n\nDesde el commit 1f3e4142c0eb ('9p: convertir a la nueva API de montaje'),\nv9fs_apply_options() aplica los indicadores de montaje analizados con |= sobre los indicadores ya establecidos por v9fs_session_init(). Para 9P2000.L, session_init establece V9FS_ACCESS_CLIENT como predeterminado, así que cuando el usuario monta con 'access=user', ambos bits terminan establecidos. Las comprobaciones de modo de acceso comparan con valores exactos, así que tener ambos bits establecidos no coincide con ninguno de los modos.\n\nEsto hace que v9fs_fid_lookup() caiga al caso predeterminado del switch, usando INVALID_UID (nobody/65534) en lugar de current_fsuid() para todas las búsquedas de fid. Root es entonces incapaz de chown o realizar otras operaciones privilegiadas.\n\nSe corrige limpiando la máscara de acceso antes de aplicar la elección del usuario.","source":"nvd"}],"published":"2026-06-09T12:36:03.521Z","modified":"2026-11-30T12:18:04.243Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.7,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"cd4cd3c40997929745abb96f92276e45463db9d9","fixed":"31a19f4592933a511ba8434835e25040926b9e70","status":"affected"},{"type":"git","introduced":"54f1f99df0bd0b78425507b293683915894a8c39","fixed":"eeadf0fd1997ccad959c84f7bacdd62352ba8497","status":"affected"},{"type":"git","introduced":"1f3e4142c0eb178089ea0cbc97506a061470ad27","fixed":"b8f037e87a083291190204b959cda417aaf01058","status":"affected"},{"type":"git","introduced":"1f3e4142c0eb178089ea0cbc97506a061470ad27","fixed":"da2346a48a5a1fed86c3fe3d73c0b60e7b3027c9","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.0.4","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.19","fixed":"7.0.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/31a19f4592933a511ba8434835e25040926b9e70","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eeadf0fd1997ccad959c84f7bacdd62352ba8497","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b8f037e87a083291190204b959cda417aaf01058","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/da2346a48a5a1fed86c3fe3d73c0b60e7b3027c9","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-52906","url":"https://www.cve.org/CVERecord?id=CVE-2026-52906","licence":"CVE Terms of Use","modified":"2026-11-30T12:08:29.756Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-52906","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52906","licence":"Public domain","modified":"2026-11-30T12:18:04.243Z"}],"updatedAt":"2026-11-30T12:32:13.885Z","epss":{"score":0.00128,"percentile":0.02678,"date":"2026-12-01T12:00:22.000Z"}}