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 DE9C8198E6F for ; Mon, 21 Oct 2024 12:01:56 +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=1729512117; cv=none; b=BXbuB0tuwmzf03/mhanEMa3wgUdfQ+KZta/WaXs7Y5VWtKojagyD2NXw14TJYmBkL8T9gdhnvzO+0QWZKWHRMjy8/MR14j0x6FsZo1uL4bNmX0BqZsCHHiEaYkbrctl4TlS7wAvSS1hBwodoxjzM3hp3J4Y2Ke09Epl/FU8SN28= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729512117; c=relaxed/simple; bh=A8u3xpbAu5cX/jgpYIg8kuYlAfg71au+f1OVnx18p/k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uSR7V2F+yyIGKi3TaflXucKsNLKiD6W6AweWwLkKlF8VoKON/Qt8YTKg3ra+PxvqR+RvpoSjCYUhLvsSJpBMcDB/Bkx+ARh9eXXIhdwwJvKP8VbkyJKvkAhDjLaffecy7MUKFrQB9Xw/Ej1KME1GlvYhwNO8+GVk0cmJR1H8nEs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ndpb+I8W; 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="ndpb+I8W" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FA39C4CEC3; Mon, 21 Oct 2024 12:01:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729512116; bh=A8u3xpbAu5cX/jgpYIg8kuYlAfg71au+f1OVnx18p/k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ndpb+I8WJ22K9hKVFb1yXlryqDCPF0ugPcOVmkRZLvp4RWMaSDrSTWvjpoVyICIxk nroLJHjbfHTa/sLp/Qn0aBl78BF9+30LsdO5ZeDZf+k4J41GIMy9AJ3gpY2JfOnrex xbeyNQCdmYrW3uIUo6ss/3WNWDZFGdwmM1HVVr50= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47676: mm/hugetlb.c: fix UAF of vma in hugetlb fault pathway Date: Mon, 21 Oct 2024 14:00:04 +0200 Message-ID: <2024102105-CVE-2024-47676-016b@gregkh> X-Mailer: git-send-email 2.47.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=2184; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=A8u3xpbAu5cX/jgpYIg8kuYlAfg71au+f1OVnx18p/k=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliTm4Xpin599u/Tf+enisqIJv1S+jJqek7FduXc6852 rZyVaxMRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEOp1hnvqfg/PLOdRW2v2M /iKTvPmYXZr8e4ZZTPzLPqif7t9y0W/zE+lZf56qOdqeAwA= 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: mm/hugetlb.c: fix UAF of vma in hugetlb fault pathway Syzbot reports a UAF in hugetlb_fault(). This happens because vmf_anon_prepare() could drop the per-VMA lock and allow the current VMA to be freed before hugetlb_vma_unlock_read() is called. We can fix this by using a modified version of vmf_anon_prepare() that doesn't release the VMA lock on failure, and then release it ourselves after hugetlb_vma_unlock_read(). The Linux kernel CVE team has assigned CVE-2024-47676 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 9acad7ba3e25 and fixed in 6.10.13 with commit e897d184a8dd Issue introduced in 6.9 with commit 9acad7ba3e25 and fixed in 6.11.2 with commit d59ebc99dee0 Issue introduced in 6.9 with commit 9acad7ba3e25 and fixed in 6.12-rc1 with commit 98b74bb4d7e9 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-47676 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: mm/hugetlb.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/e897d184a8dd4a4e1f39c8c495598e4d9472776c https://git.kernel.org/stable/c/d59ebc99dee0a2687a26df94b901eb8216dbf876 https://git.kernel.org/stable/c/98b74bb4d7e96b4da5ef3126511febe55b76b807