CVE-2026-63795

CRITICAL

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

Title source: cna
STIX 2.1

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

CVSS v3 10.0
EPSS 0.0048
EPSS Percentile 38.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Details

CWE
CWE-416
Status published
Products (20)
linux/Kernel 6.0.0 - 6.1.177linux
linux/Kernel 6.13.0 - 6.18.38linux
linux/Kernel 6.19.0 - 7.1.3linux
linux/Kernel 6.2.0 - 6.6.144linux
linux/Kernel 6.7.0 - 6.12.95linux
Linux/Linux < 6.0
Linux/Linux 6.0
Linux/Linux 6.1.177 - 6.1.*
Linux/Linux 6.12.95 - 6.12.*
Linux/Linux 6.18.38 - 6.18.*
... and 10 more
Published Jul 19, 2026
Tracked Since Jul 19, 2026