Linux kernel denial of service in ring-buffer CPU metadata reads
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:
ring-buffer: Do not show buffer_meta for CPUs without a buffer
The per_cpu/cpuN/buffer_meta files are created for every possible CPU, but buffer->buffers[cpu] is only allocated once that CPU comes online. Reading the file of a CPU that never came online dereferences a NULL cpu_buffer in rbm_start().
Fail the open with -ENODEV when the CPU has no buffer, as the other per CPU ring buffer interfaces do.
From the CVE record · Linux
The Linux kernel creates a buffer_meta file for every possible CPU, even when that CPU has never come online and has no allocated buffer. A local user who can read such a file can trigger a NULL pointer dereference; the input does not specify whether authentication is required.
Engineers running the Linux kernel should check affected systems; affected versions are not specified.