#43480·grpc

[Python] Two credential factories crash when given wrappers with no underlying credential

Author: marinelayCreated Sep 19, 2026Updated Sep 23, 2026
Labelskind/buglang/Pythonpriority/P2

What version of gRPC and what language are you using?

Python grpcio 1.84.0

What operating system (Linux, Windows,...) and version?

Ubuntu 24.04.4 x86_64, glibc 2.39.

What runtime / compiler are you using (e.g. python version or version of gcc)

CPython 3.12.3 with the stock grpcio wheel.

What did you do?

Run these commands separately in fresh Python processes:

bash
python -c 'import grpc; grpc.compute_engine_channel_credentials(grpc.CallCredentials(None))'
python -c 'import grpc; grpc.xds_server_credentials(grpc.ServerCredentials(None))'

These directly construct CallCredentials and ServerCredentials wrappers whose underlying _credentials value is None.

What did you expect to see?

An exception indicating that the credential wrapper is invalid, without terminating the interpreter.

What did you see instead?

The first command exited with SIGSEGV (signal 11; shell status 139), and the second exited with SIGABRT (signal 6; shell status 134)

Anything else we should know about your project / environment?

I found these while fuzzing Python C extension modules.