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 B9E9C12CDBF for ; Wed, 1 May 2024 13:07:17 +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=1714568837; cv=none; b=BfxwL6eoNxi9QxsxiTTcwhDLlNP85heIHZiPxIyjSB/vHOqvSqPyuEjWNmrDd5TQdo0M+PoOmPLjOGiZLPVSvpi3bs4YxTg/xgNzWzsRbMbaXcLDggCmo5sK20jQurqB+v6iYdoqUsYJhwAqM1ZVYpfVIpr/Kyg/2VRgS8GJEXM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568837; c=relaxed/simple; bh=y5299Xa4YRPM3mo3G8YFXvPCQ4lVczF4f8kqIafbY78=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gAVIH5uO5lLxnk5cy3pkYALZ03sKKltdCfrzWooNrsTY0bg6orQCc84PZwHqMI7GQAcT0skQcyNnG/AxUQ1xMn1gfFwOdvNh+R35q60QuiXrvQgCA0YsCjIaK2gZydQOAUmgAt2jDBmnzGFZ3d5NGtkkjFahEsyJKoC3bPxeU1g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SN0xJQsA; 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="SN0xJQsA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2706C113CC; Wed, 1 May 2024 13:07:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714568837; bh=y5299Xa4YRPM3mo3G8YFXvPCQ4lVczF4f8kqIafbY78=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SN0xJQsAtr5GBaYLlcD5hUO3MqMvs+OsYgXqhXYkwrG5yUNprzG3cWchZPWIAmf8x HJfMpZ2OQ1oulI0KcbCVwQ84uKxLQBKU0Ndp3zRTIf0ekUoVKb9J+DugaucApc/daz jn+RE+XLX9ZTOcG2KIvNEAerhJSkxVCWazYDVDaU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27389: pstore: inode: Only d_invalidate() is needed Date: Wed, 1 May 2024 15:06:53 +0200 Message-ID: <2024050135-CVE-2024-27389-fb3a@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=2615; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=y5299Xa4YRPM3mo3G8YFXvPCQ4lVczF4f8kqIafbY78=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlGdtHJm4RqHBom3Zonfzjh2EMR+b1xK/pkdbZI/598V 66wvsuxI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYSd5Zhnm0Y+xLN1uCrCoZZ 578ExP5YFGRSybBgsrr1Xm/mvnYuly/pceeDbr0vn7wTAA== 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: pstore: inode: Only d_invalidate() is needed Unloading a modular pstore backend with records in pstorefs would trigger the dput() double-drop warning: WARNING: CPU: 0 PID: 2569 at fs/dcache.c:762 dput.part.0+0x3f3/0x410 Using the combo of d_drop()/dput() (as mentioned in Documentation/filesystems/vfs.rst) isn't the right approach here, and leads to the reference counting problem seen above. Use d_invalidate() and update the code to not bother checking for error codes that can never happen. --- The Linux kernel CVE team has assigned CVE-2024-27389 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 609e28bb139e and fixed in 6.1.83 with commit db6e5e16f1ee Issue introduced in 5.8 with commit 609e28bb139e and fixed in 6.6.23 with commit 4cdf9006fc09 Issue introduced in 5.8 with commit 609e28bb139e and fixed in 6.7.11 with commit cb9e802e49c2 Issue introduced in 5.8 with commit 609e28bb139e and fixed in 6.8.2 with commit 340682ed1932 Issue introduced in 5.8 with commit 609e28bb139e and fixed in 6.9-rc1 with commit a43e0fc5e913 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-27389 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/pstore/inode.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/db6e5e16f1ee9e3b01d2f71c7f0ba945f4bf0f4e https://git.kernel.org/stable/c/4cdf9006fc095af71da80e9b5f48a32e991b9ed3 https://git.kernel.org/stable/c/cb9e802e49c24eeb3af35e9e8c04d526f35f112a https://git.kernel.org/stable/c/340682ed1932b8e3bd0bfc6c31a0c6354eb57cc6 https://git.kernel.org/stable/c/a43e0fc5e9134a46515de2f2f8d4100b74e50de3