Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2328137FF77 for ; Wed, 22 Apr 2026 13:57:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866240; cv=none; b=RT8u9e+u9FCbkLuj0mOWKzFVMF0aQondp7oEsoYVJJMkVWeeEUdUosA5FmxNT/lphmGbsJFcJl9XeI/BS7v1D8TuCm90kRau+k0Rx5us0FwUh6dVOtd/KQdHC3zdRp4SNmr/ZYiDd6rKhaHsCJtExtUYSfVdUwwiEkOkLvl4Giw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866240; c=relaxed/simple; bh=EYRragcO9SPhMvikkqaHOqq9xt8ROZ5opoRIFdV7qkY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EVivdgWf+cyAI7f8V4xbIJhXOYWklbi8gLCyPUJ9Hmb9ucVfO20BUqWN3nDRf2EcECyqEFTa1EzQZc5y9dor/Bn2d9omlR6v62NeQ7De0jEfU33SatMQ5B92xudcZyapbL4XIS946lRm8ZQpUigD/hG6rcG7tu95HfdBq4zGFgE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p5oC5w3s; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="p5oC5w3s" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61373C19425; Wed, 22 Apr 2026 13:57:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866239; bh=EYRragcO9SPhMvikkqaHOqq9xt8ROZ5opoRIFdV7qkY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=p5oC5w3syj8WdS63EBiQFta/SlhBkuvp24OarEaV/kTromxNCEoFZJ+kpwVtxQSuK 4EyS2c1fTyPQwiS/F0qZdNBVoLwp3RWV99i5ZcW8otnGR56HwSwHzroOGTwYJ4tTg9 PO6jE1Kgqq5I9Ze4fFqhp+2y9VBW4FBuaJo9vkxU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31493: RDMA/efa: Fix use of completion ctx after free Date: Wed, 22 Apr 2026 15:54:39 +0200 Message-ID: <2026042202-CVE-2026-31493-4d67@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=2452; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Vm9sRd9BPxp1v377nODw04HoNo8zwrHN46z//MAd32Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLv1a1X+lpFv0I1dzpF3VmQvPPAVz7/qaT/ASvPF6/ 77DWwpYOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAij5UY5unclVK7t971kHyc 1Mtzc8r4PM5k/mFYsEX2vdzRid/MXRctuX5T/NTJ+6ejGwE= 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: RDMA/efa: Fix use of completion ctx after free On admin queue completion handling, if the admin command completed with error we print data from the completion context. The issue is that we already freed the completion context in polling/interrupts handler which means we print data from context in an unknown state (it might be already used again). Change the admin submission flow so alloc/dealloc of the context will be symmetric and dealloc will be called after any potential use of the context. The Linux kernel CVE team has assigned CVE-2026-31493 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 68fb9f3e312a36e49fd05ec2d6b668daf2c4931a and fixed in 6.18.21 with commit 0dd98aea1c0c45987fa2dd92f988b0eb1a72c125 Issue introduced in 5.12 with commit 68fb9f3e312a36e49fd05ec2d6b668daf2c4931a and fixed in 6.19.11 with commit 1cf95fe5dc5471efea947b4c6f8913da6bc7976e Issue introduced in 5.12 with commit 68fb9f3e312a36e49fd05ec2d6b668daf2c4931a and fixed in 7.0 with commit ef3b06742c8a201d0e83edc9a33a89a4fe3009f8 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-31493 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/infiniband/hw/efa/efa_com.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/0dd98aea1c0c45987fa2dd92f988b0eb1a72c125 https://git.kernel.org/stable/c/1cf95fe5dc5471efea947b4c6f8913da6bc7976e https://git.kernel.org/stable/c/ef3b06742c8a201d0e83edc9a33a89a4fe3009f8