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 A159A1F3D58 for ; Fri, 27 Dec 2024 14:24:07 +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=1735309447; cv=none; b=bLRhwCvqspYShs/bGn0MOwWI5YKrmgdsz4Z75wtVsu9o4WPJGVBwerZ5dD6wUCFz6bMTh1pzeS7GVx7M0njJSWPtucaA7i9QLP0zUBfVhUJA+P900jxhdF+7KHd8Q7tWCiIfEwJw3v7cJOMW7eXaCz2uVk4jxKkQwv8LmQxlYa8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735309447; c=relaxed/simple; bh=1RMlXxoI0cMeqoB3YBiWkLhWhRRiv4OGoirkIucbAgA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qv5lzn0jNAw4fIGMKNhH2JunwERCDtBdOxUbCpIWFez58ZRtoTO0qra945eMfjNh0ahYFwYt7LHPGT8Cs+sLAgfJC4RCfXHlSH1dxbNdwdRM4M4tOl4QYNa7h+bjGNjbhTcQwvfeO90wGqcyyZCkaVvR6AYTQyTEXOUD1yyjQgU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Lfw5fpna; 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="Lfw5fpna" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFCA1C4CED0; Fri, 27 Dec 2024 14:24:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735309447; bh=1RMlXxoI0cMeqoB3YBiWkLhWhRRiv4OGoirkIucbAgA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Lfw5fpnacRFy9Zj8M7Het9cry2QmNtN3dQkFvRP+/s/Hf7MWgRs1V8pdYjhRYyYC/ Jags8qPNsnutQc6Tn+mYYfDpwQiq5t+1LU6CbX5cn9DkDXIFwybrSGCO9S7pBR5NxM cY7J/VBFyF92z6V7QbNm/XUmY8+fJlKT/T/VRWow= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56569: ftrace: Fix regression with module command in stack_trace_filter Date: Fri, 27 Dec 2024 15:23:20 +0100 Message-ID: <2024122716-CVE-2024-56569-cc71@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=3295; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1RMlXxoI0cMeqoB3YBiWkLhWhRRiv4OGoirkIucbAgA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5O0I8jNQV+aMWV910vDZHYmNvc6W6Wv18p6K//6eZN WZtKHHuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIn46zLMFZTRbenSVlULnHT3 o6WV5S+3jR5nGBacLpj5uPAT0/t9P2ZqpUdOmezoeJ8HAA== 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: ftrace: Fix regression with module command in stack_trace_filter When executing the following command: # echo "write*:mod:ext3" > /sys/kernel/tracing/stack_trace_filter The current mod command causes a null pointer dereference. While commit 0f17976568b3f ("ftrace: Fix regression with module command in stack_trace_filter") has addressed part of the issue, it left a corner case unhandled, which still results in a kernel crash. The Linux kernel CVE team has assigned CVE-2024-56569 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit 04ec7bb642b77374b53731b795b5654b5aff1c00 and fixed in 5.4.287 with commit 43ca32ce12888fb0eeb2d74dfc558dea60d3473e Issue introduced in 4.12 with commit 04ec7bb642b77374b53731b795b5654b5aff1c00 and fixed in 5.10.231 with commit 5dabb7af57bc72308a6e2e81a5dd756eef283803 Issue introduced in 4.12 with commit 04ec7bb642b77374b53731b795b5654b5aff1c00 and fixed in 5.15.174 with commit 885109aa0c70639527dd6a65c82e63c9ac055e3d Issue introduced in 4.12 with commit 04ec7bb642b77374b53731b795b5654b5aff1c00 and fixed in 6.1.120 with commit 7ae27880de3482e063fcc1f72d9a298d0d391407 Issue introduced in 4.12 with commit 04ec7bb642b77374b53731b795b5654b5aff1c00 and fixed in 6.6.64 with commit 8a92dc4df89c50bdb26667419ea70e0abbce456e Issue introduced in 4.12 with commit 04ec7bb642b77374b53731b795b5654b5aff1c00 and fixed in 6.12.4 with commit 19cacabdd5a8487ae566cbecb4d03bcb038a067e Issue introduced in 4.12 with commit 04ec7bb642b77374b53731b795b5654b5aff1c00 and fixed in 6.13-rc1 with commit 45af52e7d3b8560f21d139b3759735eead8b1653 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-56569 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: kernel/trace/ftrace.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/43ca32ce12888fb0eeb2d74dfc558dea60d3473e https://git.kernel.org/stable/c/5dabb7af57bc72308a6e2e81a5dd756eef283803 https://git.kernel.org/stable/c/885109aa0c70639527dd6a65c82e63c9ac055e3d https://git.kernel.org/stable/c/7ae27880de3482e063fcc1f72d9a298d0d391407 https://git.kernel.org/stable/c/8a92dc4df89c50bdb26667419ea70e0abbce456e https://git.kernel.org/stable/c/19cacabdd5a8487ae566cbecb4d03bcb038a067e https://git.kernel.org/stable/c/45af52e7d3b8560f21d139b3759735eead8b1653