Fedora Account System
Red Hat Associate
Red Hat Customer
Tesseract is an open source OCR engine. In version 5.5.3 and earlier, Classify::ReadIntTemplates in src/classify/intproto.cpp reads NumClassPruners, NumClasses, and NumProtoSets from the TESSDATA_INTTEMP component of a crafted .traineddata file and uses those values as loop bounds without validating them against MAX_NUM_CLASS_PRUNERS, MAX_NUM_CLASSES, and MAX_NUM_PROTO_SETS. The loops store heap pointers into fixed-capacity ClassPruners and ProtoSets arrays in INT_TEMPLATES_STRUCT and INT_CLASS_STRUCT, so an oversized count causes heap out-of-bounds pointer writes during legacy-classifier initialization before OCR begins, resulting in heap corruption, a crash, or potentially controlled corruption. No fixed release is available as of this review.
This issue has been addressed in the following products: Red Hat Enterprise Linux 10 Via RHSA-2026:95085 https://access.redhat.com/errata/RHSA-2026:95085
This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2026:95086 https://access.redhat.com/errata/RHSA-2026:95086
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2026:95725 https://access.redhat.com/errata/RHSA-2026:95725
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On Via RHSA-2026:96239 https://access.redhat.com/errata/RHSA-2026:96239
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions Red Hat Enterprise Linux 8.8 Telecommunications Update Service Via RHSA-2026:96238 https://access.redhat.com/errata/RHSA-2026:96238