opnsense-src/lib/librpcsec_gss
Mark Johnston 97ff4784ce rpcsec_gss: Fix a stack overflow in svc_rpc_gss_validate()
svc_rpc_gss_validate() copies the input message into a stack buffer
without ensuring that the buffer is large enough.  Sure enough,
oa_length may be up to 400 bytes, much larger than the provided space.
This enables an unauthenticated user to trigger an overflow and obtain
remote code execution.

Add a runtime check which verifies that the copy won't overflow.

Approved by:	so
Security:	FreeBSD-SA-26:08.rpcsec_gss
Security:	CVE-2026-4747
Reported by:	Nicholas Carlini <npc@anthropic.com>
Reviewed by:	rmacklem
Fixes:		a9148abd9d
2026-03-26 08:04:47 +01:00
..
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rpc_gss_get_error.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc_gss_get_mech_info.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc_gss_get_mechanisms.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc_gss_get_principal_name.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc_gss_get_versions.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc_gss_getcred.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc_gss_is_installed.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc_gss_max_data_length.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc_gss_mech_to_oid.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc_gss_oid_to_mech.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc_gss_qop_to_num.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc_gss_seccreate.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc_gss_set_callback.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc_gss_set_defaults.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc_gss_set_svc_name.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpc_gss_svc_max_data_length.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpcsec_gss.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
rpcsec_gss.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
rpcsec_gss_conf.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
rpcsec_gss_int.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
rpcsec_gss_misc.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
rpcsec_gss_prot.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
svc_rpcsec_gss.c rpcsec_gss: Fix a stack overflow in svc_rpc_gss_validate() 2026-03-26 08:04:47 +01:00
Symbol.map Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00