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 9420536124 for ; Mon, 18 Mar 2024 10:15:06 +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=1710756906; cv=none; b=XRd5UCwa77I5t0N8uUN3rAPPnFGtLcEzYDyiZqbAMflpK85JiMln94Q12jfOyGtkIoBt6q6anl8ki7yrFiuo5Clc7Aru8okudMyA/Y69j9C1g96fPMCBsy3dvsJtkL56iGYYOiIHCBkDYntkXsjXlfRpK7AsbhFckBIvnhWj7ko= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710756906; c=relaxed/simple; bh=IDt93Cfp8sq44YaG9jTFob0DfIAbvvavIeEHR2bnShA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pkJ+xMaD7y2xLiYr7BylIf8xsR/C4nGGdHZNoXnR3H3BUWhOgT8JAdXiuqnwM6dCrnPz/QirKu9bgZodJenLCRToEkykj9tNlvIX7QkDw3GXMz0+P3fbkKyuHRBlZW3RQJuQIG27o1oDXkHFo4ojUD12Tv94KIl97wBA3BWl+/Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=erCBNOv4; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="erCBNOv4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6868FC43390; Mon, 18 Mar 2024 10:15:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710756906; bh=IDt93Cfp8sq44YaG9jTFob0DfIAbvvavIeEHR2bnShA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=erCBNOv4iZZSXRcufUg8lBQD7eR7uNQQG57F+3f4bzRRXiqEN4iVNfPAyqchZsTpT t32l7oULrnU4n+CBxZCvjrC/Y8CAJ7zkcQyP8hvIz/JFA87Bdk7dyt1eyMZzEEmuFt HJOBpDvaVLlK8iIdktbNs9IKdNYWLwcBVXPJv/TAFfY8Vzde8A1sFftJv38oZqcmG1 8VhZMYtrTVWZN3MSwTVDe/cVOqKd93pHe2sA3bPgBnJrQ5NrMx87XztbeRdiP7diCI FVq6MB/vBEfgg+7oAxP9p22xWPkuiaBr9Kniw1JWyZMH9LxTpkOUXWXFg7OO/MQtXA Ii5mNUQ4goYaQ== From: Lee Jones To: linux-cve-announce@vger.kernel.org Cc: Lee Jones Subject: CVE-2023-52615: hwrng: core - Fix page fault dead lock on mmap-ed hwrng Date: Mon, 18 Mar 2024 10:15:00 +0000 Message-ID: <20240318101458.2835626-10-lee@kernel.org> X-Mailer: git-send-email 2.44.0.291.gc1ea87d7ee-goog 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=2993; i=lee@kernel.org; h=from:subject; bh=IDt93Cfp8sq44YaG9jTFob0DfIAbvvavIeEHR2bnShA=; b=owEBbQKS/ZANAwAKAVGvii+H/HdhAcsmYgBl+BQiVz+34fUMjqRwU2lHO1u2j62XDTenksSWq vMLi0eotHOJAjMEAAEKAB0WIQR2tsk1o74gmpTwh0hRr4ovh/x3YQUCZfgUIgAKCRBRr4ovh/x3 YdXFD/9dsjWfT4J5sC042TkBRbOWCE9k7L+0ZDUSWbD1YMss8OKnta6VcVgkfmKTpXdTNbF8wLw ZC04w4DLzK0bx3gVWWE1Gwz28NJ4B8z1g/eVJxp0DL1B9hKHmsPJ+G43GsoTF455y0yiRj08ySR hK4JmCkf8CkU3IGwvCgdqZR+KveFxCULnouy1NzLkBrV+O6CLsz4C+opK553LfC9MImqqDNWr8S hWL3H767tn03zHInCw3Mz2BobBCe6f7S2w/DnpjUQ/r/LlMLh269FI4krC7ZWQujaeoDZaG7UIP infImJRq3UTmqgzAJnKSo1Q9H1WW8+IB5tiFv1zLotFk+9QGMojUv67yZn5y9tNJDLCvsjvUlZb 1tljj/uNbcQat0D8mlDsC3cvgB8KLphTttmn4ImyEfiaeRyb0IhH6a7ldiLHITGzmEj2n7iGhnl Lo6bbqbiVS6dLdGnWrj+PMg6F1UqFqiCbpKrANekLRVdj4ET15As5a1nZYFixC4//linFgvDCGT 9xYDBl7BALIUqywTPOwXT57Mzi6kZjUEFB2GdBEFCgHNoIy+v1v4+BR+XfdXJB7b2RcwwrydeK3 Y5nwbvgFA1VzsDIQhGepp6hOhTV/A/FcFlIOMBCW59Ws7oRC6Vr/TusUgQq6ZeaxH0EOHe4ZEkT /CeEWzCzqWQWYcg== X-Developer-Key: i=lee@kernel.org; a=openpgp; fpr=76B6C935A3BE209A94F0874851AF8A2F87FC7761 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: hwrng: core - Fix page fault dead lock on mmap-ed hwrng There is a dead-lock in the hwrng device read path. This triggers when the user reads from /dev/hwrng into memory also mmap-ed from /dev/hwrng. The resulting page fault triggers a recursive read which then dead-locks. Fix this by using a stack buffer when calling copy_to_user. The Linux kernel CVE team has assigned CVE-2023-52615 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.33 with commit 9996508b3353 and fixed in 4.19.307 with commit eafd83b92f6c Issue introduced in 2.6.33 with commit 9996508b3353 and fixed in 5.4.269 with commit 5030d4c79886 Issue introduced in 2.6.33 with commit 9996508b3353 and fixed in 5.10.210 with commit c6a8111aacbf Issue introduced in 2.6.33 with commit 9996508b3353 and fixed in 5.15.149 with commit 26cc6d7006f9 Issue introduced in 2.6.33 with commit 9996508b3353 and fixed in 6.1.76 with commit aa8aa16ed9ad Issue introduced in 2.6.33 with commit 9996508b3353 and fixed in 6.6.15 with commit ecabe8cd456d Issue introduced in 2.6.33 with commit 9996508b3353 and fixed in 6.7.3 with commit 6822a1427178 Issue introduced in 2.6.33 with commit 9996508b3353 and fixed in 6.8 with commit 78aafb3884f6 Please see https://www.kernel.org or 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-2023-52615 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: drivers/char/hw_random/core.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/eafd83b92f6c044007a3591cbd476bcf90455990 https://git.kernel.org/stable/c/5030d4c798863ccb266563201b341a099e8cdd48 https://git.kernel.org/stable/c/c6a8111aacbfe7a8a70f46cc0de8eed00561693c https://git.kernel.org/stable/c/26cc6d7006f922df6cc4389248032d955750b2a0 https://git.kernel.org/stable/c/aa8aa16ed9adf1df05bb339d588cf485a011839e https://git.kernel.org/stable/c/ecabe8cd456d3bf81e92c53b074732f3140f170d https://git.kernel.org/stable/c/6822a14271786150e178869f1495cc03e74c5029 https://git.kernel.org/stable/c/78aafb3884f6bc6636efcc1760c891c8500b9922