lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2024110558-CVE-2024-50131-0e78@gregkh>
Date: Tue,  5 Nov 2024 18:11:20 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2024-50131: tracing: Consider the NULL character when validating the event length

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ