diff options
| author | Meenali Gupta <meenali.gupta@windriver.com> | 2023-11-16 10:39:19 +0000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-11-28 05:00:32 -1000 |
| commit | 517e5132095664efdac617fdffc88f65116026cc (patch) | |
| tree | eceb34271f863ef2620bd1f60ebef26334b8b970 /meta/recipes-connectivity/avahi | |
| parent | 973020ce1202c1273f40aa896c8e58e978aed9fe (diff) | |
| download | poky-517e5132095664efdac617fdffc88f65116026cc.tar.gz | |
avahi: fix CVE-2023-38472
A vulnerability was found in Avahi. A reachable assertion
exists in the avahi_rdata_parse() function.
(From OE-Core rev: 1b699ac1e8519cd488ee033919b9205283b7b465)
Signed-off-by: Meenali Gupta <meenali.gupta@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-connectivity/avahi')
| -rw-r--r-- | meta/recipes-connectivity/avahi/avahi_0.8.bb | 1 | ||||
| -rw-r--r-- | meta/recipes-connectivity/avahi/files/CVE-2023-38472.patch | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/avahi/avahi_0.8.bb b/meta/recipes-connectivity/avahi/avahi_0.8.bb index c733f94e42..23801a7e54 100644 --- a/meta/recipes-connectivity/avahi/avahi_0.8.bb +++ b/meta/recipes-connectivity/avahi/avahi_0.8.bb | |||
| @@ -29,6 +29,7 @@ SRC_URI = "https://github.com/lathiat/avahi/releases/download/v${PV}/avahi-${PV} | |||
| 29 | file://CVE-2023-38471.patch \ | 29 | file://CVE-2023-38471.patch \ |
| 30 | file://CVE-2023-38470.patch \ | 30 | file://CVE-2023-38470.patch \ |
| 31 | file://CVE-2023-38469.patch \ | 31 | file://CVE-2023-38469.patch \ |
| 32 | file://CVE-2023-38472.patch \ | ||
| 32 | " | 33 | " |
| 33 | 34 | ||
| 34 | UPSTREAM_CHECK_URI = "https://github.com/lathiat/avahi/releases/" | 35 | UPSTREAM_CHECK_URI = "https://github.com/lathiat/avahi/releases/" |
diff --git a/meta/recipes-connectivity/avahi/files/CVE-2023-38472.patch b/meta/recipes-connectivity/avahi/files/CVE-2023-38472.patch new file mode 100644 index 0000000000..2f172622c9 --- /dev/null +++ b/meta/recipes-connectivity/avahi/files/CVE-2023-38472.patch | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | From 4e2537500dd0a1333845482f1f4147ef906030dd Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Michal Sekletar <msekleta@redhat.com> | ||
| 3 | Date: Thu, 19 Oct 2023 17:36:44 +0200 | ||
| 4 | Subject: [PATCH]core: make sure there is rdata to process before | ||
| 5 | parsing it | ||
| 6 | |||
| 7 | Fixes #452 | ||
| 8 | |||
| 9 | Upstream-Status: Backport [https://github.com/lathiat/avahi/commit/b024ae5749f4aeba03478e6391687c3c9c8dee40] | ||
| 10 | CVE: CVE-2023-38472 | ||
| 11 | |||
| 12 | Signed-off-by: Meenali Gupta <meenali.gupta@windriver.com> | ||
| 13 | --- | ||
| 14 | avahi-client/client-test.c | 3 +++ | ||
| 15 | avahi-daemon/dbus-entry-group.c | 2 +- | ||
| 16 | 2 files changed, 4 insertions(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/avahi-client/client-test.c b/avahi-client/client-test.c | ||
| 19 | index 7d04a6a..57750a4 100644 | ||
| 20 | --- a/avahi-client/client-test.c | ||
| 21 | +++ b/avahi-client/client-test.c | ||
| 22 | @@ -258,6 +258,9 @@ int main (AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { | ||
| 23 | printf("%s\n", avahi_strerror(avahi_entry_group_add_service (group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, "Lathiat's Site", "_http._tcp", NULL, NULL, 80, "foo=bar", NULL))); | ||
| 24 | printf("add_record: %d\n", avahi_entry_group_add_record (group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, "TestX", 0x01, 0x10, 120, "\5booya", 6)); | ||
| 25 | |||
| 26 | + error = avahi_entry_group_add_record (group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, "TestX", 0x01, 0x10, 120, "", 0); | ||
| 27 | + assert(error != AVAHI_OK); | ||
| 28 | + | ||
| 29 | avahi_entry_group_commit (group); | ||
| 30 | |||
| 31 | domain = avahi_domain_browser_new (avahi, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, NULL, AVAHI_DOMAIN_BROWSER_BROWSE, 0, avahi_domain_browser_callback, (char*) "omghai3u"); | ||
| 32 | diff --git a/avahi-daemon/dbus-entry-group.c b/avahi-daemon/dbus-entry-group.c | ||
| 33 | index 4e879a5..aa23d4b 100644 | ||
| 34 | --- a/avahi-daemon/dbus-entry-group.c | ||
| 35 | +++ b/avahi-daemon/dbus-entry-group.c | ||
| 36 | @@ -340,7 +340,7 @@ DBusHandlerResult avahi_dbus_msg_entry_group_impl(DBusConnection *c, DBusMessage | ||
| 37 | if (!(r = avahi_record_new_full (name, clazz, type, ttl))) | ||
| 38 | return avahi_dbus_respond_error(c, m, AVAHI_ERR_NO_MEMORY, NULL); | ||
| 39 | |||
| 40 | - if (avahi_rdata_parse (r, rdata, size) < 0) { | ||
| 41 | + if (!rdata || avahi_rdata_parse (r, rdata, size) < 0) { | ||
| 42 | avahi_record_unref (r); | ||
| 43 | return avahi_dbus_respond_error(c, m, AVAHI_ERR_INVALID_RDATA, NULL); | ||
| 44 | } | ||
| 45 | -- | ||
| 46 | 2.40.0 | ||
