CVE-2026-63795

Source
https://cve.org/CVERecord?id=CVE-2026-63795
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63795.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-63795
Downstream
Published
2026-07-19T12:02:04.069Z
Modified
2026-07-21T03:47:30.086640763Z
Severity
  • 10.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
9p: avoid putting oldfid in p9_client_walk() error path
Details

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

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

When p9clientwalk() 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 clunkfid, which currently calls p9fid_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 p9clientwalk() calls and a later non-cloning walk fails. A reproducer and refcount warning logs are available on request.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63795.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b48dbb998d70b7f48c2ec0a15c3cf47136808e4e
Fixed
99c379ca1e221c3d75c7c804ebbf4e5ee37a3070
Fixed
b84f46179c806450b89821221ea5bd9a1698aba8
Fixed
a61bdcba4f64c2f90d01461913f429ab151f1ca6
Fixed
6dbe9443d9f5f7fb6d319a7b77108853ae6c6bea
Fixed
a7656d368265d085ac9bb85ab31b0cdb72ad8c38
Fixed
1a3860d46e3eb47dbd60339783cdad7904486b9f

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63795.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.0.0
Fixed
6.1.177
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.144
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.95
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.38
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63795.json"