forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6675ab5
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 parentb584e45 commit6675ab5
File tree
3 files changed
+28
-11
lines changed- src/backend
- libpq
- postmaster
3 files changed
+28
-11
lines changedLines changed: 0 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
906 | 906 |
| |
907 | 907 |
| |
908 | 908 |
| |
909 |
| - | |
910 | 909 |
| |
911 | 910 |
| |
912 | 911 |
| |
| |||
915 | 914 |
| |
916 | 915 |
| |
917 | 916 |
| |
918 |
| - | |
919 | 917 |
| |
920 | 918 |
| |
921 | 919 |
| |
| |||
963 | 961 |
| |
964 | 962 |
| |
965 | 963 |
| |
966 |
| - | |
967 | 964 |
| |
968 | 965 |
| |
969 | 966 |
| |
| |||
992 | 989 |
| |
993 | 990 |
| |
994 | 991 |
| |
995 |
| - | |
996 | 992 |
| |
997 | 993 |
| |
998 | 994 |
| |
| |||
1006 | 1002 |
| |
1007 | 1003 |
| |
1008 | 1004 |
| |
1009 |
| - | |
1010 | 1005 |
| |
1011 | 1006 |
| |
1012 | 1007 |
| |
|
Lines changed: 18 additions & 5 deletions
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 |
| |
|
Lines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3462 | 3462 |
| |
3463 | 3463 |
| |
3464 | 3464 |
| |
3465 |
| - | |
| 3465 | + | |
| 3466 | + | |
| 3467 | + | |
| 3468 | + | |
| 3469 | + | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
| 3473 | + | |
| 3474 | + | |
3466 | 3475 |
| |
3467 | 3476 |
| |
3468 | 3477 |
| |
|
0 commit comments
Comments
(0)