CVE-2026-5314
Description
A flaw was found in Nothings stb, specifically within the stbtt_InitFont_internal function in the stb_truetype.h library. A remote attacker can exploit this vulnerability by performing a manipulation that leads to an out-of-bounds read. This can result in a Denial of Service (DoS), making the affected component unavailable. The exploit for this vulnerability has been publicly disclosed.
Statement
This Moderate impact vulnerability in Nothings stb allows a remote attacker to cause a Denial of Service. An out-of-bounds read in the stbtt_InitFont_internal function, triggered by processing a manipulated TTF file, can render the affected component unavailable. This issue affects Red Hat Community Projects that utilize the stb library for TTF file handling, such as those distributed via EPEL.
Mitigation
To mitigate this issue, avoid processing untrusted TrueType font files with applications that utilize the `stb_truetype.h` library. Restricting the sources of font files to trusted origins can reduce the risk of exploitation.
Understanding the Weakness (CWE)
Confidentiality
Technical Impact: Read Memory
An attacker could get secret values such as cryptographic keys, PII, memory addresses, or other information that could be used in additional attacks.
Confidentiality
Technical Impact: Bypass Protection Mechanism
Out-of-bounds memory could contain memory addresses or other information that can be used to bypass ASLR and other protection mechanisms in order to improve the reliability of exploiting a separate weakness for code execution.
Availability
Technical Impact: DoS: Crash, Exit, or Restart
An attacker could cause a segmentation fault or crash by causing memory to be read outside of the bounds of the buffer. This is especially likely when the code reads a variable amount of data and assumes that a sentinel exists to stop the read operation, such as a NUL in a string.
Other
Technical Impact: Varies by Context
The read operation could produce other undefined or unexpected results.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.