public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Milan Crha <mcrha@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/libical] f43: Resolves: #2553981 (CVE-2026-111269: Denial of Service via out-of-bounds read in icalvalue_decode_ical_string())
Date: Tue, 20 Oct 2026 13:32:23 GMT	[thread overview]
Message-ID: <179250314306.1.15174103649253975707.rpms-libical-9e915e660b30@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/libical
Branch : f43
Commit : 9e915e660b3007692d913b00c8ba1dbbfae74354
Author : Milan Crha <mcrha@redhat.com>
Date   : 2026-10-20T15:31:46+02:00
Stats  : +68/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/libical/c/9e915e660b3007692d913b00c8ba1dbbfae74354?branch=f43

Log:
Resolves: #2553981 (CVE-2026-111269: Denial of Service via out-of-bounds read in icalvalue_decode_ical_string())

---
diff --git a/0002-CVE-2026-111269-Out-of-bounds-read-in-value-decode.patch b/0002-CVE-2026-111269-Out-of-bounds-read-in-value-decode.patch
new file mode 100644
index 0000000..f5bbcc5
--- /dev/null
+++ b/0002-CVE-2026-111269-Out-of-bounds-read-in-value-decode.patch
@@ -0,0 +1,64 @@
+diff -up libical-3.0.20/src/libical/icallangbind.c.2 libical-3.0.20/src/libical/icallangbind.c
+--- libical-3.0.20/src/libical/icallangbind.c.2	2026-10-20 15:08:51.256951544 +0200
++++ libical-3.0.20/src/libical/icallangbind.c	2026-10-20 15:10:24.729927745 +0200
+@@ -206,11 +206,10 @@ char *icallangbind_property_eval_string_
+                 }
+                 /* Remove any newlines */
+ 
+-                for (j = copy, i = str; *i != 0; j++, i++) {
+-                    if (*i == '\n') {
+-                        i++;
++                for (j = copy, i = str; *i != 0; i++) {
++                    if (*i != '\n') {
++                        *j++ = *i;
+                     }
+-                    *j = *i;
+                 }
+ 
+                 *j = 0;
+diff -up libical-3.0.20/src/libical/icalvalue.c.2 libical-3.0.20/src/libical/icalvalue.c
+--- libical-3.0.20/src/libical/icalvalue.c.2	2025-03-10 17:08:27.000000000 +0100
++++ libical-3.0.20/src/libical/icalvalue.c	2026-10-20 15:07:17.753655494 +0200
+@@ -1554,6 +1554,10 @@ int icalvalue_decode_ical_string(const c
+ 
+     for (p = szText; *p != 0; p++) {
+         if (*p == '\\') {
++            if (*(p + 1) == 0) {
++                /* a trailing escape character escapes nothing; stop before the terminator */
++                break;
++            }
+             icalmemory_append_char(&str, &str_p, &buf_sz, *(p + 1));
+             p++;
+         } else {
+diff -up libical-3.0.20/src/test/regression.c.2 libical-3.0.20/src/test/regression.c
+--- libical-3.0.20/src/test/regression.c.2	2025-03-10 17:08:27.000000000 +0100
++++ libical-3.0.20/src/test/regression.c	2026-10-20 15:11:47.025294059 +0200
+@@ -3814,6 +3814,12 @@ void test_langbind(void)
+            " mary@foo.org\r\n");
+ 
+     icalcomponent_free(c);
++
++    /* newlines are dropped from the value, including a trailing one */
++    p = icalproperty_new_url("http://a\n\nb\n");
++    ok("eval_string drops newlines",
++       strstr(icallangbind_property_eval_string(p, ":"), ", 'value':'http://ab'") != NULL);
++    icalproperty_free(p);
+ }
+ 
+ void test_property_parse(void)
+@@ -4621,6 +4627,15 @@ void test_icalvalue_decode_ical_string(v
+     ok("Buffer not changed", (strcmp(buff, defvalue) == 0));
+     ok("Decodes into large-enough buffer", (icalvalue_decode_ical_string(value, buff, 3) != 0));
+     ok("Properly decoded", (strcmp(buff, "a\\") == 0));
++
++    /* Ending escape character at the very end of an allocation must not read past it */
++    {
++        char *heap = strdup("a\\");
++
++        ok("Decodes string ending in escape character", (icalvalue_decode_ical_string(heap, buff, (int)sizeof(buff)) != 0));
++        ok("Ending escape character ignored", (strcmp(buff, "a") == 0));
++        free(heap);
++    }
+ }
+ 
+ void test_icalcomponent_normalize(void)

diff --git a/libical.spec b/libical.spec
index ba48961..6718755 100644
--- a/libical.spec
+++ b/libical.spec
@@ -3,7 +3,7 @@
 Summary:	Reference implementation of the iCalendar data type and serialization format
 Name:		libical
 Version:	3.0.20
-Release:	5%{?dist}
+Release:	6%{?dist}
 License:	LGPL-2.1-only OR MPL-2.0
 URL:		https://libical.github.io/libical/
 Source:		https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
@@ -11,6 +11,9 @@ Source:		https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{versio
 # https://github.com/libical/libical/issues/1361
 Patch:          0001-CVE-2026-88383-bsearch-incompatible-callback-pointer.patch
 
+# https://github.com/libical/libical/pull/1455
+Patch:          0002-CVE-2026-111269-Out-of-bounds-read-in-value-decode.patch
+
 BuildRequires:	gcc
 BuildRequires:	gcc-c++
 BuildRequires:	cmake

                 reply	other threads:[~2026-10-20 13:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179250314306.1.15174103649253975707.rpms-libical-9e915e660b30@fedoraproject.org \
    --to=mcrha@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox