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 231B52C08D1 for ; Sat, 31 Jan 2026 11:45: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=1769859919; cv=none; b=DkPWrZQNnfHH2E9B1srjfOE+Mxsam0m4m1SgxQM9WQfyHn5PbYxGnU5vlrpkXrkMFZfSHcDTLkZrPDVp2z93uh2roD1b/aiPGuAnd3PNXFIb74xfdDuUxDt4I9Mr+3TwrBzQTW8dLtN+io6t2Z+c8ftQ49eDSBMaEzui05TZ5BQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769859919; c=relaxed/simple; bh=RE9ZAtQvHQAZC71gBLmnK4Z2tgMFJwYmmjOts78eoNY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mbmJg2OhCH3JIPuParKZO9IPG4oGYc7Ea2A3xresFj7Qbua3mccI3Vyxk0reBrZTUTrGr1XhhIkbaFvroRv0ejPboxPQo6Ye8Nzi1DVg7NZr4TG41X4IyBs85CPo7I/3HCNXNkpCcnuoYxqh7o7c2jY9aEkU/0SsI/VqiRP4eGI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GOfYV34G; 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="GOfYV34G" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE767C4CEF1; Sat, 31 Jan 2026 11:45:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769859919; bh=RE9ZAtQvHQAZC71gBLmnK4Z2tgMFJwYmmjOts78eoNY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=GOfYV34GcjAgQMstsKXJoCw6C2qsTa4z27w8AOB22sc+BNApTpOlUsoQxd1vMCaU1 vQMG6UxILp79rWFVcAwBea1n/UBIeXPa3mR9XoZtoUVQWDJKLwK2AJCWu7mpD1zz9b nZCrv3IRVFFjwEBZrBfNI5pgWm81GkpfC7BXatlU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23038: pnfs/flexfiles: Fix memory leak in nfs4_ff_alloc_deviceid_node() Date: Sat, 31 Jan 2026 12:44:38 +0100 Message-ID: <2026013122-CVE-2026-23038-2453@gregkh> X-Mailer: git-send-email 2.52.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=2579; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=p2XG081pVPBKT2EIs1XoWgmJwGG8kHmydvqIt609Pck=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm1r8VWMdxfZ+4isHjSM8uJRppzS1hNf35auP83Q6xp1 cTLUvHcHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR3CaGBavzOHesPL1WyeV4 +bGHQm5qMzuWrmNYMP+98o2eL3fdg3f/Yvfy+X7qwmLZOAA= 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: pnfs/flexfiles: Fix memory leak in nfs4_ff_alloc_deviceid_node() In nfs4_ff_alloc_deviceid_node(), if the allocation for ds_versions fails, the function jumps to the out_scratch label without freeing the already allocated dsaddrs list, leading to a memory leak. Fix this by jumping to the out_err_drain_dsaddrs label, which properly frees the dsaddrs list before cleaning up other resources. The Linux kernel CVE team has assigned CVE-2026-23038 to this issue. Affected and fixed versions =========================== Issue introduced in 4.0 with commit d67ae825a59d639e4d8b82413af84d854617a87e and fixed in 6.6.122 with commit 869862056e100973e76ce9f5f1b01837771b7722 Issue introduced in 4.0 with commit d67ae825a59d639e4d8b82413af84d854617a87e and fixed in 6.12.67 with commit 86da7efd12295a7e2b4abde5e5984c821edd938f Issue introduced in 4.0 with commit d67ae825a59d639e4d8b82413af84d854617a87e and fixed in 6.18.7 with commit ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb Issue introduced in 4.0 with commit d67ae825a59d639e4d8b82413af84d854617a87e and fixed in 6.19-rc6 with commit 0c728083654f0066f5e10a1d2b0bd0907af19a58 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-23038 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/nfs/flexfilelayout/flexfilelayoutdev.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/869862056e100973e76ce9f5f1b01837771b7722 https://git.kernel.org/stable/c/86da7efd12295a7e2b4abde5e5984c821edd938f https://git.kernel.org/stable/c/ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb https://git.kernel.org/stable/c/0c728083654f0066f5e10a1d2b0bd0907af19a58