Libical versions before 3.0.17-5.oe2403sp4 contain a use-after-free and double free vulnerability in the icalparser_clean() function. This flaw allows attackers to corrupt heap memory by supplying truncated iCalendar input missing matching END lines, potentially causing application crashes. Additionally, a denial of service vulnerability exists due to improper parser state reset when reusing an icalparser, leading to memory growth and dropped calendar processing. These issues are fixed in version 3.0.17-5.oe2403sp4.