Libical versions before 3.0.17-5.oe2403sp3 contain a use-after-free and double free vulnerability in the icalparser_clean() function. This flaw allows attackers to corrupt heap memory by providing truncated iCalendar input missing a matching END line, potentially causing application crashes. Additionally, there is a denial of service vulnerability where the parser nesting level is not reset when reusing an icalparser, allowing memory to grow unbounded and later calendars to be dropped. These issues are fixed in version 3.0.17-5.oe2403sp3.