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 59659168DC for ; Sun, 19 May 2024 08:35:28 +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=1716107728; cv=none; b=Q6dqsp1H+qjOBdsXuDHlpEW1Egue1E7YeS3aBSGN/xlic8StYc3tlyYloUhuJp0LC2+WX58t9PN8xeKL0vGcTaLPIMXTDTqBRrfYlTjzL4zjtCCI0l0d7v3t1AJnDT0EzCWAevX5pRMVkoYgbZgRrpEmFDP0ulkmuW+7SgxYYFQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716107728; c=relaxed/simple; bh=wg06Pc3vW3SwPSJ/GMIqZznuLukc1Q1AhjXEw8FfO6w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qEVXM8X6B1p+aXCwjfG5XfjpGLPmd13oIqJogtBUF/MzXtD/8otZkzMEJ7nJqEjdhyvLePPfEtEJqRNmn5cCtYw8SFgqGbnrD0XytrhlTtDUUbee3E6P5geKcpsfTdViw7IllwXo0+T1mnAlc9URzb2e6L4Tw6ZDAIAwOjFc5QQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sLooWVxW; 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="sLooWVxW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7AC95C32781; Sun, 19 May 2024 08:35:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716107727; bh=wg06Pc3vW3SwPSJ/GMIqZznuLukc1Q1AhjXEw8FfO6w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sLooWVxW/Is+xWxR06sJUwTdj76PE7w8hnFkSP2DXAkrNJg4yzo7j9XggLaaXKCzJ Pp4JpSs7WSrfts3a7I8tCngUFux8jg8wtkEzYuqrRNhP4iQmU2wIOMGM3seRsE7bo/ dSHZa2sr+3IoVNUayl3TASLBPpjMIr4B55Qlwfls= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35874: aio: Fix null ptr deref in aio_complete() wakeup Date: Sun, 19 May 2024 10:34:48 +0200 Message-ID: <2024051942-CVE-2024-35874-c494@gregkh> X-Mailer: git-send-email 2.45.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=1957; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wg06Pc3vW3SwPSJ/GMIqZznuLukc1Q1AhjXEw8FfO6w=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmeOxeFp0u+upJhzrtVWK3+75O+W9u8l1mZ+5XZ/uhuP Hjr8g62jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIXx3DbDapwMoez+vxx3kn L2kLtZV+/dd5HcOCTrH1Var+cvtTJotuPTQl5vI8LoM4AA== 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: aio: Fix null ptr deref in aio_complete() wakeup list_del_init_careful() needs to be the last access to the wait queue entry - it effectively unlocks access. Previously, finish_wait() would see the empty list head and skip taking the lock, and then we'd return - but the completion path would still attempt to do the wakeup after the task_struct pointer had been overwritten. The Linux kernel CVE team has assigned CVE-2024-35874 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 71eb6b6b0ba9 and fixed in 6.8.5 with commit 9678bcc6234d Issue introduced in 6.8 with commit 71eb6b6b0ba9 and fixed in 6.9 with commit caeb4b0a11b3 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-35874 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: fs/aio.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/9678bcc6234d83759fe091c197f5017a32b468da https://git.kernel.org/stable/c/caeb4b0a11b3393e43f7fa8e0a5a18462acc66bd