CVE-2026-63795

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

State
Published
Severity
10.0 Critical
Published
Jul 19, 2026
Updated
Oct 19, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.110.0 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HLinux

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • b48dbb998d70b7f48c2ec0a15c3cf47136808e4e to before 99c379ca1e221c3d75c7c804ebbf4e5ee37a3070Affected
  • b48dbb998d70b7f48c2ec0a15c3cf47136808e4e to before b84f46179c806450b89821221ea5bd9a1698aba8Affected
  • b48dbb998d70b7f48c2ec0a15c3cf47136808e4e to before a61bdcba4f64c2f90d01461913f429ab151f1ca6Affected
  • b48dbb998d70b7f48c2ec0a15c3cf47136808e4e to before 6dbe9443d9f5f7fb6d319a7b77108853ae6c6beaAffected
  • b48dbb998d70b7f48c2ec0a15c3cf47136808e4e to before a7656d368265d085ac9bb85ab31b0cdb72ad8c38Affected
  • b48dbb998d70b7f48c2ec0a15c3cf47136808e4e to before 1a3860d46e3eb47dbd60339783cdad7904486b9fAffected
LinuxLinux
  • 6.0Affected
  • before 6.0Not affected
  • 6.1.177 through 6.1.*Not affected
  • 6.6.144 through 6.6.*Not affected
  • 6.12.95 through 6.12.*Not affected
  • 6.18.38 through 6.18.*Not affected
  • 7.1.3 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.