1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-05 09:18:06 +03:00
samba-mirror/lib/krb5_wrap
Joseph Sutton 4e2e767a78 CVE-2022-2031 lib:krb5_wrap: Generate valid error codes in smb_krb5_mk_error()
The error code passed in will be an offset from ERROR_TABLE_BASE_krb5,
so we need to subtract that before creating the error. Heimdal does this
internally, so it isn't needed there.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15047
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15049
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15074

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
2022-07-27 10:52:36 +00:00
..
enctype_convert.c lib/krb5_wrap: prefer new enctyptes in ms_suptypes_to_ietf_enctypes() 2020-02-10 16:32:36 +00:00
gss_samba.c Restrict GSSAPI query to the krb5 mechanism 2020-09-30 20:45:23 +00:00
gss_samba.h lib/krb5_wrap: add smb_gss_krb5_import_cred wrapper 2017-03-08 18:00:11 +01:00
keytab_util.c krb5_wrap: remove unused code 2021-07-27 10:09:03 +00:00
krb5_errs.c krb5_wrap: map KRB5_REALM_UNKNOWN to NT_STATUS_NO_SUCH_DOMAIN 2020-02-10 17:59:34 +00:00
krb5_samba.c CVE-2022-2031 lib:krb5_wrap: Generate valid error codes in smb_krb5_mk_error() 2022-07-27 10:52:36 +00:00
krb5_samba.h lib:krb5_wrap: Add const to parameters for smb_krb5_create_key_from_string() 2022-06-14 07:21:29 +00:00
wscript_build krb5_wrap: move source3/libads/krb5_errs.c to lib/krb5_wrap/krb5_errs.c 2020-02-10 16:32:37 +00:00