ring-buffer: Add checking nr_subbufs to persistent ring buffer validation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| 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: Add checking nr_subbufs to persistent ring buffer validation
Sashiko reported that the code was using meta->nr_subbufs without making sure that it matched the nr_pages + 1 on data that was assuming the two were the same.
Add a check to the persistent ring buffer validation code to make sure that the saved nr_subbufs matches what we expect.
From the CVE record · Linux
The Linux kernel’s persistent ring buffer validation did not check that the saved nr_subbufs value matched the expected nr_pages + 1 value. The input does not specify an attacker impact or whether exploitation requires network access, authentication, or user interaction.
Anyone running the Linux kernel should check their version; affected versions are not specified.