An attacker who uses this vulnerability can craft a PDF which leads to the RAM being exhausted. This requires accessing an image using /FlateDecode with large size values.
This has been fixed in pypdf==6.10.2.
If you cannot upgrade yet, consider applying the changes from PR #3734.