Find a file
Sukchan Lee 88e64fc1f8
Some checks are pending
Meson Continuous Integration / Build and Test on Ubuntu Latest (push) Waiting to run
[PFCP] Add missing bounds checks to IE parsers
ogs_pfcp_parse_volume_measurement() and
ogs_pfcp_parse_dropped_dl_traffic_threshold() copied 8-octet fields
selected by the flags octet without checking the declared IE length. A
short IE with every flag set read up to 48 and 16 octets past the end
of the IE. The flags octet itself was also read unchecked, which
dereferenced NULL for an absent IE, since the SMF usage report handlers
call ogs_pfcp_parse_volume_measurement() without testing
volume_measurement.presence.

ogs_pfcp_parse_volume() validated each volume field but not the flags
octet, and ogs_pfcp_parse_sdf_filter() validated the Flow Description
length field without validating that many octets actually follow it.

Validate the remaining reads against octet->len and return 0 on a short
IE, as ogs_pfcp_parse_volume() already did for its volume fields. The
callers compare the decoded length against the IE length, so a
truncated IE is now rejected instead of parsed from adjacent memory.
2026-08-11 16:23:40 +09:00
.github build: detect optional c-ares dependency for the MME 2026-07-21 16:41:41 +09:00
configs MME: Learn HSS identity from successful S6a answers 2026-07-22 19:02:47 +09:00
debian [mme] Follow-up #4693: harden DNS-based gateway selection 2026-07-21 16:44:07 +09:00
docker [mme] Follow-up #4693: harden DNS-based gateway selection 2026-07-21 16:44:07 +09:00
docs [mme] Follow-up #4693: harden DNS-based gateway selection 2026-07-21 16:44:07 +09:00
lib [PFCP] Add missing bounds checks to IE parsers 2026-08-11 16:23:40 +09:00
misc Add roaming type toggle via command line (#4211) 2025-12-23 13:53:53 +09:00
src [MME/AMF] Prevent UE context corruption on identity mismatch 2026-08-11 15:50:17 +09:00
subprojects Tested on FreeBSD-14.1-STABLE (#3350) 2024-08-03 21:45:52 +09:00
tests [MME/AMF] Prevent UE context corruption on identity mismatch 2026-08-11 15:50:17 +09:00
vagrant Tested on FreeBSD-14.1-STABLE (#3350) 2024-08-03 21:45:52 +09:00
webui Release v2.8.0 2026-06-20 12:38:31 +09:00
.clang-tidy [MISC] Add support for static code analysis 2022-07-01 21:38:47 +09:00
.dockerignore [build] Use local sources to build applications (#1583) 2022-06-19 18:18:09 +09:00
.editorconfig editorconfig: new file (#2746) 2023-11-27 22:21:35 +09:00
.gitignore .gitignore: Add subprojects/.wraplock 2026-07-31 21:04:34 +09:00
LICENSE Change LICENSE to GNU AGPL v3.0 2017-12-18 10:35:54 +09:00
meson.build Release v2.8.0 2026-06-20 12:38:31 +09:00
meson_options.txt [Fuzzing] oss-fuzz support for fuzzing (#2283) 2023-05-05 17:20:11 +09:00
README.md nrf: Fix serving PLMN counter reset on NF register 2026-02-04 20:51:29 +09:00

Open5GS logo

Getting Started

Please follow the documentation at open5gs.org!

Sponsors

If you find Open5GS useful for work, please consider supporting this Open Source project by Becoming a sponsor. To manage the funding transactions transparently, you can donate through OpenCollective.

sponsors

Community

  • Problem with Open5GS can be filed as issues in this repository.
  • Other topics related to this project are happening on the discussions.
  • Voice and text chat are available in Open5GS's Discord workspace. Use this link to get started.

Contributing

If you're contributing through a pull request to Open5GS project on GitHub, please read the Contributor License Agreement in advance.

License

Support

Technical support and customized services for Open5GS are provided by NewPlane at support@newplane.io.