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 63AD11DD88D for ; Tue, 5 Nov 2024 17:12:48 +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=1730826768; cv=none; b=qIbnBFM7FKr+k5BJsW0st/6cIfojooHmPY/hJqp09u4DGzF0ysY2zBlaohfb3sYX762oeGjdBUE6z912QvOA+Ch9DiwqCvSYHGu463TcG3/qZzsyfPuuKpV2ioIs6bhpa5NRbbkAcrLCNMi7QYbKuMJcWtN/IQ4XCxPpcvCCZYk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730826768; c=relaxed/simple; bh=DbErbhn8tkNpiLwmbIf1yVIPfyt+eklV3LzE7M5sX7k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UxhRE7ygOOqDuUqOTSfXB+nnzF1IA4/D9LZtI5o32JU5NWHm02htpdYeatALKx/U3AcWjoUyyBYGSxDTsfjPh+MP+WLcjDJGcTpZ3QRzB1k8D9BPxnVfh36Nb8jLB5h0Ug979nmCAImVDJC0qQtnu8SDPz+uB9eAw4YwMQEt+FE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x87VxUkb; 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="x87VxUkb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D56E9C4CECF; Tue, 5 Nov 2024 17:12:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730826768; bh=DbErbhn8tkNpiLwmbIf1yVIPfyt+eklV3LzE7M5sX7k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=x87VxUkbiyPHPnbEicvhMm1B5EUdNUjX/JQrP5kPO5yx8OXg27qd1aoIDrI/J8Lr9 rSV6tmOVIMRn7JO5NgX276ZVaO6GJSZdM81v+T6l9BhhOJo9P2I+uG1KEs9E8qsdm2 ms+rm1qI+cs6q5lbedSDZqA/pvXsvjGC8UCyW0Yg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50131: tracing: Consider the NULL character when validating the event length Date: Tue, 5 Nov 2024 18:11:20 +0100 Message-ID: <2024110558-CVE-2024-50131-0e78@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=2433; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DbErbhn8tkNpiLwmbIf1yVIPfyt+eklV3LzE7M5sX7k=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlagYsqZLU8b29ak3rR8GFPuJLBhnTnuU0HW3lqs+fnL TthET2xI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYSvpVhfpbRjhmprEH3WHRv l1mU1T5xvfv6IcOCHTW/jbUmpcxcs8P9xI226ANBSx7XAgA= 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: tracing: Consider the NULL character when validating the event length strlen() returns a string length excluding the null byte. If the string length equals to the maximum buffer length, the buffer will have no space for the NULL terminating character. This commit checks this condition and returns failure for it. The Linux kernel CVE team has assigned CVE-2024-50131 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit dec65d79fd26 and fixed in 5.15.170 with commit b86b0d6eea20 Issue introduced in 5.1 with commit dec65d79fd26 and fixed in 6.1.115 with commit f4ed40d1c669 Issue introduced in 5.1 with commit dec65d79fd26 and fixed in 6.6.59 with commit a14a075a14af Issue introduced in 5.1 with commit dec65d79fd26 and fixed in 6.11.6 with commit 5fd942598dde Issue introduced in 5.1 with commit dec65d79fd26 and fixed in 6.12-rc5 with commit 0b6e2e22cb23 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-50131 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/trace_probe.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/b86b0d6eea204116e4185acc35041ca4ff11a642 https://git.kernel.org/stable/c/f4ed40d1c669bba1a54407d8182acdc405683f29 https://git.kernel.org/stable/c/a14a075a14af8d622c576145455702591bdde09d https://git.kernel.org/stable/c/5fd942598ddeed9a212d1ff41f9f5b47bcc990a7 https://git.kernel.org/stable/c/0b6e2e22cb23105fcb171ab92f0f7516c69c8471