From mboxrd@z Thu Jan 1 00:00:00 1970 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 111761E1330 for ; Wed, 4 Sep 2024 18:36:51 +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=1725475012; cv=none; b=c/xxI+fN8oUDApLlPWQuncCjqug3+UKHO3qkQQbHpoGVMWMMG3t1GS+bqoriJ9Oyy+F0xUaNASPZCT8rQ1RQn4iRUfsjl3AAm6E7Dss53rZ1+wdfAE8kd6Y3H8pXN+RgLHahId4rVVXLvY1WYLxOxBAjqepfkn66i35UR8BxA5Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725475012; c=relaxed/simple; bh=SDLeVyCyEqPPd5ku8m1QO664n2q1I8z9sAKOb+RKtaY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M0iRi2VswfegIyo1Se7qwc1Ndiaktru6/KM4LAFWBqCjXp0zvkwFkGzeezE4wd8fxyucWguyLUh/Dhp4nE1ompocnuMwaB3pXqhQuZsAKMsyGO4HB0zsjBDalkLsFzr3K6VJVTUakBoq3umYHnnMuSbaeLUGzu10lUk2o+eDS4Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fVgFp4cj; 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="fVgFp4cj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 366AEC4CEC5; Wed, 4 Sep 2024 18:36:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725475011; bh=SDLeVyCyEqPPd5ku8m1QO664n2q1I8z9sAKOb+RKtaY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fVgFp4cjwWQYsmciKB/k8oyfFEMdBXXUzwPaCe0EAN16GMm5xdPaUPUwwNxGNPbdZ f5T8WYlRbaTjEgUQoYIi/7pVmw/dKPb+qxZfH4zp2mPC3cJhHWNR3gnzN5oChVG8/8 VQihDvc+iAdyBiip2kgB70j9h50udVbf4OwEXXZw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44965: x86/mm: Fix pti_clone_pgtable() alignment assumption Date: Wed, 4 Sep 2024 20:36:25 +0200 Message-ID: <2024090415-CVE-2024-44965-d41d@gregkh> X-Mailer: git-send-email 2.46.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=3291; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SDLeVyCyEqPPd5ku8m1QO664n2q1I8z9sAKOb+RKtaY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk3VsxPjdoxu/LdvA3fl5RuPb/sfmTidyG/cw2r5ULm5 G4/VJkW3BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATeTiLYcFRjvJ1KbeFy0ye x1q5srx/tIb7zXqG+TE6ZXE5fvvDDbetveV8T7d3ufKPPgA= 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: x86/mm: Fix pti_clone_pgtable() alignment assumption Guenter reported dodgy crashes on an i386-nosmp build using GCC-11 that had the form of endless traps until entry stack exhaust and then #DF from the stack guard. It turned out that pti_clone_pgtable() had alignment assumptions on the start address, notably it hard assumes start is PMD aligned. This is true on x86_64, but very much not true on i386. These assumptions can cause the end condition to malfunction, leading to a 'short' clone. Guess what happens when the user mapping has a short copy of the entry text? Use the correct increment form for addr to avoid alignment assumptions. The Linux kernel CVE team has assigned CVE-2024-44965 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit 16a3fe634f6a and fixed in 4.19.320 with commit 18da1b27ce16 Issue introduced in 4.19 with commit 16a3fe634f6a and fixed in 5.4.282 with commit 25a727233a40 Issue introduced in 4.19 with commit 16a3fe634f6a and fixed in 5.10.224 with commit d00c9b4bbc44 Issue introduced in 4.19 with commit 16a3fe634f6a and fixed in 5.15.165 with commit 4d143ae78200 Issue introduced in 4.19 with commit 16a3fe634f6a and fixed in 6.1.105 with commit 5c580c1050bc Issue introduced in 4.19 with commit 16a3fe634f6a and fixed in 6.6.46 with commit ca07aab70dd3 Issue introduced in 4.19 with commit 16a3fe634f6a and fixed in 6.10.5 with commit df3eecb5496f Issue introduced in 4.19 with commit 16a3fe634f6a and fixed in 6.11-rc2 with commit 41e71dbb0e0a 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-44965 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: arch/x86/mm/pti.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/18da1b27ce16a14a9b636af9232acb4fb24f4c9e https://git.kernel.org/stable/c/25a727233a40a9b33370eec9f0cad67d8fd312f8 https://git.kernel.org/stable/c/d00c9b4bbc442d99e1dafbdfdab848bc1ead73f6 https://git.kernel.org/stable/c/4d143ae782009b43b4f366402e5c37f59d4e4346 https://git.kernel.org/stable/c/5c580c1050bcbc15c3e78090859d798dcf8c9763 https://git.kernel.org/stable/c/ca07aab70dd3b5e7fddb62d7a6ecd7a7d6d0b2ed https://git.kernel.org/stable/c/df3eecb5496f87263d171b254ca6e2758ab3c35c https://git.kernel.org/stable/c/41e71dbb0e0a0fe214545fe64af031303a08524c