tracing: Consider the NULL character when validating the event length
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ dec65d79fd269d05427c8167090bfc9c3d0b56c4 · < 5fd942598ddeed9a212d1ff41f9f5b47bcc990a7| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s tracing code did not account for the NULL character when validating an event’s length. A string that fills the maximum buffer length leaves no space for the terminator; the input does not specify what an attacker could do or whether access or user interaction is required.
Engineers running the Linux kernel should check their versions; affected versions are not specified.