Commit 8e0651e
committed
scsi: lpfc: Prevent buffer overflow crashes in debugfs with malformed user input
jira VULN-70476
cve CVE-2022-50030
commit-author James Smart <jsmart2021@gmail.com>
commit f8191d4
Malformed user input to debugfs results in buffer overflow crashes. Adapt
input string lengths to fit within internal buffers, leaving space for NULL
terminators.
Link: https://lore.kernel.org/r/20220701211425.2708-3-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit f8191d4)
Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>1 parent f06f5ac commit 8e0651e
1 file changed
+10
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2607 | 2607 | | |
2608 | 2608 | | |
2609 | 2609 | | |
2610 | | - | |
2611 | | - | |
| 2610 | + | |
| 2611 | + | |
2612 | 2612 | | |
2613 | 2613 | | |
2614 | 2614 | | |
| |||
2688 | 2688 | | |
2689 | 2689 | | |
2690 | 2690 | | |
2691 | | - | |
2692 | | - | |
| 2691 | + | |
| 2692 | + | |
2693 | 2693 | | |
2694 | 2694 | | |
2695 | 2695 | | |
| |||
2826 | 2826 | | |
2827 | 2827 | | |
2828 | 2828 | | |
2829 | | - | |
2830 | | - | |
| 2829 | + | |
| 2830 | + | |
2831 | 2831 | | |
2832 | 2832 | | |
2833 | 2833 | | |
| |||
2954 | 2954 | | |
2955 | 2955 | | |
2956 | 2956 | | |
2957 | | - | |
2958 | | - | |
| 2957 | + | |
| 2958 | + | |
2959 | 2959 | | |
2960 | 2960 | | |
2961 | 2961 | | |
| |||
3060 | 3060 | | |
3061 | 3061 | | |
3062 | 3062 | | |
3063 | | - | |
3064 | | - | |
| 3063 | + | |
| 3064 | + | |
3065 | 3065 | | |
3066 | 3066 | | |
3067 | 3067 | | |
| |||
0 commit comments