REDHAT-BUG-2348578: Buffer Overflow

Published Feb 27, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

OPP: add index check to assert to avoid buffer overflow in readfreq()

Pass the freq index to the assert function to make sure we do not read a freq out of the opp->rates[] table when called from the indexed variants: devpmoppfindfreqexactindexed() or devpmoppfindfreqceil/floorindexed().

Add a secondary parameter to the assert function, unused for assertsingleclk() then add assertclkindex() which will check for the clock index when called from the indexed() find functions.

Affected Software

1 affected component
linux/kernel

Event History

Feb 27, 2025
Data Sourced
via Red Hat·03:03 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What conditions are required to trigger the overflow?

The vulnerable path is reached through the indexed OPP frequency lookup functions: dev_pm_opp_find_freq_exact_indexed(), dev_pm_opp_find_freq_ceil_indexed(), or dev_pm_opp_find_freq_floor_indexed(). An out-of-range frequency index can cause _read_freq() to access beyond the opp->rates[] table.

2

Which systems or configurations are affected?

The issue is in the Linux kernel OPP subsystem and concerns configurations or drivers that use the indexed OPP frequency lookup variants. The provided information does not identify specific hardware platforms, kernel versions, or default configurations.

3

What does the fix change?

The fix passes the frequency index into the assertion path and adds an index-specific clock assertion. This prevents _read_freq() from reading a frequency outside the opp->rates[] table when invoked by indexed lookup functions.

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