forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3e13384
committed
Add missing checks to some of pageinspect's BRIN functions
brin_page_type() and brin_metapage_info() did not enforce being calledby superuser, like other pageinspect functions that take bytea do.Since they don't verify the passed page thoroughly, it is possible touse them to read the server memory with a carefully crafted bytea value,up to a file kilobytes from where the input bytea is located.Have them throw errors if called by a non-superuser.Report and initial patch: Andreas SeltenreichSecurity:CVE-2016-30651 parent86ebf30 commit3e13384
1 file changed
+23
-2
lines changedLines changed: 23 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
| 49 | + | |
49 | 50 |
| |
50 | 51 |
| |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
51 | 66 |
| |
52 | 67 |
| |
53 | 68 |
| |
| |||
79 | 94 |
| |
80 | 95 |
| |
81 | 96 |
| |
82 |
| - | |
| 97 | + | |
83 | 98 |
| |
84 | 99 |
| |
85 | 100 |
| |
86 |
| - | |
| 101 | + | |
| 102 | + | |
87 | 103 |
| |
88 | 104 |
| |
89 | 105 |
| |
| |||
316 | 332 |
| |
317 | 333 |
| |
318 | 334 |
| |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
319 | 340 |
| |
320 | 341 |
| |
321 | 342 |
| |
|
0 commit comments
Comments
(0)