Commit 93d6dea
committed
scsi: lpfc: Terminate string in lpfc_debugfs_nvmeio_trc_write()
jira VULN-70476
cve-pre CVE-2022-50030
commit-author Dan Carpenter <dan.carpenter@oracle.com>
commit 9020be1
The "mybuf" string comes from the user, so we need to ensure that it is NUL
terminated.
Link: https://lore.kernel.org/r/20211214070527.GA27934@kili
Fixes: bd2cdd5 ("scsi: lpfc: NVME Initiator: Add debugfs support")
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 9020be1)
Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>1 parent fca906f commit 93d6dea
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2954 | 2954 | | |
2955 | 2955 | | |
2956 | 2956 | | |
2957 | | - | |
2958 | | - | |
| 2957 | + | |
| 2958 | + | |
2959 | 2959 | | |
2960 | 2960 | | |
2961 | 2961 | | |
| |||
0 commit comments