{"id":"CVE-2026-45250","aliases":["CVE-2026-45250"],"related":[],"kind":"vulnerability","state":"published","title":"Stack buffer overflow via setcred(2)","summary":"The setcred(2) system call is only available to privileged users.  However, before the privilege level of the caller is checked, the user-supplied list of supplementary groups is copied into a fixed-size kernel stack buffer without first validating its length.  If the supplied list exceeds the capacity of that buffer, a stack buffer overflow occurs.\n\nBecause the bounds check on the supplementary groups list occurs after the kernel stack buffer has already been written, an unprivileged local user may trigger the overflow without holding any special privilege.  Successful exploitation may allow an attacker to execute arbitrary code in the context of the kernel, allowing an unprivileged local user to gain elevated privileges on the affected system.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The setcred(2) system call is only available to privileged users.  However, before the privilege level of the caller is checked, the user-supplied list of supplementary groups is copied into a fixed-size kernel stack buffer without first validating its length.  If the supplied list exceeds the capacity of that buffer, a stack buffer overflow occurs.\n\nBecause the bounds check on the supplementary groups list occurs after the kernel stack buffer has already been written, an unprivileged local user may trigger the overflow without holding any special privilege.  Successful exploitation may allow an attacker to execute arbitrary code in the context of the kernel, allowing an unprivileged local user to gain elevated privileges on the affected system.","source":"cvelist"},{"lang":"es","text":"La llamada al sistema setcred(2) solo está disponible para usuarios privilegiados. Sin embargo, antes de que se compruebe el nivel de privilegio del llamador, la lista de grupos suplementarios proporcionada por el usuario se copia en un búfer de pila del kernel de tamaño fijo sin validar primero su longitud. Si la lista proporcionada excede la capacidad de ese búfer, ocurre un desbordamiento de búfer de pila.\n\nDebido a que la comprobación de límites en la lista de grupos suplementarios ocurre después de que el búfer de pila del kernel ya ha sido escrito, un usuario local no privilegiado puede desencadenar el desbordamiento sin poseer ningún privilegio especial. La explotación exitosa puede permitir a un atacante ejecutar código arbitrario en el contexto del kernel, permitiendo a un usuario local no privilegiado obtener privilegios elevados en el sistema afectado.","source":"nvd"}],"published":"2026-05-21T08:37:17.553Z","modified":"2026-07-23T16:10:00.137Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-121"],"affected":[{"ranges":[{"type":"release","introduced":"15.0-RELEASE","fixed":"p9","status":"affected"},{"type":"release","introduced":"14.4-RELEASE","fixed":"p5","status":"affected"},{"type":"release","introduced":"14.3-RELEASE","fixed":"p14","status":"affected"}],"vendor":"FreeBSD","product":"FreeBSD","source":"cvelist"},{"ranges":[{"status":"affected","version":"14.3"},{"status":"affected","version":"14.3"},{"status":"affected","version":"14.3"},{"status":"affected","version":"14.3"},{"status":"affected","version":"14.3"},{"status":"affected","version":"14.3"},{"status":"affected","version":"14.3"},{"status":"affected","version":"14.3"},{"status":"affected","version":"14.3"},{"status":"affected","version":"14.3"},{"status":"affected","version":"14.3"},{"status":"affected","version":"14.3"},{"status":"affected","version":"14.3"},{"status":"affected","version":"14.3"},{"status":"affected","version":"14.4"},{"status":"affected","version":"14.4"},{"status":"affected","version":"14.4"},{"status":"affected","version":"14.4"},{"status":"affected","version":"14.4"},{"status":"affected","version":"14.4"},{"status":"affected","version":"15.0"},{"status":"affected","version":"15.0"},{"status":"affected","version":"15.0"},{"status":"affected","version":"15.0"},{"status":"affected","version":"15.0"},{"status":"affected","version":"15.0"},{"status":"affected","version":"15.0"},{"status":"affected","version":"15.0"},{"status":"affected","version":"15.0"}],"vendor":"freebsd","product":"freebsd","cpe":"cpe:2.3:o:freebsd:freebsd:14.3:-:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://security.freebsd.org/advisories/FreeBSD-SA-26:18.setcred.asc","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/05/21/3","tags":[],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/05/21/18","tags":[],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/05/22/5","tags":[],"sources":["cvelist","nvd"]}],"credits":["Ryan of Calif.io","Przemyslaw Frasunek"],"assigner":"freebsd","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-21T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45250","url":"https://www.cve.org/CVERecord?id=CVE-2026-45250","licence":"CVE Terms of Use","modified":"2026-05-22T07:11:47.863Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45250","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45250","licence":"Public domain","modified":"2026-07-23T16:10:00.137Z"}],"updatedAt":"2026-11-25T22:59:22.093Z","epss":{"score":0.00409,"percentile":0.37273,"date":"2026-12-01T12:00:22.000Z"}}