diff options
| author | Lei Lu <llfamsec@gmail.com> | 2025-08-11 16:58:48 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-15 13:04:22 +0300 |
| commit | ab9a70cd2386a0d70c164b0905dd66bc9af52e77 (patch) | |
| tree | eb6d31705610f6e7a352c0b0c31744de31a509b2 /scripts/gdb/linux/xarray.py | |
| parent | f5e1f3b85aadce74268c46676772c3e9fa79897e (diff) | |
| download | linux-ab9a70cd2386a0d70c164b0905dd66bc9af52e77.tar.xz | |
sunrpc: fix null pointer dereference on zero-length checksum
commit 6df164e29bd4e6505c5a2e0e5f1e1f6957a16a42 upstream.
In xdr_stream_decode_opaque_auth(), zero-length checksum.len causes
checksum.data to be set to NULL. This triggers a NPD when accessing
checksum.data in gss_krb5_verify_mic_v2(). This patch ensures that
the value of checksum.len is not less than XDR_UNIT.
Fixes: 0653028e8f1c ("SUNRPC: Convert gss_verify_header() to use xdr_stream")
Cc: stable@kernel.org
Signed-off-by: Lei Lu <llfamsec@gmail.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions
