# CVE-2024-50131: tracing: Consider the NULL character when validating the event length

- Severity: High 7.3 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-11-05T17:10:56.981Z
- Modified: 2026-10-15T01:19:07.857Z
- Weaknesses: CWE-120
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from dec65d79fd269d05427c8167090bfc9c3d0b56c4 before 5e3231b352725ff4a3a0095e6035af674f2d8725; from dec65d79fd269d05427c8167090bfc9c3d0b56c4 before 02874ca52df2ca2423ba6122039315ed61c25972; from dec65d79fd269d05427c8167090bfc9c3d0b56c4 before b86b0d6eea204116e4185acc35041ca4ff11a642; from dec65d79fd269d05427c8167090bfc9c3d0b56c4 before f4ed40d1c669bba1a54407d8182acdc405683f29; from dec65d79fd269d05427c8167090bfc9c3d0b56c4 before a14a075a14af8d622c576145455702591bdde09d; from dec65d79fd269d05427c8167090bfc9c3d0b56c4 before 5fd942598ddeed9a212d1ff41f9f5b47bcc990a7; from dec65d79fd269d05427c8167090bfc9c3d0b56c4 before 0b6e2e22cb23105fcb171ab92f0f7516c69c8471; 5.1 (not affected: before 5.1; from 5.4.285 up to 5.4.*; from 5.10.229 up to 5.10.*; from 5.15.170 up to 5.15.*; from 6.1.115 up to 6.1.*; from 6.6.59 up to 6.6.*; from 6.11.6 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 5.1 before 5.15.170; from 5.16 before 6.1.115; from 6.2 before 6.6.59; from 6.7 before 6.11.6; 6.12

## Every score

- Linux: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/5e3231b352725ff4a3a0095e6035af674f2d8725>
- <https://git.kernel.org/stable/c/02874ca52df2ca2423ba6122039315ed61c25972>
- <https://git.kernel.org/stable/c/b86b0d6eea204116e4185acc35041ca4ff11a642> (patch)
- <https://git.kernel.org/stable/c/f4ed40d1c669bba1a54407d8182acdc405683f29> (patch)
- <https://git.kernel.org/stable/c/a14a075a14af8d622c576145455702591bdde09d> (patch)
- <https://git.kernel.org/stable/c/5fd942598ddeed9a212d1ff41f9f5b47bcc990a7> (patch)
- <https://git.kernel.org/stable/c/0b6e2e22cb23105fcb171ab92f0f7516c69c8471> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Sources

- CVE List: [CVE-2024-50131](https://www.cve.org/CVERecord?id=CVE-2024-50131), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-50131](https://nvd.nist.gov/vuln/detail/CVE-2024-50131), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-50131 · Whole record: https://cve.day/CVE-2024-50131.json · Rebuilt by cve.day 2026-11-25T22:58:47.790Z
