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 8301E1F7089 for ; Mon, 21 Oct 2024 18:03:18 +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=1729533798; cv=none; b=H+q7EIgWY2r6Pkl0IztDftXHKD7L8mvcnLCQ83HYK/w9BZwck7h69vCw5SYrIH3XDco/JerGBJP8K2gtiP3eCHvfDvuIFfHkdGqq59KlKRTVCWkO9heIdrFl4dyVXJKD8qFTZkxkDUvT8A+c7IXvuemgHld0erpK3U05NpaOd4E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729533798; c=relaxed/simple; bh=QvWBlYQc+ZRlL+u+AHGXtOIxFyHclbMXZi1+Mp19GNE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FME4vplsWyDciXourPLKJIUamlc9jypuY2IjdqoJ984c+Nma2ZKeNmoXJdpzpYwQx4mYmtuK4uCt86LKgwZwBNlniwqaM9C0/EVdFjzBkR79vubouWNbfHFfCUdxhbQ7eBzH98Qf4f+ObctMSEAEs4t2aY8PBugZ+9SJY76qKqA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fgq74hMY; 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="fgq74hMY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06F13C4CEE9; Mon, 21 Oct 2024 18:03:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729533798; bh=QvWBlYQc+ZRlL+u+AHGXtOIxFyHclbMXZi1+Mp19GNE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fgq74hMYmcoze7W0MM8nlmQ4/q1Abb3f7vCkCBSQD/1UNkwnoRpsDZKYxup0D+fuj XevwImT+B4ku5F3+cbt+Z9PVglgTCUuUDmdne3OSCZOGJIWlpvCvjn+kj2wnT6lHVG vIALgF2MiU5whp5uUqQYQQRsf1D3MJSq4AWiyrgk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-49877: ocfs2: fix possible null-ptr-deref in ocfs2_set_buffer_uptodate Date: Mon, 21 Oct 2024 20:01:25 +0200 Message-ID: <2024102115-CVE-2024-49877-038a@gregkh> X-Mailer: git-send-email 2.47.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=2909; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QvWBlYQc+ZRlL+u+AHGXtOIxFyHclbMXZi1+Mp19GNE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOli0177TDs2Q/lyfvDXzv8/+9IfHNh0Lojb7Zr0apkiw +ei2c++d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBElBUZ5ucvlJVUFJmnxcDd zb5xx5xJPqKXehjmuy/rFNdT2mN8IHFq7LPJVbx2chHPAQ== 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: ocfs2: fix possible null-ptr-deref in ocfs2_set_buffer_uptodate When doing cleanup, if flags without OCFS2_BH_READAHEAD, it may trigger NULL pointer dereference in the following ocfs2_set_buffer_uptodate() if bh is NULL. The Linux kernel CVE team has assigned CVE-2024-49877 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit cf76c78595ca and fixed in 5.10.227 with commit 61b84013e560 Issue introduced in 4.20 with commit cf76c78595ca and fixed in 5.15.168 with commit df944dc46d06 Issue introduced in 4.20 with commit cf76c78595ca and fixed in 6.1.113 with commit 01cb2e751cc6 Issue introduced in 4.20 with commit cf76c78595ca and fixed in 6.6.55 with commit d52c5652e7dc Issue introduced in 4.20 with commit cf76c78595ca and fixed in 6.10.14 with commit 46b1edf0536a Issue introduced in 4.20 with commit cf76c78595ca and fixed in 6.11.3 with commit 4846e72ab5a0 Issue introduced in 4.20 with commit cf76c78595ca and fixed in 6.12-rc1 with commit 33b525cef4cf Issue introduced in 4.4.204 with commit 01f93d5e3675 Issue introduced in 4.9.204 with commit 65cbd1279f4b Issue introduced in 4.14.157 with commit 97e1db17bc1e Issue introduced in 4.19.87 with commit 6c150df9c2e8 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-49877 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/ocfs2/buffer_head_io.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/61b84013e560382cbe7dd56758be3154d43a3988 https://git.kernel.org/stable/c/df944dc46d06af65a75191183d52be017e6b9dbe https://git.kernel.org/stable/c/01cb2e751cc61ade454c9bc1aaa2eac1f8197112 https://git.kernel.org/stable/c/d52c5652e7dcb7a0648bbb8642cc3e617070ab49 https://git.kernel.org/stable/c/46b1edf0536a5291a8ad2337f88c926214b209d9 https://git.kernel.org/stable/c/4846e72ab5a0726e49ad4188b9d9df091ae78c64 https://git.kernel.org/stable/c/33b525cef4cff49e216e4133cc48452e11c0391e