diff options
| author | Meenali Gupta <meenali.gupta@windriver.com> | 2023-11-16 11:44:50 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-20 15:30:52 +0000 |
| commit | 9580629d5b34aa8a02f88582e15e179a900d9034 (patch) | |
| tree | f7cf6d13ee7c68ba810e809c3c40c6a154eae72d /meta/recipes-connectivity | |
| parent | fb61e440a59a2612781e74e7e69fad2461a16c55 (diff) | |
| download | poky-9580629d5b34aa8a02f88582e15e179a900d9034.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: 988d115ca18db1872d7a4dab39040029e5c61d6b)
Signed-off-by: Meenali Gupta <meenali.gupta@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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-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 9c903d6868..84eb1c554d 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 = "${GITHUB_BASE_URI}/download/v${PV}/avahi-${PV}.tar.gz \ | |||
| 29 | file://CVE-2023-38469.patch \ | 29 | file://CVE-2023-38469.patch \ |
| 30 | file://CVE-2023-38470.patch \ | 30 | file://CVE-2023-38470.patch \ |
| 31 | file://CVE-2023-38471.patch \ | 31 | file://CVE-2023-38471.patch \ |
| 32 | file://CVE-2023-38472.patch \ | ||
| 32 | " | 33 | " |
| 33 | 34 | ||
| 34 | GITHUB_BASE_URI = "https://github.com/lathiat/avahi/releases/" | 35 | GITHUB_BASE_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..a1de8e2a5a --- /dev/null +++ b/meta/recipes-connectivity/avahi/files/CVE-2023-38472.patch | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | From 8cf606779dc356768afc6b70e53f2808a9655143 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] avahi: 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 | ||
