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 C3C0A40759B for ; Wed, 27 May 2026 13:03:33 +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=1779887014; cv=none; b=asrrooleEvBtCLmSa6SkVYxmu40qnxer60kwXKaU6/fNDT6rMTS2g5zqVKUBjgx+peSqsr5jBhGQvo6pHxi45eSEk5wqQZIOjHvd+np9NVz0PPHda7sOvxIvZW0an8IEYxyVCWqlVnjfI4RfD1OpElF6mosyWHpFrquiI0j2MP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887014; c=relaxed/simple; bh=aNaYNnigtJR1XHlXMlIDa+KGgKT9cBxsisbpE02Wwgo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S700mS1vfPXZe2yAgQBGIDm2oLJXr+R+i2/RgPCwUnN2WwSsqAI7OKxSY2nybArUeu2Z0kSbUf6u9Dy0lSWE8BqfjUuJhSp0knPlb4DFbFqMhqw6AQiZHywfj9lhg9QsSB4LzyLCMtNaYXJy1pUKyQVtyGmHWi007UPXIaF4bE4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=n1fge9Dy; 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="n1fge9Dy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B95EE1F000E9; Wed, 27 May 2026 13:03:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779887013; bh=sODTuAc0l3jmeJ7S+wNGDYT0LJZSl+Cj0Tney0w3z9g=; h=From:To:Cc:Subject:Date:Reply-To; b=n1fge9DykgGyGptMSdr+asvNxXW3VEEi8mMbG+6sH/IdtBpQtL4rn78uv8jv7H2dH TjRI2tce9GNpq6vRIOcbMymIQ09dRiA5OTjoW26ItrUhT/4qHaSBLfcF55OrI9g/Ga qtkBpY06QwF9jNGMfHuz29Al9rVPxeRX4Mj79afw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46053: net: rds: fix MR cleanup on copy error Date: Wed, 27 May 2026 14:59:44 +0200 Message-ID: <2026052754-CVE-2026-46053-a24e@gregkh> X-Mailer: git-send-email 2.54.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=2815; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WaZmbTu3t7nHSGzSk06NwdIPpsTP8v300dYLHhX2USQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlir/oK0zV0Hj6/uMdJQiuRZcrlaRkH+N+Hys9UVopq4 Ew4/sexI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACay/S/D/ErrknOb5wo9clWY KKMmzZbpIKvzmmEOX/Gb8lJP4er1/5buey32djdjavEWAA== 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: fix MR cleanup on copy error __rds_rdma_map() hands sg/pages ownership to the transport after get_mr() succeeds. If copying the generated cookie back to user space fails after that point, the error path must not free those resources again before dropping the MR reference. Remove the duplicate unpin/free from the put_user() failure branch so that MR teardown is handled only through the existing final cleanup path. The Linux kernel CVE team has assigned CVE-2026-46053 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 0d4597c8c5abdeeaf50774066c16683f30184dc8 and fixed in 6.6.140 with commit 8fdbb6262a4a3ed44a0830a7793903b54bb27bdc Issue introduced in 5.6 with commit 0d4597c8c5abdeeaf50774066c16683f30184dc8 and fixed in 6.12.86 with commit d95cea9298be1ba8876e3f156be96d3a492085ca Issue introduced in 5.6 with commit 0d4597c8c5abdeeaf50774066c16683f30184dc8 and fixed in 6.18.27 with commit 033370ffb3c9c0264d19f8ba9ef769523266589a Issue introduced in 5.6 with commit 0d4597c8c5abdeeaf50774066c16683f30184dc8 and fixed in 7.0.4 with commit b3cb8cae530b2727d8245684148bb49425f6765c Issue introduced in 5.6 with commit 0d4597c8c5abdeeaf50774066c16683f30184dc8 and fixed in 7.1-rc1 with commit 8141a2dc70080eda1aedc0389ed2db2b292af5bd 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-46053 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/rdma.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/8fdbb6262a4a3ed44a0830a7793903b54bb27bdc https://git.kernel.org/stable/c/d95cea9298be1ba8876e3f156be96d3a492085ca https://git.kernel.org/stable/c/033370ffb3c9c0264d19f8ba9ef769523266589a https://git.kernel.org/stable/c/b3cb8cae530b2727d8245684148bb49425f6765c https://git.kernel.org/stable/c/8141a2dc70080eda1aedc0389ed2db2b292af5bd