The vulnerability is an infinite loop (CWE-835) in pypdf's PdfReader._read_standard_xref_table method. When parsing a standard xref table, the method enters a while True loop that reads a 7-byte trailer tag. If the tag is not b"trailer", it seeks back 7 bytes and continues, expecting to find another xref section. However, when the file is truncated/incomplete and ends without a trailer keyword (hitting EOF), stream.read(7) returns fewer than 7 bytes (or empty), which never equals b"trailer". The subsequent stream.seek(-7, 1) keeps the stream position at EOF, so the loop repeats forever at the same position. The fix (commit 06593f993789a4b573dd955730c1a7051128bb2a) introduces a previous_position variable that detects when the rewound position repeats, raising a PdfReadError to break the loop. The vulnerable function is PdfReader._read_standard_xref_table in pypdf/_reader.py, which is the method that was modified by the patch and is the one that would appear in a runtime profile/stack trace during exploitation (when a malicious PDF triggers the infinite loop).