Libical versions before 3.0.17-5.oe2403sp1 contain a use-after-free and double free vulnerability in the icalparser_clean() function, which can be triggered by supplying truncated iCalendar input missing matching END lines. This can lead to heap memory corruption and application crashes. Additionally, a denial of service vulnerability exists due to improper parser nesting level reset when reusing an icalparser, allowing memory growth and silent dropping of later calendars when malformed input is processed. These issues are fixed in version 3.0.17-5.oe2403sp1.