# CVE-2026-52906: 9p: fix access mode flags being ORed instead of replaced

- Severity: High 7.7 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-06-09T12:36:03.521Z
- Modified: 2026-11-30T12:18:04.243Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

9p: fix access mode flags being ORed instead of replaced

Since commit 1f3e4142c0eb ("9p: convert to the new mount API"),
v9fs_apply_options() applies parsed mount flags with |= onto flags
already set by v9fs_session_init(). For 9P2000.L, session_init sets
V9FS_ACCESS_CLIENT as the default, so when the user mounts with
"access=user", both bits end up set. Access mode checks compare
against exact values, so having both bits set matches neither mode.

This causes v9fs_fid_lookup() to fall through to the default switch
case, using INVALID_UID (nobody/65534) instead of current_fsuid()
for all fid lookups. Root is then unable to chown or perform other
privileged operations.

Fix by clearing the access mask before applying the user's choice.

(As written by CVE List.)

## Affected

- Linux Linux: from cd4cd3c40997929745abb96f92276e45463db9d9 before 31a19f4592933a511ba8434835e25040926b9e70; from 54f1f99df0bd0b78425507b293683915894a8c39 before eeadf0fd1997ccad959c84f7bacdd62352ba8497; from 1f3e4142c0eb178089ea0cbc97506a061470ad27 before b8f037e87a083291190204b959cda417aaf01058; from 1f3e4142c0eb178089ea0cbc97506a061470ad27 before da2346a48a5a1fed86c3fe3d73c0b60e7b3027c9; 6.19 (not affected: before 6.19; from 7.0.4 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.19 before 7.0.4

## References

- <https://git.kernel.org/stable/c/31a19f4592933a511ba8434835e25040926b9e70>
- <https://git.kernel.org/stable/c/eeadf0fd1997ccad959c84f7bacdd62352ba8497>
- <https://git.kernel.org/stable/c/b8f037e87a083291190204b959cda417aaf01058> (patch)
- <https://git.kernel.org/stable/c/da2346a48a5a1fed86c3fe3d73c0b60e7b3027c9> (patch)

## Sources

- CVE List: [CVE-2026-52906](https://www.cve.org/CVERecord?id=CVE-2026-52906), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-52906](https://nvd.nist.gov/vuln/detail/CVE-2026-52906), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-52906 · Whole record: https://cve.day/CVE-2026-52906.json · Rebuilt by cve.day 2026-11-30T12:32:13.885Z
