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 91FC1493633 for ; Fri, 25 Sep 2026 10:29:51 +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=1790332192; cv=none; b=aNBNZ8xRuiiBqI6BiWlEOYc2yCQFmODhAY3oBQ2TDvUoctrQIxXIAaYr2qvj68BNCeNpkGeg9ttGSLB0m7U2u+Etj3VlScBcVBdA6ucl4Ghkzrn9Nv3a6UQVXDuX1wm6jtc5LQ+tsDfrryBzWvuQb6q+iRqJNj7w+x8EfGRmYGw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332192; c=relaxed/simple; bh=+pp95QqBUs5qbRXqc5tcXRZ41l3CEbyBBSzxJidaDEo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Dsd3vgSSUnkU8UttfxFaxIEAD+Fe6kpbzY4XFsHTIIGZadGn6QLQoDzsfcn85EMxk+KVtI3rpp/6G7PzWHCNeLUm/HbfltlYi2iQ/RJxAhUpcyh65VBWM2xeoWpogXVrUMCNttLBV17IJH5a8bLJthz3uxgMOX5KoYGi7Hsejt0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Z5ygv7Mz; 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="Z5ygv7Mz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC4701F000FF; Fri, 25 Sep 2026 10:29:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332191; bh=bcvT3fZumq63D34jFf0O12KxrBI4FgIkw9iM/2bniHY=; h=From:To:Cc:Subject:Date:Reply-To; b=Z5ygv7MzSOAGH31Z/u8AsmP2T59lxiuCgzis+uTxCAqyxXzzBPvDCqk7ws09A2RCp hgWyby4IC315uu0Sv8YRHHmpCgsPPTPmPpJdJHH502+r4k5KNzX60m9/gvB0z7l4X0 rM2JOZ6kjjjqmojXqhohRWDW5XYJPPFKoIMcIK5s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97952: sunvdc: unmap LDC cookies when the descriptor send fails Date: Fri, 25 Sep 2026 12:24:15 +0200 Message-ID: <2026092514-CVE-2026-97952-f387@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=4478; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ikK2ge/q/Q+RcMySglTlcvVqJAcoehdR8C0nmO3WmJM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvMM2LXgrq84myW6orscjHfJhnvzzs6HLN2gq3qyp3 fqO74ZfRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk2zaG+ZnX1ybm2nspZDgp 2LMqMXGUf44SYZgf+t3f9vWpv/cmikw++vu4ybHvXxz2AwA= 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: sunvdc: unmap LDC cookies when the descriptor send fails __send_request() maps the request's pages into the LDC channel's map table (ldc_map_sg()), fills in the descriptor and marks it VIO_DESC_READY before ringing the doorbell via __vdc_tx_trigger(). When the trigger fails, the error path only prints a message: the descriptor stays READY and the cookies are never unmapped. The mapping is normally released in vdc_end_one() when the peer completes the descriptor - but a descriptor whose doorbell was never sent will never complete, and since dr->prod is not advanced on failure, the reset path (vdc_requeue_inflight(), which walks [cons, prod)) never visits it either. The map table entries are leaked permanently. Since commit a11f6ca9aef9 ("sunvdc: Do not spin in an infinite loop when vio_ldc_send() returns EAGAIN") trigger failures occur in practice under load, so every resulting I/O error also leaks one request's worth of entries from the fixed-size (8192 entries per channel) map table. Because the allocator hands out contiguous ranges, fragmentation makes large multi-segment requests fail first as the table drains, until ldc_map_sg() fails permanently and the disk is dead until reboot. It also makes any retry-based recovery unusable: requeuing the request on -EAGAIN remaps the pages on every attempt, overwriting desc->cookies and orphaning the previous mapping, so the table drains at the retry rate. This is the memory exhaustion observed when the requeue approach was first tested in October 2025. Roll back on failure: unmap the cookies, mark the descriptor FREE again and clear the request entry. If the trigger failed with -ENOTCONN, __vdc_tx_trigger() has already reset the port, which tears down and reallocates both the dring and the LDC channel including its map table - nothing to roll back, and the stale descriptor must not be touched. The Linux kernel CVE team has assigned CVE-2026-97952 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit a11f6ca9aef989b56cd31ff4ee2af4fb31a172ec and fixed in 6.12.111 with commit ab81a5c1014a38dab0fb402609fd866b0bcb4726 Issue introduced in 5.0 with commit a11f6ca9aef989b56cd31ff4ee2af4fb31a172ec and fixed in 6.18.53 with commit 57835952566f0be9b365a6eb3a70b397a9d5ef47 Issue introduced in 5.0 with commit a11f6ca9aef989b56cd31ff4ee2af4fb31a172ec and fixed in 7.2.7 with commit f3322baa3a8ac87730feae952c1146269d78e098 Issue introduced in 5.0 with commit a11f6ca9aef989b56cd31ff4ee2af4fb31a172ec and fixed in 7.3-rc3 with commit 0c6da21fa35e03fc74f09895433ccd6d4a9c3530 Issue introduced in 4.4.175 with commit 627e656239c63d8a81672d08de7885e89c12fa75 Issue introduced in 4.9.156 with commit a1ef7d5da9b2c145f811a80bb8197df6037a7572 Issue introduced in 4.14.99 with commit 7ab4b6526fdcdfa7772984bbcd2ac4fd14fa223b Issue introduced in 4.19.21 with commit 3fbba4e55051d01a72b56ea192064175924bf56a Issue introduced in 4.20.8 with commit 3e380fc2ae4d18210eec9c472b12e2b2544f7dc1 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-97952 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: drivers/block/sunvdc.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/ab81a5c1014a38dab0fb402609fd866b0bcb4726 https://git.kernel.org/stable/c/57835952566f0be9b365a6eb3a70b397a9d5ef47 https://git.kernel.org/stable/c/f3322baa3a8ac87730feae952c1146269d78e098 https://git.kernel.org/stable/c/0c6da21fa35e03fc74f09895433ccd6d4a9c3530