Submit #728043: Open5GS SGWC v2.7.6 Denial of Serviceinfo

TitleOpen5GS SGWC v2.7.6 Denial of Service
DescriptionOpen5GS SGW-C crashes when processing a GTPv2 Create Session Request containing a malformed Bearer QoS Information Element (IE) within the "Bearer Contexts to be Created" grouped IE. The issue occurs because the SGW-C handler passes the Bearer QoS IE to the library function ogs_gtp2_parse_bearer_qos without first validating that the IE length matches the expected fixed length for this type. The library function contains a hard assertion that triggers if the length is incorrect, leading to an immediate process abort. Assert location: lib/gtp/v2/types.c:34 (inside ogs_gtp2_parse_bearer_qos) Fatal log example: [gtp] FATAL: ogs_gtp2_parse_bearer_qos: Assertion octet->len == GTP2_BEARER_QOS_LEN failed.
Source⚠️ https://github.com/open5gs/open5gs/issues/4217
User
 LinZiyu (UID 94035)
Submission12/31/2025 08:43 (3 months ago)
Moderation01/01/2026 11:57 (1 day later)
StatusAccepted
VulDB entry339340 [Open5GS up to 2.7.6 Bearer QoS IE Length lib/gtp/v2/types.c ogs_gtp2_parse_bearer_qos denial of service]
Points20

Do you want to use VulDB in your project?

Use the official API to access entries easily!