blob: 3deaf3f0e93687dfc47abc2819e300ccc3480ba7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
Upstream-Status: Backport
Fix for CVE-2014-2532
Backported from openssh-6.6p1.tar.gz
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
--- a/session.c
+++ b/session.c
@@ -955,6 +955,11 @@
u_int envsize;
u_int i, namelen;
+ if (strchr(name, '=') != NULL) {
+ error("Invalid environment variable \"%.100s\"", name);
+ return;
+ }
+
/*
* If we're passed an uninitialized list, allocate a single null
* entry before continuing.
|