Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1649627
| From | Kalle Valo <kvalo@codeaurora.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [v3] libertas: Avoid reading past end of buffer |
| Date | 2017-05-24 15:50 +0200 |
| Message-ID | <tKEPL-2YG-5@gated-at.bofh.it> (permalink) |
| References | <tHvJ0-4Yr-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Kees Cook <keescook@chromium.org> wrote: > Using memcpy() from a string that is shorter than the length copied means > the destination buffer is being filled with arbitrary data from the kernel > rodata segment. Instead, redefine the stat strings to be ETH_GSTRING_LEN > sizes, like other drivers. This lets us use a single memcpy that does not > leak rodata contents. Additionally adjust indentation to keep checkpatch.pl > happy. > > This was found with the future CONFIG_FORTIFY_SOURCE feature. > > Cc: Daniel Micay <danielmicay@gmail.com> > Signed-off-by: Kees Cook <keescook@chromium.org> Patch applied to wireless-drivers-next.git, thanks. 12e3c0433e8a libertas: Avoid reading past end of buffer -- https://patchwork.kernel.org/patch/9727997/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v3] libertas: Avoid reading past end of buffer Kees Cook <keescook@chromium.org> - 2017-05-15 23:30 +0200 Re: [v3] libertas: Avoid reading past end of buffer Kalle Valo <kvalo@codeaurora.org> - 2017-05-24 15:50 +0200
csiph-web