diff options
| author | Ankur Tyagi <ankur.tyagi85@gmail.com> | 2026-02-20 20:11:29 +0100 |
|---|---|---|
| committer | Paul Barker <paul@pbarker.dev> | 2026-02-27 15:54:02 +0000 |
| commit | c63dd35b57bc2ea1d2a8ad1e4d8de3ac40b41411 (patch) | |
| tree | 77d992ba702be45ece227c701ea4e5e78eae5af7 /meta/recipes-connectivity | |
| parent | e19fc1502743e171c55380d651ec65bf406a8f5b (diff) | |
| download | poky-c63dd35b57bc2ea1d2a8ad1e4d8de3ac40b41411.tar.gz | |
avahi: patch CVE-2025-68276
Backport the patch[1] from the PR[2] mentioned in the nvd[3].
[1] https://github.com/avahi/avahi/commit/2d48e42d44a183f26a4d12d1f5d41abb9b7c6355
[2] https://github.com/avahi/avahi/pull/806
[3] https://nvd.nist.gov/vuln/detail/CVE-2025-68276
Dropped CI changes from the original PR during backport.
(From OE-Core rev: a0768998acf23a7d00a5fdbc6fa5302eb144a850)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Paul Barker <paul@pbarker.dev>
Diffstat (limited to 'meta/recipes-connectivity')
| -rw-r--r-- | meta/recipes-connectivity/avahi/avahi_0.8.bb | 1 | ||||
| -rw-r--r-- | meta/recipes-connectivity/avahi/files/CVE-2025-68276.patch | 65 |
2 files changed, 66 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/avahi/avahi_0.8.bb b/meta/recipes-connectivity/avahi/avahi_0.8.bb index 20b2791ef3..b38fedb38b 100644 --- a/meta/recipes-connectivity/avahi/avahi_0.8.bb +++ b/meta/recipes-connectivity/avahi/avahi_0.8.bb | |||
| @@ -37,6 +37,7 @@ SRC_URI = "https://github.com/lathiat/avahi/releases/download/v${PV}/avahi-${PV} | |||
| 37 | file://CVE-2023-38473.patch \ | 37 | file://CVE-2023-38473.patch \ |
| 38 | file://CVE-2024-52616.patch \ | 38 | file://CVE-2024-52616.patch \ |
| 39 | file://CVE-2024-52615.patch \ | 39 | file://CVE-2024-52615.patch \ |
| 40 | file://CVE-2025-68276.patch \ | ||
| 40 | " | 41 | " |
| 41 | 42 | ||
| 42 | UPSTREAM_CHECK_URI = "https://github.com/lathiat/avahi/releases/" | 43 | UPSTREAM_CHECK_URI = "https://github.com/lathiat/avahi/releases/" |
diff --git a/meta/recipes-connectivity/avahi/files/CVE-2025-68276.patch b/meta/recipes-connectivity/avahi/files/CVE-2025-68276.patch new file mode 100644 index 0000000000..75169419f1 --- /dev/null +++ b/meta/recipes-connectivity/avahi/files/CVE-2025-68276.patch | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | From 8ec85459d8e6e59cc14457e16fb7ba171901f90e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Evgeny Vereshchagin <evvers@ya.ru> | ||
| 3 | Date: Wed, 17 Dec 2025 08:11:23 +0000 | ||
| 4 | Subject: [PATCH] core: refuse to create wide-area record browsers when | ||
| 5 | wide-area is off | ||
| 6 | |||
| 7 | It fixes a bug where it was possible for unprivileged local users to | ||
| 8 | crash avahi-daemon (with wide-area disabled) by creating record browsers | ||
| 9 | with the AVAHI_LOOKUP_USE_WIDE_AREA flag set via D-Bus (either by calling | ||
| 10 | the RecordBrowserNew method directly or by creating hostname/address/service | ||
| 11 | resolvers/browsers that create those browsers internally themselves). | ||
| 12 | |||
| 13 | ``` | ||
| 14 | $ gdbus call --system --dest org.freedesktop.Avahi --object-path / --method org.freedesktop.Avahi.Server.ResolveHostName -- -1 -1 yo.local -1 1 | ||
| 15 | Error: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying | ||
| 16 | ``` | ||
| 17 | ``` | ||
| 18 | dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/, member=ResolveHostName | ||
| 19 | avahi-daemon: wide-area.c:725: avahi_wide_area_scan_cache: Assertion `e' failed. | ||
| 20 | ==307948== | ||
| 21 | ==307948== Process terminating with default action of signal 6 (SIGABRT) | ||
| 22 | ==307948== at 0x4B3630C: __pthread_kill_implementation (pthread_kill.c:44) | ||
| 23 | ==307948== by 0x4ADF921: raise (raise.c:26) | ||
| 24 | ==307948== by 0x4AC74AB: abort (abort.c:77) | ||
| 25 | ==307948== by 0x4AC741F: __assert_fail_base.cold (assert.c:118) | ||
| 26 | ==307948== by 0x48D8B85: avahi_wide_area_scan_cache (wide-area.c:725) | ||
| 27 | ==307948== by 0x48C8953: lookup_scan_cache (browse.c:351) | ||
| 28 | ==307948== by 0x48C8B1B: lookup_go (browse.c:386) | ||
| 29 | ==307948== by 0x48C9148: defer_callback (browse.c:516) | ||
| 30 | ==307948== by 0x48AEA0E: expiration_event (timeeventq.c:94) | ||
| 31 | ==307948== by 0x489D3AE: timeout_callback (simple-watch.c:447) | ||
| 32 | ==307948== by 0x489D787: avahi_simple_poll_dispatch (simple-watch.c:563) | ||
| 33 | ==307948== by 0x489D91E: avahi_simple_poll_iterate (simple-watch.c:605) | ||
| 34 | ==307948== | ||
| 35 | ``` | ||
| 36 | |||
| 37 | wide-area has been disabled by default since | ||
| 38 | 9c4214146738146e454f098264690e8e884c39bd (v0.9-rc2). | ||
| 39 | |||
| 40 | https://github.com/avahi/avahi/security/advisories/GHSA-mhf3-865v-g5rc | ||
| 41 | |||
| 42 | CVE: CVE-2025-68276 | ||
| 43 | Upstream-Status: Backport [https://github.com/avahi/avahi/commit/2d48e42d44a183f26a4d12d1f5d41abb9b7c6355] | ||
| 44 | (cherry picked from commit 2d48e42d44a183f26a4d12d1f5d41abb9b7c6355) | ||
| 45 | Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> | ||
| 46 | --- | ||
| 47 | avahi-core/browse.c | 5 +++++ | ||
| 48 | 1 file changed, 5 insertions(+) | ||
| 49 | |||
| 50 | diff --git a/avahi-core/browse.c b/avahi-core/browse.c | ||
| 51 | index e8a915e..59d53cb 100644 | ||
| 52 | --- a/avahi-core/browse.c | ||
| 53 | +++ b/avahi-core/browse.c | ||
| 54 | @@ -541,6 +541,11 @@ AvahiSRecordBrowser *avahi_s_record_browser_prepare( | ||
| 55 | AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_FLAGS_VALID(flags, AVAHI_LOOKUP_USE_WIDE_AREA|AVAHI_LOOKUP_USE_MULTICAST), AVAHI_ERR_INVALID_FLAGS); | ||
| 56 | AVAHI_CHECK_VALIDITY_RETURN_NULL(server, !(flags & AVAHI_LOOKUP_USE_WIDE_AREA) || !(flags & AVAHI_LOOKUP_USE_MULTICAST), AVAHI_ERR_INVALID_FLAGS); | ||
| 57 | |||
| 58 | + if ((flags & AVAHI_LOOKUP_USE_WIDE_AREA) && !server->wide_area_lookup_engine) { | ||
| 59 | + avahi_server_set_errno(server, AVAHI_ERR_NOT_SUPPORTED); | ||
| 60 | + return NULL; | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | if (!(b = avahi_new(AvahiSRecordBrowser, 1))) { | ||
| 64 | avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); | ||
| 65 | return NULL; | ||
