CVE-2024-50131
tracing: Consider the NULL character when validating the event length
Mitigation
- Upgrade Linux to 0b6e2e22cb23105fcb171ab92f0f7516c69c8471 or later.
Who should check
- Anyone running Linux >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 5e3231b352725ff4a3a0095e6035af674f2d8725; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 02874ca52df2ca2423ba6122039315ed61c25972; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < b86b0d6eea204116e4185acc35041ca4ff11a642; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < f4ed40d1c669bba1a54407d8182acdc405683f29; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < a14a075a14af8d622c576145455702591bdde09d; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 5fd942598ddeed9a212d1ff41f9f5b47bcc990a7; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 0b6e2e22cb23105fcb171ab92f0f7516c69c8471
- Anyone running Linux 5.1
Vulnerability facts
- Affected
- Linux >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 5e3231b352725ff4a3a0095e6035af674f2d8725; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 02874ca52df2ca2423ba6122039315ed61c25972; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < b86b0d6eea204116e4185acc35041ca4ff11a642; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < f4ed40d1c669bba1a54407d8182acdc405683f29; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < a14a075a14af8d622c576145455702591bdde09d; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 5fd942598ddeed9a212d1ff41f9f5b47bcc990a7; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 0b6e2e22cb23105fcb171ab92f0f7516c69c8471; Linux 5.1
- Fixed in
- Linux 5e3231b352725ff4a3a0095e6035af674f2d8725, Linux 02874ca52df2ca2423ba6122039315ed61c25972, Linux 5fd942598ddeed9a212d1ff41f9f5b47bcc990a7, Linux 0b6e2e22cb23105fcb171ab92f0f7516c69c8471
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.3 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: Low
- Availability impact: High
- EPSS
- 0.35% chance of exploitation in 30 days (percentile 21, 2026-11-26)
- CWE
- CWE-120
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 5e3231b352725ff4a3a0095e6035af674f2d8725; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 02874ca52df2ca2423ba6122039315ed61c25972; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < b86b0d6eea204116e4185acc35041ca4ff11a642; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < f4ed40d1c669bba1a54407d8182acdc405683f29; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < a14a075a14af8d622c576145455702591bdde09d; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 5fd942598ddeed9a212d1ff41f9f5b47bcc990a7; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 0b6e2e22cb23105fcb171ab92f0f7516c69c8471 | — | cvelist |
| Linux | 5.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-50131. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-50131.md Affected: Linux >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 5e3231b352725ff4a3a0095e6035af674f2d8725; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 02874ca52df2ca2423ba6122039315ed61c25972; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < b86b0d6eea204116e4185acc35041ca4ff11a642; >= dec65d79fd269d05427c816… Fixed in: Linux 5e3231b352725ff4a3a0095e6035af674f2d8725, Linux 02874ca52df2ca2423ba6122039315ed61c25972, Linux 5fd942598ddeed9a212d1ff41f9f5b47bcc990a7, Linux 0b6e2e22cb23105fcb171ab92f0f7516c69c8471 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- 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
Other
- https://git.kernel.org/stable/c/5e3231b352725ff4a3a0095e6035af674f2d8725
- https://git.kernel.org/stable/c/02874ca52df2ca2423ba6122039315ed61c25972
- 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
FAQ
Is CVE-2024-50131 being exploited?
There is no confirmed exploitation: CVE-2024-50131 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-50131?
High: CVSS 7.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-50131?
Linux >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 5e3231b352725ff4a3a0095e6035af674f2d8725; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 02874ca52df2ca2423ba6122039315ed61c25972; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < b86b0d6eea204116e4185acc35041ca4ff11a642; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < f4ed40d1c669bba1a54407d8182acdc405683f29; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < a14a075a14af8d622c576145455702591bdde09d; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 5fd942598ddeed9a212d1ff41f9f5b47bcc990a7; >= dec65d79fd269d05427c8167090bfc9c3d0b56c4, < 0b6e2e22cb23105fcb171ab92f0f7516c69c8471; Linux 5.1.
Is there a fix for CVE-2024-50131?
Yes. Fixed in Linux 5e3231b352725ff4a3a0095e6035af674f2d8725, Linux 02874ca52df2ca2423ba6122039315ed61c25972, Linux 5fd942598ddeed9a212d1ff41f9f5b47bcc990a7, Linux 0b6e2e22cb23105fcb171ab92f0f7516c69c8471. Upgrade Linux to 0b6e2e22cb23105fcb171ab92f0f7516c69c8471 or later.
How do I check if I'm affected by CVE-2024-50131?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.