CVE-2025-21777 Details
Description
In the Linux kernel, the following vulnerability has been resolved: ring-buffer: Validate the persistent meta data subbuf array The meta data for a mapped ring buffer contains an array of indexes of all the subbuffers. The first entry is the reader page, and the rest of the entries lay out the order of the subbuffers in how the ring buffer link list is to be created. The validator currently makes sure that all the entries are within the range of 0 and nr_subbufs. But it does not check if there are any duplicates. While working on the ring buffer, I corrupted this array, where I added duplicates. The validator did not catch it and created the ring buffer link list on top of it. Luckily, the corruption was only that the reader page was also in the writer path and only presented corrupted data but did not crash the kernel. But if there were duplicates in the writer side, then it could corrupt the ring buffer link list and cause a crash. Create a bitmask array with the size of the number of subbuffers. Then clear it. When walking through the subbuf array checking to see if the entries are within the range, test if its bit is already set in the subbuf_mask. If it is, then there is duplicates and fail the validation. If not, set the corresponding bit and continue.
A vulnerability in the Linux kernel's ring buffer management has been addressed. The issue arose because the validation process for the metadata of a mapped ring buffer did not check for duplicate entries in the subbuffer index array. This array is crucial for creating the ring buffer link list, as it orders the subbuffers and indicates the reader page. The lack of duplicate validation could lead to corruption in the ring buffer link list, potentially causing a kernel crash. Although the corruption from this vulnerability was initially limited to misrepresenting data without crashing the kernel, it highlighted a significant oversight in the validation process.
The vulnerability has been resolved by enhancing the validation process to check for duplicates in the subbuffer array before creating the ring buffer link list.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/0d547a6f5e8fad26ebc12f501d7d19fccdbad6bf | kernel.org | Patch |
| https://git.kernel.org/stable/c/3ec743d558f111d8999aea24577ba66c65ee2eeb | kernel.org | Patch |
| https://git.kernel.org/stable/c/f5b95f1fa2ef3a03f49eeec658ba97e721412b32 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.12, < 6.12.16 >= 6.13, < 6.13.4 6.14 rc1 6.14 rc2 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 28, 2025 | Initial Analysis | [email protected] |
| Feb 27, 2025 | New CVE Received | kernel.org |