summaryrefslogtreecommitdiffstats
path: root/install.txt
diff options
context:
space:
mode:
authorGünther Noack <guenther@unix-ag.uni-kl.de>2020-08-17 21:11:56 +0200
committerDan Cross <crossd@gmail.com>2021-04-05 05:19:49 -0400
commit878b30c0bc1446ba933dc4539438512766183500 (patch)
tree999e97db48cab0e960c8e720dc11b3acf3d0c718 /install.txt
parent88a87fadae6629932d9c160f53ad5d79775f8f94 (diff)
downloadplan9port-878b30c0bc1446ba933dc4539438512766183500.tar.gz
plan9port-878b30c0bc1446ba933dc4539438512766183500.zip
fspread: fix buffer overflow
Without this fix, fspread is trusting the server to return as much data as requested, or less. If a server responds with more data though, fspread writes beyond the bounds of the buffer to fill, which is passed in by the caller. It depends on the caller of fspread() where that buffer is, so there are various possible attack vectors. In the Plan9 kernel, I found this implemented in devmnt.c, where overly large responses are truncated to the size requested before copying, so I assume that this strategy works here too. This also affects fsread() and fsreadn(), which are based on fspread().
Diffstat (limited to 'install.txt')
0 files changed, 0 insertions, 0 deletions