forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7a0d48a
committed
Prevent a double free by not reentering be_tls_close().
Reentering this function with the right timing caused a double free,typically crashing the backend. By synchronizing a disconnection withthe authentication timeout, an unauthenticated attacker could achievethis somewhat consistently. Call be_tls_close() solely from withinproc_exit_prepare(). Back-patch to 9.0 (all supported versions).Benkocs Norbert AttilaSecurity:CVE-2015-31651 parent05da361 commit7a0d48a
File tree
3 files changed
+28
-11
lines changed- src/backend
- libpq
- postmaster
3 files changed
+28
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
993 | | - | |
994 | 993 | | |
995 | 994 | | |
996 | 995 | | |
| |||
999 | 998 | | |
1000 | 999 | | |
1001 | 1000 | | |
1002 | | - | |
1003 | 1001 | | |
1004 | 1002 | | |
1005 | 1003 | | |
| |||
1047 | 1045 | | |
1048 | 1046 | | |
1049 | 1047 | | |
1050 | | - | |
1051 | 1048 | | |
1052 | 1049 | | |
1053 | 1050 | | |
| |||
1076 | 1073 | | |
1077 | 1074 | | |
1078 | 1075 | | |
1079 | | - | |
1080 | 1076 | | |
1081 | 1077 | | |
1082 | 1078 | | |
| |||
1090 | 1086 | | |
1091 | 1087 | | |
1092 | 1088 | | |
1093 | | - | |
1094 | 1089 | | |
1095 | 1090 | | |
1096 | 1091 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| 193 | + | |
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
198 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
199 | 205 | | |
200 | 206 | | |
201 | 207 | | |
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
205 | | - | |
206 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
207 | 217 | | |
208 | 218 | | |
209 | 219 | | |
210 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
211 | 224 | | |
212 | 225 | | |
213 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3961 | 3961 | | |
3962 | 3962 | | |
3963 | 3963 | | |
3964 | | - | |
| 3964 | + | |
| 3965 | + | |
| 3966 | + | |
| 3967 | + | |
| 3968 | + | |
| 3969 | + | |
| 3970 | + | |
| 3971 | + | |
| 3972 | + | |
| 3973 | + | |
3965 | 3974 | | |
3966 | 3975 | | |
3967 | 3976 | | |
| |||
0 commit comments
Comments
(0)