CVE-2025-21777
Last modified
CVE-2025-21777 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.19% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.12, < 6.12.16 | — |
| Linux | Linux Kernel | >= 6.13, < 6.13.4 | — |
| Linux | Linux Kernel | 6.14 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-21777?
How severe is CVE-2025-21777?
How do I fix CVE-2025-21777?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-21771In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21772In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-21773In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21774In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21775In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21776In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21778In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21779In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21780In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-21781In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21782In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-21783In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-21777?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
