Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154494; b=N02d/Exf+98DZrkKkW3HWrMhhau7iRSmcjQr/aoEQ2eYPHzURNexiLUm4vy9KorHbebH J1MwlO7l2cWs/Ez5kg/oAWnMrWmLFiyD+ZCSU6sxA+EWiqaNSEC5BvhhFsM0EV9bYc5PP hTDNovs2ccM3xBy3Z0Pst6xtbGTasVQVVlyO6hldGEKK1MTY3cfAGNgcFw40mb7zjWZ4n NLp3XBXaP+N8CmFcGlpTbvjcZu1Ql2/A85PTUc5QUnLLuQbWh63bUjJfTZd7hAvpLYMNa XMzpRWAldVVIhm81BwpE65mctrblYUMyMt6YCohMnzuiN4ZEnuy0dugk+TgBEIq0Amw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154494; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=KhmZ3eOG8dLAGWEyjfrr2AOwFYMTP2oLcv4igDQbeX0=; b=K4QNrXuwDKp12KCpr8YkWjy4akCOgHsB+xMw6pVdlKiiLOxdMof+3qlSl+1if8j9xfzX GUbZ3SZWMANCgx7S6PUOjvYuGzBdbYscAxoAMNzxKeJgnA+/sQ0JKZb1R+ERAmFuAjmJ1 K77H2OwHeUpS7z1BoY9kJpleKNyZ6y09uppYpRx3vviMv7ggEjadVzFwNQ366HEw+P7jU VYUpiWWioxYDpd/NSF99LsnMEazRff8kDhAX2BvTUT4ILn+AR19g6t5C1GuGinYSIgaxB o0CjMKJY8ouWi2Hdt+Bop59CIvX1LRonnMvxcq16pWM70yIGf55C/YIvcc+lsdYvNyQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=H8+UQAud; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4DBD606A51E for ; Fri, 20 Nov 2026 06:01:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=H8+UQAud Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2B751F000CA; Fri, 20 Nov 2026 06:01:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154494; bh=KhmZ3eOG8dLAGWEyjfrr2AOwFYMTP2oLcv4igDQbeX0=; h=From:To:Cc:Subject:Date:Reply-To; b=H8+UQAudiGkRqDCaRxwDyO9k1QXfbn9MpzRBycQQFmwacKwa8J80A2B7JSHOBik/k Gxz05yYOnKNFs6TiquDTrNdHiw0Uf54Yku5MBi0fbocwbpFZxBTCf9mrp5ijoK6ZLS 0h/yqGYYi16u8GQ4mj5uIHUu6O4nBTEmJbBJQOkE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99764: 9p/xen: validate the response size from the backend Date: Fri, 20 Nov 2026 06:52:30 +0100 Message-ID: <2026112026-CVE-2026-99764-5885@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4512; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=d7ZEANgLEHLkJgO/71tAO4hNxH48rL9rFyMxQGoE2xk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7y+6p5LSprA9/SDTq/czortTV97eeIT9f2alrobCc sW7c18/7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJrD7CMM+2MDls39NGmd+l 4ZPe7THbJfv1tC/DgiPBHb/8U68HyhYl/TFQTg38+034CgA= 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/xen: validate the response size from the backend p9_xen_response() takes the length of an incoming response from the ring -- the first field of the 9p header, which the Xen transport reuses as its framing header -- and uses it to advance the consumer index, but never checks that it is at least the header size or no larger than the number of bytes the backend has actually produced. A malicious or buggy backend can post a response whose size is smaller than the header (for example 0). The consumer index then never advances, so the response work re-reads the same ring contents instead of making progress. In testing this raced with the teardown that the malformed reply triggers and dereferenced a freed p9_client: 9pfs 9pfs-0: Wrong req tag=ffff BUG: kernel NULL pointer dereference, address: 0000000000000060 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: Oops: 0000 [#1] SMP NOPTI CPU: 0 UID: 0 PID: 11 Comm: kworker/0:1 Not tainted 7.2.0-rc5 #6 PREEMPT(lazy) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.17.0-0-gb52ca86e094d-prebuilt.qemu.org 04/01/2014 Workqueue: events p9_xen_response RIP: 0010:idr_find+0x4/0x10 RSP: 0018:ffffbf5d80063de8 EFLAGS: 00010202 RAX: 0000000000000001 RBX: ffffa229c21195a0 RCX: ffffa229c2400000 RDX: ffffa229c11c2200 RSI: 000000000000ffff RDI: 0000000000000050 RBP: 000000000000ffff R08: 3fffffffffffdfff R09: ffffffffffffffff R10: 3fffffffffffdfff R11: ffffffff87a60e80 R12: 0000000000000050 R13: 0000000000000000 R14: 000000000000ffff R15: 0000000000100000 FS: 0000000000000000(0000) GS:ffffa22a7661c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000060 CR3: 000000003ac34002 CR4: 0000000000770ef0 PKRU: 55555554 Call Trace: p9_tag_lookup+0x2b/0x90 p9_xen_response+0x17c/0x2e0 process_one_work+0x16a/0x3a0 worker_thread+0x172/0x2e0 kthread+0xdd/0x110 ret_from_fork+0x18b/0x240 ret_from_fork_asm+0x1a/0x30 Modules linked in: CR2: 0000000000000060 ---[ end trace 0000000000000000 ]--- Reject a response whose size is outside [sizeof(header), queued] before using it, matching the validation the backend already applies to incoming requests. The Linux kernel CVE team has assigned CVE-2026-99764 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit f66c72bea1293786b9916894019f96bcd729505b and fixed in 6.12.118 with commit 79a3d1bfd5b25bd0da01df4a364c113715146970 Issue introduced in 4.12 with commit f66c72bea1293786b9916894019f96bcd729505b and fixed in 6.18.64 with commit 0ca38f8aeca45f47123cbf65710b889078558f8a Issue introduced in 4.12 with commit f66c72bea1293786b9916894019f96bcd729505b and fixed in 7.3.5 with commit c342fef95252c92c46531da676784c833806fd9a Issue introduced in 4.12 with commit f66c72bea1293786b9916894019f96bcd729505b and fixed in 7.4-rc2 with commit 9b4cf60c6b739461c5b4ec9c52587da6b2608786 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-99764 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/trans_xen.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/79a3d1bfd5b25bd0da01df4a364c113715146970 https://git.kernel.org/stable/c/0ca38f8aeca45f47123cbf65710b889078558f8a https://git.kernel.org/stable/c/c342fef95252c92c46531da676784c833806fd9a https://git.kernel.org/stable/c/9b4cf60c6b739461c5b4ec9c52587da6b2608786