mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
d0184a375e
Currently, we allocate a count-sized kernel buffer and copy count from
userspace to that buffer. Later, we use kstrtouint on this buffer but we
don't ensure that the string is terminated inside the buffer, this can
lead to OOB read when using kstrtouint. Fix this issue by using
memdup_user_nul instead of memdup_user.
Fixes:
|
||
---|---|---|
.. | ||
drv_fcoe_fw_funcs.c | ||
drv_fcoe_fw_funcs.h | ||
drv_scsi_fw_funcs.c | ||
drv_scsi_fw_funcs.h | ||
Kconfig | ||
Makefile | ||
qedf_attr.c | ||
qedf_dbg.c | ||
qedf_dbg.h | ||
qedf_debugfs.c | ||
qedf_els.c | ||
qedf_fip.c | ||
qedf_hsi.h | ||
qedf_io.c | ||
qedf_main.c | ||
qedf_version.h | ||
qedf.h |