CVE-2025-13654
Description
A flaw was found in duc. This vulnerability allows an out-of-bounds read via a stack buffer overflow in the buffer_get function, where a condition can evaluate to true due to underflow.
Statement
This vulnerability is rated Important for Red Hat products as it affects the duc package, available in Community Projects (EPEL and Fedora). A stack buffer overflow in the buffer_get function of duc can lead to an out-of-bounds read, potentially resulting in a denial of service. Exploitation does not require user interaction or elevated privileges.
Mitigation
To mitigate this issue, if the `duc` package is not required, it can be removed from the system. If `duc` functionality is necessary, restrict its use to trusted administrators and ensure it is executed in a controlled environment to limit potential exposure.
Understanding the Weakness (CWE)
Availability
Technical Impact: DoS: Crash, Exit, or Restart; DoS: Resource Consumption (CPU); DoS: Resource Consumption (Memory); DoS: Instability
This weakness will generally lead to undefined behavior and therefore crashes. In the case of overflows involving loop index variables, the likelihood of infinite loops is also high.
Integrity
Technical Impact: Modify Memory
If the value in question is important to data (as opposed to flow), simple data corruption has occurred. Also, if the wrap around results in other conditions such as buffer overflows, further memory corruption may occur.
Confidentiality,Availability,Access Control
Technical Impact: Execute Unauthorized Code or Commands; Bypass Protection Mechanism
This weakness can sometimes trigger buffer overflows which can be used to execute arbitrary code. This is usually outside the scope of a program's implicit security policy.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.