- Notifications
You must be signed in to change notification settings - Fork28
Commit27c464e
committed
Fix buffer overflow when processing SCRAM final message in libpq
When a client connects to a rogue server sending specifically-craftedmessages, this can suffice to execute arbitrary code as the operatingsystem account used by the client.While on it, fix one error handling when decoding an incorrect saltincluded in the first message received from server.Author: Michael PaquierReviewed-by: Jonathan Katz, Heikki LinnakangasSecurity:CVE-2019-10164Backpatch-through: 101 parent4c779ce commit27c464e
1 file changed
+20
-1
lines changedLines changed: 20 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
586 | 586 |
| |
587 | 587 |
| |
588 | 588 |
| |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
589 | 595 |
| |
590 | 596 |
| |
591 | 597 |
| |
| |||
616 | 622 |
| |
617 | 623 |
| |
618 | 624 |
| |
| 625 | + | |
619 | 626 |
| |
620 | 627 |
| |
621 | 628 |
| |
| |||
651 | 658 |
| |
652 | 659 |
| |
653 | 660 |
| |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
654 | 670 |
| |
655 | 671 |
| |
656 |
| - | |
| 672 | + | |
657 | 673 |
| |
658 | 674 |
| |
| 675 | + | |
659 | 676 |
| |
660 | 677 |
| |
661 | 678 |
| |
662 | 679 |
| |
| 680 | + | |
| 681 | + | |
663 | 682 |
| |
664 | 683 |
| |
665 | 684 |
| |
|
0 commit comments
Comments
(0)