diff options
author | Colin Watson <cjwatson@debian.org> | 2021-03-13 09:37:24 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2021-03-13 09:59:15 +0000 |
commit | 8d74de9b71bcde4c41ac9348433c95e66210d3ce (patch) | |
tree | ac932367525f4e070b05f01f84b6aa5ae72cb0cf /debian/patches/ssh-agent-double-free.patch | |
parent | 96647c5c515268939666c587fa1bc459ac38b332 (diff) | |
parent | 421db3656dcafbe810226463bf27a18a0b1c3186 (diff) |
CVE-2021-28041: Fix double free in ssh-agent(1)
Closes: #984940
Diffstat (limited to 'debian/patches/ssh-agent-double-free.patch')
-rw-r--r-- | debian/patches/ssh-agent-double-free.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/ssh-agent-double-free.patch b/debian/patches/ssh-agent-double-free.patch new file mode 100644 index 000000000..20ae613cd --- /dev/null +++ b/debian/patches/ssh-agent-double-free.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From 421db3656dcafbe810226463bf27a18a0b1c3186 Mon Sep 17 00:00:00 2001 | ||
2 | From: Colin Watson <cjwatson@debian.org> | ||
3 | Date: Sat, 13 Mar 2021 09:35:05 +0000 | ||
4 | Subject: Double free in ssh-agent(1) | ||
5 | |||
6 | Origin: upstream, https://ftp.openbsd.org/pub/OpenBSD/patches/6.8/common/015_sshagent.patch.sig | ||
7 | Bug-Debian: https://bugs.debian.org/984940 | ||
8 | Last-Update: 2021-03-13 | ||
9 | |||
10 | Patch-Name: ssh-agent-double-free.patch | ||
11 | --- | ||
12 | ssh-agent.c | 1 + | ||
13 | 1 file changed, 1 insertion(+) | ||
14 | |||
15 | diff --git a/ssh-agent.c b/ssh-agent.c | ||
16 | index e1fd1f3f6..48155c96e 100644 | ||
17 | --- a/ssh-agent.c | ||
18 | +++ b/ssh-agent.c | ||
19 | @@ -581,6 +581,7 @@ process_add_identity(SocketEntry *e) | ||
20 | goto err; | ||
21 | } | ||
22 | free(ext_name); | ||
23 | + ext_name = NULL; | ||
24 | break; | ||
25 | default: | ||
26 | error("%s: Unknown constraint %d", __func__, ctype); | ||