| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.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 dec65d79fd269d05427c8167090bfc9c3d0b56c4 and fixed in 5.4.285 with commit 5e3231b352725ff4a3a0095e6035af674f2d8725 |
| Issue introduced in 5.1 with commit dec65d79fd269d05427c8167090bfc9c3d0b56c4 and fixed in 5.10.229 with commit 02874ca52df2ca2423ba6122039315ed61c25972 |
| Issue introduced in 5.1 with commit dec65d79fd269d05427c8167090bfc9c3d0b56c4 and fixed in 5.15.170 with commit b86b0d6eea204116e4185acc35041ca4ff11a642 |
| Issue introduced in 5.1 with commit dec65d79fd269d05427c8167090bfc9c3d0b56c4 and fixed in 6.1.115 with commit f4ed40d1c669bba1a54407d8182acdc405683f29 |
| Issue introduced in 5.1 with commit dec65d79fd269d05427c8167090bfc9c3d0b56c4 and fixed in 6.6.59 with commit a14a075a14af8d622c576145455702591bdde09d |
| Issue introduced in 5.1 with commit dec65d79fd269d05427c8167090bfc9c3d0b56c4 and fixed in 6.11.6 with commit 5fd942598ddeed9a212d1ff41f9f5b47bcc990a7 |
| Issue introduced in 5.1 with commit dec65d79fd269d05427c8167090bfc9c3d0b56c4 and fixed in 6.12 with commit 0b6e2e22cb23105fcb171ab92f0f7516c69c8471 |
| |
| 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/5e3231b352725ff4a3a0095e6035af674f2d8725 |
| https://git.kernel.org/stable/c/02874ca52df2ca2423ba6122039315ed61c25972 |
| 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 |