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 7DE468004F for ; Mon, 29 Jul 2024 15:53:32 +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=1722268412; cv=none; b=YKOxmGTu7BTPl6wwaUh+UoIh8rRoPacYDc0gjxSbszPs56MBeQzfvEMukLjTQmCvZHhoQPZW6REjqIf/utqdM22VIfwM29qEn/SPsCu+MSu7exfDDtjL5xB0SRnBjsaoceeSyIWKmUGXP8Nvc8w6Mj/BHOJkJodJCaiKzpVCqX4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722268412; c=relaxed/simple; bh=z4idt4gkNIKnK72DGBTwXqXK1SPxM1VGeR8eXn05XDc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=C4dSn15T35stLk7k64VjTt3RzCCIC3waxiKT7giVt4iKQN4zjcaib/u8KH0CFJ6MtW3f828MlyvqjOWWio5RQJ919yzBMztQG9dUUokqHH5Ax7jx3rllJmtKVUlV84RuOAwPyN5Jp0uGee8RH6dpKyHsxQGvUlbubfNmqT8qx/s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kUPrU6T+; 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="kUPrU6T+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCB9CC32786; Mon, 29 Jul 2024 15:53:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722268412; bh=z4idt4gkNIKnK72DGBTwXqXK1SPxM1VGeR8eXn05XDc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kUPrU6T+lp8hzKS2eldr5yTLG/i0OvltTq7IcqxpLyy2x/3/4D5r7hIIBCrO9Oj88 IIuPeE+jkrrG/jrS6FhD3hZe4byzH9y7BJm6JwjPuD1QzR4wSTa9UmMOxmJyzLF2Uw iMnmwEbroRc5EWvk2G/S2OwIkPLez8RO836ZcqpI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42079: gfs2: Fix NULL pointer dereference in gfs2_log_flush Date: Mon, 29 Jul 2024 17:53:08 +0200 Message-ID: <2024072955-CVE-2024-42079-a13c@gregkh> X-Mailer: git-send-email 2.45.2 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=2059; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=z4idt4gkNIKnK72DGBTwXqXK1SPxM1VGeR8eXn05XDc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLd10/PuWpzy5BmXqm0u7cLg+Jg7eE5y59KGmquuZn5 EZZgYwPHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRtwsZ5of8dFd8tqBlitad qqucHv/e2rquN2SYX65w/PlP7udp1e7hRp+PTXJcfnqtDQA= 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: gfs2: Fix NULL pointer dereference in gfs2_log_flush In gfs2_jindex_free(), set sdp->sd_jdesc to NULL under the log flush lock to provide exclusion against gfs2_log_flush(). In gfs2_log_flush(), check if sdp->sd_jdesc is non-NULL before dereferencing it. Otherwise, we could run into a NULL pointer dereference when outstanding glock work races with an unmount (glock_work_func -> run_queue -> do_xmote -> inode_go_sync -> gfs2_log_flush). The Linux kernel CVE team has assigned CVE-2024-42079 to this issue. Affected and fixed versions =========================== Fixed in 6.6.37 with commit 3429ef5f5090 Fixed in 6.9.8 with commit f54f9d5368a4 Fixed in 6.10 with commit 35264909e9d1 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-42079 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/gfs2/log.c fs/gfs2/super.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/3429ef5f50909cee9e498c50f0c499b9397116ce https://git.kernel.org/stable/c/f54f9d5368a4e92ede7dd078a62788dae3a7c6ef https://git.kernel.org/stable/c/35264909e9d1973ab9aaa2a1b07cda70f12bb828