REDHAT-BUG-2348593: Low severity Linux Foundation Linux Kernel vulnerability

Published Feb 27, 2025
·
Updated

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 nrsubbufs. 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 subbufmask. If it is, then there is duplicates and fail the validation. If not, set the corresponding bit and continue.

Affected Software

1 affected component
Linux Foundation Linux Kernel

Event History

Feb 27, 2025
Data Sourced
via Red Hat·03:04 AM
DescriptionSeverityAffected Software
Nov 13, 58214
Event
via Red Hat·05:43 AM

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using a mapped persistent ring buffer are affected when the persistent metadata subbuffer array is processed. The issue concerns validation of the array entries used to construct the ring buffer linked-list order.

2

What condition is required to trigger the problem?

The metadata subbuffer array must contain duplicate indexes. Existing validation checked that indexes were in range but did not reject duplicates.

3

What could happen if duplicate indexes are accepted?

A duplicate reader-page entry may result in corrupted ring-buffer data. Duplicates in the writer-side entries can corrupt the ring-buffer linked list and may cause a kernel crash.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203