# CVE-2026-63795: 9p: avoid putting oldfid in p9_client_walk() error path

- Severity: Critical 10.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- 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.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2026-07-19T12:02:04.069Z
- Modified: 2026-10-19T20:19:19.950Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

## Description

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

9p: avoid putting oldfid in p9_client_walk() error path

When p9_client_walk() is called with clone set to false, fid aliases
oldfid. If the walk subsequently fails after the request has been sent,
the error path jumps to clunk_fid, which currently calls p9_fid_put(fid)
unconditionally.

This drops a reference to oldfid even though ownership of oldfid remains
with the caller. If this is the last reference, oldfid can be clunked and
destroyed while the caller still expects it to be valid. A later use or
put of oldfid can then trigger a use-after-free or refcount underflow.

Fix this by only putting fid in the clunk_fid error path when it does not
alias oldfid, matching the existing guard in the error path below.

This can be triggered when a multi-component walk is split into multiple
p9_client_walk() calls and a later non-cloning walk fails. A reproducer
and refcount warning logs are available on request.

(As written by CVE List.)

## Affected

- Linux Linux: from b48dbb998d70b7f48c2ec0a15c3cf47136808e4e before 99c379ca1e221c3d75c7c804ebbf4e5ee37a3070; from b48dbb998d70b7f48c2ec0a15c3cf47136808e4e before b84f46179c806450b89821221ea5bd9a1698aba8; from b48dbb998d70b7f48c2ec0a15c3cf47136808e4e before a61bdcba4f64c2f90d01461913f429ab151f1ca6; from b48dbb998d70b7f48c2ec0a15c3cf47136808e4e before 6dbe9443d9f5f7fb6d319a7b77108853ae6c6bea; from b48dbb998d70b7f48c2ec0a15c3cf47136808e4e before a7656d368265d085ac9bb85ab31b0cdb72ad8c38; from b48dbb998d70b7f48c2ec0a15c3cf47136808e4e before 1a3860d46e3eb47dbd60339783cdad7904486b9f; 6.0 (not affected: before 6.0; from 6.1.177 up to 6.1.*; from 6.6.144 up to 6.6.*; from 6.12.95 up to 6.12.*; from 6.18.38 up to 6.18.*; from 7.1.3 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 6.0 before 6.1.177; from 6.2 before 6.6.144; from 6.7 before 6.12.95; from 6.13 before 6.18.38; from 6.19 before 7.1.3

## References

- <https://git.kernel.org/stable/c/99c379ca1e221c3d75c7c804ebbf4e5ee37a3070> (patch)
- <https://git.kernel.org/stable/c/b84f46179c806450b89821221ea5bd9a1698aba8> (patch)
- <https://git.kernel.org/stable/c/a61bdcba4f64c2f90d01461913f429ab151f1ca6> (patch)
- <https://git.kernel.org/stable/c/6dbe9443d9f5f7fb6d319a7b77108853ae6c6bea> (patch)
- <https://git.kernel.org/stable/c/a7656d368265d085ac9bb85ab31b0cdb72ad8c38> (patch)
- <https://git.kernel.org/stable/c/1a3860d46e3eb47dbd60339783cdad7904486b9f> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2026-63795 · Whole record: https://cve.day/CVE-2026-63795.json · Rebuilt by cve.day 2026-11-25T22:59:28.709Z
