diff options
| author | Yifei Gao <gyf161023@gmail.com> | 2026-08-06 14:42:54 +0000 |
|---|---|---|
| committer | Dominique Martinet <asmadeus@codewreck.org> | 2026-09-22 07:55:03 +0000 |
| commit | 4d183e6f153245aca2534e372152583b868dd925 (patch) | |
| tree | a2fa78ddecce1d55d494ffad6024a027461159b7 /scripts/basic/split-include.c | |
| parent | 5bfef2b6dafe83fe2d8d210d54093a8f48cfc97e (diff) | |
| download | linux-4d183e6f153245aca2534e372152583b868dd925.tar.gz linux-4d183e6f153245aca2534e372152583b868dd925.zip | |
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.
Fixes: 728356dedeff ("9p: Add refcount to p9_req_t")
Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Yifei Gao <gyf161023@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Message-ID: <20260806144255.4167019-1-gyf161023@gmail.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
