tracing/remotes: Fix leak in trace_remote_alloc_buffer() error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tracing/remotes: Fix leak in trace_remote_alloc_buffer() error path
If page allocation fails in trace_remote_alloc_buffer(), desc->nr_cpus is not yet incremented for the current CPU. As a consequence, on error, half-allocated rb_desc will not be freed in trace_remote_free_buffer().
Increment desc->nr_cpus as soon as the first allocation for the current CPU has succeeded.
From the CVE record · Linux
The Linux kernel can leak a partially allocated tracing remote buffer if page allocation fails in trace_remote_alloc_buffer(). The input does not describe how an attacker could trigger the failure or specify access or user-interaction requirements.
Operators running the Linux kernel should check their installations; affected versions are not specified.