aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorGuvenc Gulce <[email protected]>2021-01-12 16:21:22 +0000
committerJakub Kicinski <[email protected]>2021-01-13 04:22:01 +0000
commit8a4465368964b4fbaf084760c94c7aabf61059fb (patch)
tree06a00842a100de9d64eaac60c872e98a060714db /net/lapb/lapb_out.c
parentsmc: fix out of bound access in smc_nl_get_sys_info() (diff)
downloadkernel-8a4465368964b4fbaf084760c94c7aabf61059fb.tar.gz
kernel-8a4465368964b4fbaf084760c94c7aabf61059fb.zip
net/smc: use memcpy instead of snprintf to avoid out of bounds read
Using snprintf() to convert not null-terminated strings to null terminated strings may cause out of bounds read in the source string. Therefore use memcpy() and terminate the target string with a null afterwards. Fixes: a3db10efcc4c ("net/smc: Add support for obtaining SMCR device list") Signed-off-by: Guvenc Gulce <[email protected]> Signed-off-by: Karsten Graul <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions