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 8CC7B1F428F for ; Fri, 27 Dec 2024 13:55:20 +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=1735307720; cv=none; b=WwW2xrao2vNyRUaKs35xm5yfHzII9N7brQpkN8UjEIwdOec8jerOZt/NX3cnug3QxKTyAKsiunIiidzBJHv+8rfzFQ8niHT+8FIBnoFVH2qKa00kAazfMjwouetM54MzX6mA+HnkzbftEku433Foe2F8CLETxPWjdBoVo62QSC0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735307720; c=relaxed/simple; bh=UTeH2a3VjrPwBTalreOa2Oj4yoShoTgjif0MwR3Lbv8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gfyxYmXugVJxbQFQAGOkyEGGoAsfncrxSshc5FqyhFkC3qrS1BO44A90zbkFlH6RoLoQkzGg8Kq6nOVIAYXdbihJS/2YkezDxbk1XcJW5zqnC34MDnV+k+U1bCFHjKlkazpnHUde6teRieaK5Tzu7Q+E9YuIjvpUMULJ1m6RKOY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DnzJ847r; 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="DnzJ847r" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3093C4CED0; Fri, 27 Dec 2024 13:55:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735307720; bh=UTeH2a3VjrPwBTalreOa2Oj4yoShoTgjif0MwR3Lbv8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DnzJ847rbudPrXEfp7Ss0Et5eDJwbOmQ+BiDSUTorjFMQzX1mDbpR4CQXmqMzaU43 85iTm+pp8gxxGyHEDvixzColJUPWE8eJOEJdSDT2YAiQOiXJpgwJ+iXAQZHysOZiQi Xymmyuyvy1LDhPhWeKWlXiApUUk5iAEQPJSNA2ro= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53187: io_uring: check for overflows in io_pin_pages Date: Fri, 27 Dec 2024 14:52:33 +0100 Message-ID: <2024122722-CVE-2024-53187-909e@gregkh> X-Mailer: git-send-email 2.47.1 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=2359; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UTeH2a3VjrPwBTalreOa2Oj4yoShoTgjif0MwR3Lbv8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5G8XWzRJbnfmS/7X/6zLD4FcXdEq3X39RETrPMTXmO NPiKVtjOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiZ/oZ5hfeLZmvt/eXiuj8 E7OmvAyq9Y1Ouc4wT/N62oYWrVOne25quj741Ddxe2CCMwA= 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: io_uring: check for overflows in io_pin_pages WARNING: CPU: 0 PID: 5834 at io_uring/memmap.c:144 io_pin_pages+0x149/0x180 io_uring/memmap.c:144 CPU: 0 UID: 0 PID: 5834 Comm: syz-executor825 Not tainted 6.12.0-next-20241118-syzkaller #0 Call Trace: __io_uaddr_map+0xfb/0x2d0 io_uring/memmap.c:183 io_rings_map io_uring/io_uring.c:2611 [inline] io_allocate_scq_urings+0x1c0/0x650 io_uring/io_uring.c:3470 io_uring_create+0x5b5/0xc00 io_uring/io_uring.c:3692 io_uring_setup io_uring/io_uring.c:3781 [inline] ... io_pin_pages()'s uaddr parameter came directly from the user and can be garbage. Don't just add size to it as it can overflow. The Linux kernel CVE team has assigned CVE-2024-53187 to this issue. Affected and fixed versions =========================== Fixed in 6.11.11 with commit 29eac3eca72d4c2a71122050c37cd7d8f73ac4f3 Fixed in 6.12.2 with commit aaa90844afd499c9142d0199dfda74439314c013 Fixed in 6.13-rc1 with commit 0c0a4eae26ac78379d0c1db053de168a8febc6c9 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-53187 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: io_uring/memmap.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/29eac3eca72d4c2a71122050c37cd7d8f73ac4f3 https://git.kernel.org/stable/c/aaa90844afd499c9142d0199dfda74439314c013 https://git.kernel.org/stable/c/0c0a4eae26ac78379d0c1db053de168a8febc6c9