CVE-2026-99784: 9p/xen: fix refcount leak in p9_xen_response() on wrong tag
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
9p/xen: fix refcount leak in p9_xen_response() on wrong tag
p9_xen_response() looks up the request for an incoming reply with p9_tag_lookup(), which takes a reference on the returned p9_req_t. When the tag does not resolve to a request in REQ_STATUS_SENT, the function warns and continues the loop without dropping that reference, permanently leaking the p9_req_t and its msize buffers. The reply header, including the tag, is supplied by the backend, so a malicious or buggy 9P backend can leak kernel memory on every crafted response.
Drop the reference before continuing.
The Linux kernel CVE team has assigned CVE-2026-99784 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.20 with commit 728356dedeff8ef999cb436c71333ef4ac51a81c and fixed in 6.12.118 with commit f05c30653f6b25766f2e4c18bf015be9b873e18c Issue introduced in 4.20 with commit 728356dedeff8ef999cb436c71333ef4ac51a81c and fixed in 6.18.64 with commit 1767c02fb555a093b6584fc43f11f0ec1aa32d94 Issue introduced in 4.20 with commit 728356dedeff8ef999cb436c71333ef4ac51a81c and fixed in 7.3.5 with commit 3480ece36ed728c2ddda004bc3e2b99bb364765b Issue introduced in 4.20 with commit 728356dedeff8ef999cb436c71333ef4ac51a81c and fixed in 7.4-rc2 with commit 4d183e6f153245aca2534e372152583b868dd925 Issue introduced in 4.19.57 with commit 3665a4d9dca1bd06bc34afb72e637fe01b2776ee
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-99784
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/f05c30653f6b25766f2e4c18bf015be9b873e18c https://git.kernel.org/stable/c/1767c02fb555a093b6584fc43f11f0ec1aa32d94 https://git.kernel.org/stable/c/3480ece36ed728c2ddda004bc3e2b99bb364765b https://git.kernel.org/stable/c/4d183e6f153245aca2534e372152583b868dd925