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 AE4E4390231 for ; Sun, 19 Jul 2026 12:03:07 +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=1784462588; cv=none; b=PEa2V62Zi4pkVFOERMY8bfDyk1HEPmBewdDtQhLIxkSs7QIEFQzpXYwG9QJsBBPdIgkMbWzBGZzRnOrboHXodVN1+zNoal8WwC9f4q3gNWuwpq540+Y0IGx7a0ZXY/cThRd2RemHhmerbguZFKHFRIqSlGJIC76H69kRCzCoJuI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462588; c=relaxed/simple; bh=oLEi0DGeftdLqjAA70dL2uWBiKWXvhpsDWjm8NfJS/A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LQZaSNDcvFgQeonA/m8FbF7VBN6x1sYx6/U6AmZTy8YwY0ZZb8JR9x9RUSrPBPydPsLw5iv1baXS26ceLV6bGNQ35kzbL8Fa1eDaINUWNa/B4Ew3EayfDH82SWg5AYPcU8uTLtkaO2Jmc7vyyzucwP2yG4IpyqBD5J3LnYHDW+0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HCLlWUuT; 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="HCLlWUuT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7859F1F000E9; Sun, 19 Jul 2026 12:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784462587; bh=myE1T0TFODQBzrRkwqktmgo7dhqcDiKDd/7+9HbVmMg=; h=From:To:Cc:Subject:Date:Reply-To; b=HCLlWUuTnSe7Q9D030OeZBaPcBu6Nvsprms5kT97BOsRJ1xnqgG2a+WeCdZ+fjKy5 2Qz2p9ra8OGV2SuNyiBLDizah7+N4F+ruB9EcFj55d95ZVEPwYoMS2+oeKMMky0N4N VOm91hBrZ6al1cSEGSdrxrOpw5U8CjU79UNPgnMM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53394: nfsd: avoid leaking pre-allocated openowner on unconfirmed retry race Date: Sun, 19 Jul 2026 14:02:00 +0200 Message-ID: <2026071957-CVE-2026-53394-9a20@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=3065; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=c4WZ6qd3eg5Fgb/r3MxLQrJCadsJ0VLG6p1iAMLXQ10=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxe7aqnRK4tDrUgPEsS+HsWp6rzR9nLhB/kLNc9/+T3 ncvy06c7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJqOQyLFgZcO7Ik109uzWP xIUqHt/zwfTuiosMC2ZlJxiyXtV64GPz9WZkCM8DH2abXAA= 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: nfsd: avoid leaking pre-allocated openowner on unconfirmed retry race When find_or_alloc_open_stateowner() encounters an unconfirmed owner, it calls release_openowner() and sets oo = NULL. Control then falls through past the `if (oo)` guard -- which would have freed any pre-allocated `new` -- and unconditionally executes `new = alloc_stateowner(...)`. If `new` was already allocated on a prior iteration, the pointer is silently overwritten and the previous allocation (slab object + owner name buffer) is leaked. This requires a race: two NFSv4.0 OPEN threads with the same owner string, where a concurrent thread inserts a new unconfirmed owner into the hash between retry iterations. The window is narrow but repeatable under adversarial conditions. Fix by adding `goto retry` after `oo = NULL` so the already-allocated `new` is reused on the next iteration rather than overwritten. The Linux kernel CVE team has assigned CVE-2026-53394 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 23df17788c6212809848f836b10c4f85b16843a5 and fixed in 6.12.95 with commit c9aefb2b5f11337c9202c5bd0c45d71198449718 Issue introduced in 6.10 with commit 23df17788c6212809848f836b10c4f85b16843a5 and fixed in 6.18.38 with commit 017a6150106b054cc84d1b0582d97bd3a74d4281 Issue introduced in 6.10 with commit 23df17788c6212809848f836b10c4f85b16843a5 and fixed in 7.1.3 with commit a10bf67fe06469a71a401f72f328237345d553c0 Issue introduced in 6.10 with commit 23df17788c6212809848f836b10c4f85b16843a5 and fixed in 7.2-rc1 with commit 57aee7a35bb12753057c5b65d72d1f46c0e95b07 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-53394 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: fs/nfsd/nfs4state.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/c9aefb2b5f11337c9202c5bd0c45d71198449718 https://git.kernel.org/stable/c/017a6150106b054cc84d1b0582d97bd3a74d4281 https://git.kernel.org/stable/c/a10bf67fe06469a71a401f72f328237345d553c0 https://git.kernel.org/stable/c/57aee7a35bb12753057c5b65d72d1f46c0e95b07