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 AFC2612CDBF for ; Wed, 1 May 2024 13:07:14 +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=1714568834; cv=none; b=tMw9sp9XcyHx1p1VZKpltmRFvUnDkXJMe5N4Y40aMP0y6HLzIKVoQLhOl2mr1B4t2OH4C2QymLzZvbvPZKJMpm/qwShQZDUEOZdDna4WIIx2lbBptjwuqzaqT3H4+lDWD8VawhoTGJsPFhJmI3UEhvOB+GiFQYp2TL/pRJxu9kQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568834; c=relaxed/simple; bh=T6cUVxyH1PvQCEdOHEcUeG16Cm79vE1M8qJxi4g7xYo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VptKgEjBefFwlJzCfd2+A5ZkNI+SP6A2t3ekmeLSit3D2zkfrY4CaX5B5iNG4UE52EfYq+QQhwVnR0aLxvSvvWqtx6IMri2hD4L620iPFyFJ8a9D+WlLKjvaGJBBv3y9Op/AMrIOhjjYYVHQhq9BLAtGUuKb7xHqduTkDrnX/Gw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=W+za2rDG; 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="W+za2rDG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D69ABC113CC; Wed, 1 May 2024 13:07:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714568834; bh=T6cUVxyH1PvQCEdOHEcUeG16Cm79vE1M8qJxi4g7xYo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=W+za2rDGxLAI1udU73n2GqNBcdpmvxHMytE/Evgv4W5r5c9WoAEQQL3YTlJ58eRfb ccgDADVj2kfr3d1g7SmS+LkOs/JZlTWFUyC3vL4qoIYls/6N/oCxLFMpZ/66edKeMq o9buPkS0a4uWMcq/M3EhwMwd3pZgrtpFMDGNiD3w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27388: SUNRPC: fix some memleaks in gssx_dec_option_array Date: Wed, 1 May 2024 15:06:52 +0200 Message-ID: <2024050135-CVE-2024-27388-04eb@gregkh> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3027; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=T6cUVxyH1PvQCEdOHEcUeG16Cm79vE1M8qJxi4g7xYo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlGdtEWapF7vy24feP5s/h9wRc3CvBP5ly8Zmbfd7Nqc blXa9zndcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEZskxLOh8mC15lnWZ2c3C d3NuzmRPibpv9pJhDnf4gpdpyd9TzrFHX3X5kF/1IZYzDwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: SUNRPC: fix some memleaks in gssx_dec_option_array The creds and oa->data need to be freed in the error-handling paths after their allocation. So this patch add these deallocations in the corresponding paths. The Linux kernel CVE team has assigned CVE-2024-27388 to this issue. Affected and fixed versions =========================== Issue introduced in 3.10 with commit 1d658336b05f and fixed in 4.19.311 with commit b97c37978ca8 Issue introduced in 3.10 with commit 1d658336b05f and fixed in 5.4.273 with commit bfa9d86d39a0 Issue introduced in 3.10 with commit 1d658336b05f and fixed in 5.10.214 with commit bb336cd8d5ec Issue introduced in 3.10 with commit 1d658336b05f and fixed in 5.15.153 with commit dd292e884c64 Issue introduced in 3.10 with commit 1d658336b05f and fixed in 6.1.83 with commit 934212a623cb Issue introduced in 3.10 with commit 1d658336b05f and fixed in 6.6.23 with commit 5e6013ae2c8d Issue introduced in 3.10 with commit 1d658336b05f and fixed in 6.7.11 with commit 9806c2393cd2 Issue introduced in 3.10 with commit 1d658336b05f and fixed in 6.8.2 with commit 996997d1fb21 Issue introduced in 3.10 with commit 1d658336b05f and fixed in 6.9-rc1 with commit 3cfcfc102a5e 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-2024-27388 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/sunrpc/auth_gss/gss_rpc_xdr.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/b97c37978ca825557d331c9012e0c1ddc0e42364 https://git.kernel.org/stable/c/bfa9d86d39a0fe4685f90c3529aa9bd62a9d97a8 https://git.kernel.org/stable/c/bb336cd8d5ecb69c430ebe3e7bcff68471d93fa8 https://git.kernel.org/stable/c/dd292e884c649f9b1c18af0ec75ca90b390cd044 https://git.kernel.org/stable/c/934212a623cbab851848b6de377eb476718c3e4c https://git.kernel.org/stable/c/5e6013ae2c8d420faea553d363935f65badd32c3 https://git.kernel.org/stable/c/9806c2393cd2ab0a8e7bb9ffae02ce20e3112ec4 https://git.kernel.org/stable/c/996997d1fb2126feda550d6adcedcbd94911fc69 https://git.kernel.org/stable/c/3cfcfc102a5e57b021b786a755a38935e357797d