{"id":"CVE-2026-63795","summary":"9p: avoid putting oldfid in p9_client_walk() error path","details":"In the Linux kernel, the following vulnerability has been resolved:\n\n9p: avoid putting oldfid in p9_client_walk() error path\n\nWhen p9_client_walk() is called with clone set to false, fid aliases\noldfid. If the walk subsequently fails after the request has been sent,\nthe error path jumps to clunk_fid, which currently calls p9_fid_put(fid)\nunconditionally.\n\nThis drops a reference to oldfid even though ownership of oldfid remains\nwith the caller. If this is the last reference, oldfid can be clunked and\ndestroyed while the caller still expects it to be valid. A later use or\nput of oldfid can then trigger a use-after-free or refcount underflow.\n\nFix this by only putting fid in the clunk_fid error path when it does not\nalias oldfid, matching the existing guard in the error path below.\n\nThis can be triggered when a multi-component walk is split into multiple\np9_client_walk() calls and a later non-cloning walk fails. A reproducer\nand refcount warning logs are available on request.","modified":"2026-07-22T05:29:49.576497179Z","published":"2026-07-19T12:02:04.069Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63795.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1a3860d46e3eb47dbd60339783cdad7904486b9f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6dbe9443d9f5f7fb6d319a7b77108853ae6c6bea"},{"type":"WEB","url":"https://git.kernel.org/stable/c/99c379ca1e221c3d75c7c804ebbf4e5ee37a3070"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a61bdcba4f64c2f90d01461913f429ab151f1ca6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a7656d368265d085ac9bb85ab31b0cdb72ad8c38"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b84f46179c806450b89821221ea5bd9a1698aba8"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63795.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63795"},{"type":"PACKAGE","url":"https://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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"}]}