All reports
Medium

kernel: tracing: Consider the NULL character when validating the event length

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-50131

Probability of exploitation in the next 30 days: 0.25%

FIRST EPSS · 2026-11-18

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.

A flaw was found in the Linux kernel's tracing subsystem. When validating event string lengths, the system fails to account for the terminating null byte, leaving insufficient space in the buffer when an event string reaches the maximum allowable length. A local user with administrative privileges could exploit this flaw to trigger memory corruption, resulting in a denial of service (DoS) and system crash.