From patchwork Fri Dec 4 10:13:08 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogita Urade X-Patchwork-Id: 107292 Received: from aer-iport-6.cisco.com (aer-iport-6.cisco.com [173.38.203.68]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.4992.1796379192659909819 for ; Fri, 04 Dec 2026 02:13:13 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: message contains an insecure body length tag" header.i=@cisco.com header.s=iport01 header.b=ieH9bYbS; spf=pass (domain: cisco.com, ip: 173.38.203.68, mailfrom: yurade@cisco.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=6564; q=dns/txt; s=iport01; t=1796379192; x=1797588792; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=6gaq1KFRlXEyK1fvymNXSE7ZOFp4vh2Xiyi8Xy7CZh4=; b=ieH9bYbS42qR5rFoKv/p9ht1+h2vntpgIrzeQJABH6KOxYw5yXCQ9h1s 1gpB5Mxrlbs9KMB7rQe5iaHZ+Peb8ZBkUe61IHW/ZTa2Wyvmg45Z6zsDs uBn5hM6A2ey4zi9LK+XehQEviGQZWkAo/M8x2mIibiazZfjl9P91RP3mn O2k6ePV9ewf/L4Z6Z4hZffLOkmQCpKqunaywzpJQ5J+ZSKfLAbNajGBji 5hmB9WOIH2+KSjuUsCnOIyLcGCZn4FNSuX7wNHi2mU9iGeycnSRuKrVeM cb7LKyfA5Ve84iQltqrrlk+VBeM/7drOUvFVlypbwmnc6TuBZqO4NHP/E g==; X-CSE-ConnectionGUID: yM82kwKkQmC3R9DUfQTg+Q== X-CSE-MsgGUID: d1ac3UiUTIOuPxVKAmBe2A== X-IPAS-Result: A0BDAgBwkRJr/8pK/pBaHgEBCxIMggULgld1YUJJA5QpgiGBFp0XgX4PAQEBD0QNBAEBkysCJjQJDgECBAMCAwEBAQEBAQEBAQEBAQoBAQUBAQECA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ymAeBFgdUkG2if24kVKlHdVHJ koZ/yAjoaQ/+AqsVNaVYvGjiHeJpFsYHtFXCeB/sFjLwavP6AHfDW8BJtJcVOEbWAYNbWRC/ je0cxnBXFSDbJX9paqhy4qp IronPort-HdrOrdr: A9a23:eVbunq4J5RfXlnYX8APXwPjXdLJyesId70hD6qkXc202TiX2ra 6TdZgguCMc6wxhO03I5+rgBEDoexq1nvRICOIqUotKMjOLhILRFuFfxLqn5SH8ECvj8eMY/6 Jhf69iTODUNzFB/KPHCM3SKadG/DFBm5rY4dvj8w== X-Talos-CUID: 9a23:IzH0+m3bzHP3hM4cc/LwUbxfC+V1KH7C73TpJmTjMzdFdbOsdVDTwfYx X-Talos-MUID: 9a23:AulRcg8q48l6wdOqnZCHWEaQf8sx6q/1NUEwrbQhpvGUCw9ZPh2Q1h3iFw== X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.29,78,1794873600"; d="scan'208";a="61840658" Received: from aer-l-core-01.cisco.com ([144.254.74.202]) by aer-iport-6.cisco.com with ESMTP/TLS/TLS_AES_256_GCM_SHA384; 04 Dec 2026 10:13:10 +0000 Received: from sjc-ads-1246.cisco.com (sjc-ads-1246.cisco.com [171.70.58.188]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ciscoit-managed-infra-smtp-auth.cisco.com", Issuer "Internal Private TLS SubCA" (verified OK)) by aer-l-core-01.cisco.com (Postfix) with ESMTPS id A2476D5E7F for ; Fri, 4 Dec 2026 10:13:10 +0000 (GMT) Received: by sjc-ads-1246.cisco.com (Postfix, from userid 1889728) id 54FABCC12A6; Fri, 4 Dec 2026 02:13:09 -0800 (PST) From: Yogita Urade To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose][PATCH 2/2] avahi: Fix CVE-2026-59987 Date: Fri, 4 Dec 2026 02:13:08 -0800 Message-Id: <20261204101308.81353-1-yurade@cisco.com> X-Mailer: git-send-email 2.35.6 MIME-Version: 1.0 X-Outbound-Client-TLS: VERIFIED;sjc-ads-1246.cisco.com [171.70.58.188];TLSv1.3;TLS_AES_256_GCM_SHA384;256;ciscoit-managed-infra-smtp-auth.cisco.com X-Outbound-SMTP-Client: 171.70.58.188, sjc-ads-1246.cisco.com X-Outbound-Node: aer-l-core-01.cisco.com List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 10:13:22 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251951 This patch applies the upstream fix as referenced in [3], using the commits shown in [1] and [2]. I enabled tests and assertions in the validation build. avahi-common/domain-test passed (exit 0) with --enable-tests and assertions active. [1] https://github.com/avahi/avahi/commit/41c005670c596e1f7c5fc00c5a47cffa8185ef25 [2] https://github.com/avahi/avahi/commit/5456796db28204c8dfc61b14814f52f4b3645530 [3] https://github.com/avahi/avahi/security/advisories/GHSA-4v6h-9g73-wm5j [4] https://github.com/avahi/avahi/pull/939 Signed-off-by: Yogita Urade --- meta/recipes-connectivity/avahi/avahi_0.8.bb | 2 + .../avahi/files/CVE-2026-59987_p1.patch | 64 +++++++++++++++++++ .../avahi/files/CVE-2026-59987_p2.patch | 43 +++++++++++++ 3 files changed, 109 insertions(+) create mode 100644 meta/recipes-connectivity/avahi/files/CVE-2026-59987_p1.patch create mode 100644 meta/recipes-connectivity/avahi/files/CVE-2026-59987_p2.patch diff --git a/meta/recipes-connectivity/avahi/avahi_0.8.bb b/meta/recipes-connectivity/avahi/avahi_0.8.bb index 7c4ec2b935..1ffb029200 100644 --- a/meta/recipes-connectivity/avahi/avahi_0.8.bb +++ b/meta/recipes-connectivity/avahi/avahi_0.8.bb @@ -43,6 +43,8 @@ SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/avahi-${PV}.tar.gz \ file://CVE-2025-68471.patch \ file://CVE-2026-34933-1.patch \ file://CVE-2026-34933-2.patch \ + file://CVE-2026-59987_p1.patch \ + file://CVE-2026-59987_p2.patch \ " GITHUB_BASE_URI = "https://github.com/avahi/avahi/releases/" diff --git a/meta/recipes-connectivity/avahi/files/CVE-2026-59987_p1.patch b/meta/recipes-connectivity/avahi/files/CVE-2026-59987_p1.patch new file mode 100644 index 0000000000..9c1f3c95e7 --- /dev/null +++ b/meta/recipes-connectivity/avahi/files/CVE-2026-59987_p1.patch @@ -0,0 +1,64 @@ +From 41c005670c596e1f7c5fc00c5a47cffa8185ef25 Mon Sep 17 00:00:00 2001 +From: Evgeny Vereshchagin +Date: Mon, 22 Jun 2026 03:30:28 +0000 +Subject: [PATCH] common: make sure valid domain names can be normalized + +It fixes a bug where it was possible for unprivileged local users to +crash avahi-daemon via D-Bus by calling the RecordBrowserNew method with +bogus domain names. For example when the following commands were run +``` +l=$(perl -e 'print(join(".", ("["x63)x15))') +busctl call org.freedesktop.Avahi / org.freedesktop.Avahi.Server RecordBrowserNew "iisqqu" -- -1 -1 "$l" 0 0 0 +``` +avahi-daemon crashed with +``` +avahi-daemon: dbus-protocol.c:984: dbus_prepare_record_browser_object: Assertion `key' failed. +==2424== +==2424== Process terminating with default action of signal 6 (SIGABRT) +==2424== at 0x4B31DCC: __pthread_kill_implementation (in /usr/lib64/libc.so.6) +==2424== by 0x4AD6F8D: raise (in /usr/lib64/libc.so.6) +==2424== by 0x4ABE7B2: abort (in /usr/lib64/libc.so.6) +==2424== by 0x4ABF803: __libc_message_impl.cold (in /usr/lib64/libc.so.6) +==2424== by 0x4ACEE44: __assert_fail (in /usr/lib64/libc.so.6) +==2424== by 0x4002FB8: dbus_prepare_record_browser_object.cold (dbus-protocol.c:984) +==2424== by 0x400E4E9: dbus_select_browser.isra.0 (dbus-protocol.c:1119) +==2424== by 0x400FCA0: msg_server_impl (dbus-protocol.c:1185) +==2424== by 0x4A75DA3: dbus_connection_dispatch (in /usr/lib64/libdbus-1.so.3.38.3) +==2424== by 0x4014122: dispatch_timeout_callback.lto_priv.0 (dbus-watch-glue.c:105) +==2424== by 0x489CB4F: avahi_simple_poll_dispatch (in /usr/lib64/libavahi-common.so.3.5.4) +==2424== by 0x4004EF7: run_server (main.c:1279) +==2424== by 0x4004EF7: main (main.c:1708) +``` + +https://github.com/avahi/avahi/security/advisories/GHSA-4v6h-9g73-wm5j + +CVE: CVE-2026-59987 +Upstream-Status: Backport [https://github.com/avahi/avahi/commit/41c005670c596e1f7c5fc00c5a47cffa8185ef25] + +Signed-off-by: Yogita Urade +--- + avahi-common/domain.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/avahi-common/domain.c b/avahi-common/domain.c +index 88c6f01..5923a29 100644 +--- a/avahi-common/domain.c ++++ b/avahi-common/domain.c +@@ -369,11 +369,15 @@ int avahi_is_valid_service_subtype(const char *t) { + + int avahi_is_valid_domain_name(const char *t) { + int is_first = 1; ++ char normalized[AVAHI_DOMAIN_NAME_MAX]; + assert(t); + + if (strlen(t) >= AVAHI_DOMAIN_NAME_MAX) + return 0; + ++ if (!(avahi_normalize_name(t, normalized, sizeof(normalized)))) ++ return 0; ++ + do { + char label[AVAHI_LABEL_MAX]; + +-- +2.43.0 diff --git a/meta/recipes-connectivity/avahi/files/CVE-2026-59987_p2.patch b/meta/recipes-connectivity/avahi/files/CVE-2026-59987_p2.patch new file mode 100644 index 0000000000..527c37eab2 --- /dev/null +++ b/meta/recipes-connectivity/avahi/files/CVE-2026-59987_p2.patch @@ -0,0 +1,43 @@ +From 5456796db28204c8dfc61b14814f52f4b3645530 Mon Sep 17 00:00:00 2001 +From: Evgeny Vereshchagin +Date: Mon, 22 Jun 2026 02:07:24 +0000 +Subject: [PATCH] ci: add tests to make sure valid domain names can be normalized + +The unit test makes sure the specific domain name is rejected, the fuzz +target makes sure that the invariant holds in general and the +integration test makes sure that it all actually works via D-Bus without +crashing anywhere. + +CVE: CVE-2026-59987 +Upstream-Status: Backport [https://github.com/avahi/avahi/commit/5456796db28204c8dfc61b14814f52f4b3645530] + +Backport Changes: +- Adapted the focused domain-name unit test to Avahi 0.8; the upstream fuzz + target and D-Bus smoke-test file are absent from this source version. + +Signed-off-by: Yogita Urade +--- + avahi-common/domain-test.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/avahi-common/domain-test.c b/avahi-common/domain-test.c +index 3acc1c1..ca70a40 100644 +--- a/avahi-common/domain-test.c ++++ b/avahi-common/domain-test.c +@@ -120,6 +120,14 @@ int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { + assert(avahi_is_valid_domain_name(".")); + assert(avahi_is_valid_domain_name("")); + ++ assert(!avahi_is_valid_domain_name( ++ "[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[." ++ "[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[." ++ "[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[." ++ "[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[." ++ "[" ++ )); ++ + assert(avahi_normalize_name(".", t, sizeof(t))); + assert(avahi_normalize_name("", t, sizeof(t))); + +-- +2.35.6