aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/wordnet-CVE-2008-2149.patch
blob: 9828efa4bcadd6f8d43b39d9d06aab6eb40b720e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Fix CVE-2008-2149: buffer overflows by limiting the length of the string in sprintf
format string
Closes: #481186 (CVE-2008-2149)
Please note: The WordNet code contains several other occurences of potentially
exploitable functions like strcpy()/strcat()/...  and so even if there are no
known exploits the code needs a full security audit.

--- a/src/wn.c
+++ b/src/wn.c
@@ -206,7 +206,8 @@ static int searchwn(int ac, char *av[])
 		    outsenses += do_search(av[1], optptr->pos, optptr->search,
 					    whichsense, optptr->label);
 	    } else {
-		sprintf(tmpbuf, "wn: invalid search option: %s\n", av[j]);
+		/* Fix CVE-2008-2149: buffer overflows Andreas Tille <tille@debian.org> */
+		sprintf(tmpbuf, "wn: invalid search option: %.200s\n", av[j]);
 		display_message(tmpbuf);
 		errcount++;
 	    }
2b964b680456da4332eb1ef6d'>machine: ssh: Do not import the host (guix config), really.Ludovic Courtès 2020-12-21system: Allow separated /boot and encrypted root.Miguel Ángel Arruga Vivas 2020-11-09machine: ssh: Do not import the host (guix config).Ludovic Courtès 2020-11-01system: Add store-directory-prefix to boot-parameters.Miguel Ángel Arruga Vivas 2020-10-18system: Provide locale information to the bootloader.Miguel Ángel Arruga Vivas 2020-09-07linux-boot: Handle nfs-root device strings.Stefan 2020-08-25Remove "guile-zlib" extension when unused.Mathieu Othacehe 2020-08-25linux-libre: Support module compression.Mathieu Othacehe 2020-07-27machine: ssh: Check for potential system downgrades.Ludovic Courtès 2020-07-25Use 'formatted-message' instead of '&message' where appropriate.Ludovic Courtès 2020-06-28Add more missing (ice-9 format) imports.Marius Bakke 2020-06-18machine: ssh: Fix guix deploy hang when using non-DCE UUIDs.Maxim Cournoyer 2020-03-23machine: ssh: Better report missing initrd modules.Ludovic Courtès 2020-03-23machine: ssh: Make sanity checks in a single round trip.Ludovic Courtès 2020-02-09Update e-mail address for Jakob L. Kreuze.Tobias Geerinckx-Rice 2019-12-08machine: Remove unnecessary record self-referencing bindings.Ludovic Courtès 2019-12-07machine: ssh: Deprecate missing 'host-key' field.Ludovic Courtès 2019-12-04machine: ssh: <machine-ssh-configuration> can include the host key.Ludovic Courtès