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 0382415A4B3 for ; Fri, 12 Jul 2024 12:21: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=1720786878; cv=none; b=NpPMkKlsTlRYtR8gjPawedyOrftsj7vYngh9huGbiI7lYAKN+4C6TVW0w2BUCO6ptILA+rg5CyoLbw5Uo/eLxntdAtzYZPnHtuCwwL+iHRfAVWUqNnYlNEBuY5OFLGwQvqJJAZm2+76KqVTNrxUObn8Qlojq2iqoqR/FLporVhw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720786878; c=relaxed/simple; bh=GBTSdDIW0q6LDMMUEMiH4HWfaNdjaVo8HPsJUBawMH4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VuMBfQIWuuFRDzZ0IfG70vQlvOoXN/aTndcMLr/MnM4Zx8KYKgX7oM2xM+MkSzPDMyEfmXkP3NVAQYPIkOTiGInT4xU+yFifryBvNOu3Yh9WdTWEHUhKkPJ+zQnfsCQaDdt3uVC2he5KPjehK/BA/WZ916+li2LTcmQ4CwTx0us= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=osHqhrqM; 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="osHqhrqM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71A37C32782; Fri, 12 Jul 2024 12:21:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720786877; bh=GBTSdDIW0q6LDMMUEMiH4HWfaNdjaVo8HPsJUBawMH4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=osHqhrqM3GS51Ns1KlIzjQbpKtNBhtCZmBFdsryRBJmo1h+1q9Cihcer7L6ArOgmR oww7RHvEWE8pHemYBj9PEdrTYxmVgF+iZN3QN7IkQWdj4ZATmPxZl+dvZgvtop5nQD GRxvBCrdCdkqLWiigzPWnswc7aeFUfyNS6HCGr3U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-39494: ima: Fix use-after-free on a dentry's dname.name Date: Fri, 12 Jul 2024 14:21:00 +0200 Message-ID: <2024071259-CVE-2024-39494-119a@gregkh> X-Mailer: git-send-email 2.45.2 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=2142; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GBTSdDIW0q6LDMMUEMiH4HWfaNdjaVo8HPsJUBawMH4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkT5Vfzq+fHimyYY8bNasykNftpUsbHavtLd7LOsVwzk zW7GOXVEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPxmcQwv7TA5cD57YdXOOxb W+K2YZ+XRM/sCwwLNhUs7U1U1zqTYGawrWBjsO2n909XAQA= 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: ima: Fix use-after-free on a dentry's dname.name ->d_name.name can change on rename and the earlier value can be freed; there are conditions sufficient to stabilize it (->d_lock on dentry, ->d_lock on its parent, ->i_rwsem exclusive on the parent's inode, rename_lock), but none of those are met at any of the sites. Take a stable snapshot of the name instead. The Linux kernel CVE team has assigned CVE-2024-39494 to this issue. Affected and fixed versions =========================== Fixed in 6.1.97 with commit 7fb374981e31 Fixed in 6.6.35 with commit dd431c3ac1fc Fixed in 6.9.6 with commit a78a6f0da57d Fixed in 6.10-rc1 with commit be84f32bb2c9 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-39494 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: security/integrity/ima/ima_api.c security/integrity/ima/ima_template_lib.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/7fb374981e31c193b1152ed8d3b0a95b671330d4 https://git.kernel.org/stable/c/dd431c3ac1fc34a9268580dd59ad3e3c76b32a8c https://git.kernel.org/stable/c/a78a6f0da57d058e2009e9958fdcef66f165208c https://git.kernel.org/stable/c/be84f32bb2c981ca670922e047cdde1488b233de