diff options
author | David Howells <[email protected]> | 2017-06-15 00:12:24 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-06-15 14:23:44 -0400 |
commit | 5f2f97656ada8d811d3c1bef503ced266fcd53a0 (patch) | |
tree | d119058f42744118b8514c9810c977609bbb26bb /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | f8a894b218138888542a5058d0e902378fd0d4ec (diff) |
rxrpc: Fix several cases where a padded len isn't checked in ticket decode
This fixes CVE-2017-7482.
When a kerberos 5 ticket is being decoded so that it can be loaded into an
rxrpc-type key, there are several places in which the length of a
variable-length field is checked to make sure that it's not going to
overrun the available data - but the data is padded to the nearest
four-byte boundary and the code doesn't check for this extra. This could
lead to the size-remaining variable wrapping and the data pointer going
over the end of the buffer.
Fix this by making the various variable-length data checks use the padded
length.
Reported-by: 石磊 <[email protected]>
Signed-off-by: David Howells <[email protected]>
Reviewed-by: Marc Dionne <[email protected]>
Reviewed-by: Dan Carpenter <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions