diff options
| author | Jan Kara <jack@suse.cz> | 2014-12-19 14:27:55 +0100 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-29 21:25:19 +0200 |
| commit | 15d43156a77210e34316e9b48f74ea1d5b8b4bf0 (patch) | |
| tree | 84dd2990591324acb13c3ff07cb7cc9e919bbbce /include/linux/string.h | |
| parent | 81e2f2306b07bd1cc8d9a715df0b4dc0588c0eba (diff) | |
BACKPORT: [UPSTREAM] udf: Check component length before reading it
(Cherry-pick from commit e237ec37ec154564f8690c5bd1795339955eeef9)
Check that length specified in a component of a symlink fits in the
input buffer we are reading. Also properly ignore component length for
component types that do not use it. Otherwise we read memory after end
of buffer for corrupted udf image.
Reported-by: Carl Henrik Lunde <chlunde@ping.uio.no>
CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Bug: 35808154
Change-Id: I1bb9856ab8ae5164291b82065160e17817328c0b
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions
