Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD94437BE7F for ; Sun, 19 Jul 2026 12:02:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462566; cv=none; b=Mand1bGQ8Dx5LEX1FMFjWhp1aJeTBEs9hTF23HXhseeA09crart2ytM/RZKy5m9sYxLSzen2jPzP6f44kg1CEEf7g6kkt6CHJ4ea5+NUDw/vtWOaRcXlL4/E9kt8SAUBophp1XzBr0Dq6jxb8Pylf1az7GexI0C/2ASLk2j2fCI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462566; c=relaxed/simple; bh=tqP4HRxHn6SR7eEX2oY1eL6i4+AL4l6FaIPbEs+qiV0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OJcuDlMZ5Nxx0All0qPC9Y6yJrSg8PMKaicaOITKhaBztgttjfJGM2t2rGNBBV/vI+r08qmAISvVaKHbbZMML72DXmZij44LhU6fc29F3QCCcTQ5bP0Mbl68NnVc2N+ozAI08RlOfj1hhJjo9A51s+K/7AzO2cXmKf0JMi/dP8A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=c6zkSamg; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="c6zkSamg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DACB1F000E9; Sun, 19 Jul 2026 12:02:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784462565; bh=j+5oDaTrifHlwR73zaD3ZH73RVlgN8UwYN/yDilJPSo=; h=From:To:Cc:Subject:Date:Reply-To; b=c6zkSamghkZ5d9Nwbgx5aNijuRHXxMcpVambxoqece0gdQh5sA28N5qrTmeMskn8o Fiw4ooN5PI/yVdocUqD9dEvwA6vW+yVDZq3j9u4Rvd8V4SRP/98SmdGPQPjkhUmktR gfit8UoiCFu00Dpcuo7+US/oOF8ZV/5bUEtgK9vc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63795: 9p: avoid putting oldfid in p9_client_walk() error path Date: Sun, 19 Jul 2026 14:02:12 +0200 Message-ID: <2026071959-CVE-2026-63795-709a@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3542; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uB6R9PiaogX/ijz+N+Ety3uipK6c+OWWqaLvJj6kELs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxe3akOE1onzh5e+n0mg0tByq5Ui8I2NqlTeGpsH/VF XBrqfzKjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIvRfD/JD7LdIek8Q4c0rq 3KT3zfc/cFY5kGF+QOeXoEZviZKbtQGZV/tvLK7kfMcFAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-63795 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit b48dbb998d70b7f48c2ec0a15c3cf47136808e4e and fixed in 6.1.177 with commit 99c379ca1e221c3d75c7c804ebbf4e5ee37a3070 Issue introduced in 6.0 with commit b48dbb998d70b7f48c2ec0a15c3cf47136808e4e and fixed in 6.6.144 with commit b84f46179c806450b89821221ea5bd9a1698aba8 Issue introduced in 6.0 with commit b48dbb998d70b7f48c2ec0a15c3cf47136808e4e and fixed in 6.12.95 with commit a61bdcba4f64c2f90d01461913f429ab151f1ca6 Issue introduced in 6.0 with commit b48dbb998d70b7f48c2ec0a15c3cf47136808e4e and fixed in 6.18.38 with commit 6dbe9443d9f5f7fb6d319a7b77108853ae6c6bea Issue introduced in 6.0 with commit b48dbb998d70b7f48c2ec0a15c3cf47136808e4e and fixed in 7.1.3 with commit a7656d368265d085ac9bb85ab31b0cdb72ad8c38 Issue introduced in 6.0 with commit b48dbb998d70b7f48c2ec0a15c3cf47136808e4e and fixed in 7.2-rc1 with commit 1a3860d46e3eb47dbd60339783cdad7904486b9f Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-63795 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/9p/client.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/99c379ca1e221c3d75c7c804ebbf4e5ee37a3070 https://git.kernel.org/stable/c/b84f46179c806450b89821221ea5bd9a1698aba8 https://git.kernel.org/stable/c/a61bdcba4f64c2f90d01461913f429ab151f1ca6 https://git.kernel.org/stable/c/6dbe9443d9f5f7fb6d319a7b77108853ae6c6bea https://git.kernel.org/stable/c/a7656d368265d085ac9bb85ab31b0cdb72ad8c38 https://git.kernel.org/stable/c/1a3860d46e3eb47dbd60339783cdad7904486b9f