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 A24ED4499B0 for ; Fri, 25 Sep 2026 10:35:41 +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=1790332542; cv=none; b=hQ59WP5mDe5snZoFjKahlQGHt90Mqv++3WxDf4+bS/mAlXrKfmLXINcoOCbkN/XvhQl9qlwyQTabI21FBxtYBza2H3xllFSiLyh2FZDV4Tc1yTAVGw9jGVgrsarVl8cMe8XcnbBMUgsBp0sDu+SEnra3tDwGWWluN00M3rSGlyc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332542; c=relaxed/simple; bh=oGmq+n83QXdc6jZCpb+P9if27p0vW00kJBpbxDah4Ac=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RwRQ9pfotkz0zFIJXS2ic03Isa5MWGVkZJ6qOHwyTjsEClj7GSmdJxHaYkKkrqSEtDbnDWA1mOMgoncEybjTYflpmkC3dl99MpdrbU0If/MzHujXk7p3DvrRudZAjP4E9Ff0Q5lI08J69SOPFn8aGhXmcW0rE0S/cNdzFTOxNEU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XptpEWZx; 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="XptpEWZx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C74A31F000FF; Fri, 25 Sep 2026 10:35:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332541; bh=3t4R7G8dfReZQgsNijlZ1uL/f1HkUYW8TO5g3gcSNcA=; h=From:To:Cc:Subject:Date:Reply-To; b=XptpEWZxSNDJK100nYuLG/D9ndLcQbmjYsCyDtR7TpIPsWXyXP3LkpQiROg+XIxbu VYcSNrsDJtpS9bEvsQBSWnk5cMVg57qYML47paO1+0fhkmXWaQwhKhufNA/B/9gVmF J6mWUr75bzpEEDocXMtzZG4tFwWQR4crtP8cODm8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98072: net/rds: use wq_has_sleeper() in release_in_xmit() Date: Fri, 25 Sep 2026 12:26:14 +0200 Message-ID: <2026092536-CVE-2026-98072-570e@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=4400; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=A+gcyAzrUnQ3Wnj9iBC8Ir+UW25npHtbWEdUg4PNb/w=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvHNqvyanlYnPVZjCMGNq7eut0x6lrJ3J0yf6U8uy6 eGtaZv6OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi3SwM86MZNn03n/dK+f0T k4CCTctXnhKxc2NYMPmKxhGhqul+gb97E1fPmTx3e2roPQA= 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: net/rds: use wq_has_sleeper() in release_in_xmit() release_in_xmit() clears RDS_IN_XMIT with clear_bit_unlock() and then checks waitqueue_active() to decide whether anyone needs waking. clear_bit_unlock() is only a release operation: it orders the critical section before the bit clear, but does not order the subsequent plain load of the wait queue head after it. The waiter side does the mirror image - it adds itself to the wait queue and then tests the bit. That is the classic store-buffering pattern: the releasing CPU can read the wait queue as empty while the waiting CPU still reads the bit as set, so the sleeper is never woken. The waiters are rds_conn_shutdown() and rds_tcp_reset_callbacks(), both in uninterruptible wait_event() with no timeout. A lost wake-up strands the shutdown worker on its single-threaded workqueue until some other sender releases the bit again - and on a connection that is being torn down precisely because it failed, there may never be another sender. The barrier used to be there: release_in_xmit() did clear_bit() followed by smp_mb__after_atomic() until commit 1422f28826d2 ("rds: introduce acquire/release ordering in acquire/release_in_xmit()") folded both into clear_bit_unlock(), which strengthened the lock hand-off but silently dropped the full barrier the wake-up check depends on. The refill counterpart, release_refill() in net/rds/ib_recv.c, still carries its smp_mb__after_atomic() for exactly this reason. Use wq_has_sleeper(), which is waitqueue_active() preceded by the required full barrier. The Linux kernel CVE team has assigned CVE-2026-98072 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 1422f28826d2a0c11e5240b3e951c9e214d8656e and fixed in 6.12.111 with commit ed7ee0cd0e136d02f87f13181b1a89880463c7e9 Issue introduced in 6.9 with commit 1422f28826d2a0c11e5240b3e951c9e214d8656e and fixed in 6.18.53 with commit a269795107f45adc95975a83324f8fef40bec4ce Issue introduced in 6.9 with commit 1422f28826d2a0c11e5240b3e951c9e214d8656e and fixed in 7.2.7 with commit 3764627b30a283e611e652c4a2bb8cdc74a75a99 Issue introduced in 6.9 with commit 1422f28826d2a0c11e5240b3e951c9e214d8656e and fixed in 7.3-rc2 with commit 6d0c8b7073913011459cf968cbbadd341e166bc3 Issue introduced in 4.19.311 with commit bec6c4ce1169a565c58c347d5d0ac22e46d507d6 Issue introduced in 5.4.273 with commit f781fb5177cdfd9a6c98cd94e30275457c6461ac Issue introduced in 5.10.214 with commit 1e1e4316fcaeb9cd6bc56c91127e88625237dd44 Issue introduced in 5.15.153 with commit 8c378cc522aedd5fa5aa53486b43a4d552fbbd5c Issue introduced in 6.1.83 with commit 52287ed416a10bc3d3e204a3186d9509ab3ee634 Issue introduced in 6.6.23 with commit 4a4dffdff9ea6201665f5d0a5042011d09bd527f Issue introduced in 6.7.11 with commit 917135195200e20e5244b9c3f2bb40f3d5e02510 Issue introduced in 6.8.2 with commit d792459a6e2ae21c7f5107babd63e52e4c5ab93a 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-98072 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/rds/send.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/ed7ee0cd0e136d02f87f13181b1a89880463c7e9 https://git.kernel.org/stable/c/a269795107f45adc95975a83324f8fef40bec4ce https://git.kernel.org/stable/c/3764627b30a283e611e652c4a2bb8cdc74a75a99 https://git.kernel.org/stable/c/6d0c8b7073913011459cf968cbbadd341e166bc3