Skip to content

Segmentation Fault in EVS module #848

@mirkobitetto

Description

@mirkobitetto

Checklist (Please check before submitting)

  • [ x] I reviewed the Contributing Guide.
  • [ x] I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.

Describe the bug
While fuzzing the cFS framework, I encountered a crash that appears to originate in the EVS_SendViaPorts function.

The issue arises when a specific sequence of packets is processed by the CI_LAB application, leading to a SIGSEGV in the EVS module.

To Reproduce
Steps to reproduce the behavior:

  1. Compile and run cFS using the instructions provided below.
  2. Send the two specific malformed packets in sequence to the CI_LAB UDP port.
  3. Observe a segmentation fault occurring in the EVS_SendViaPorts function.

For security reasons, the exact packet contents are not included here. I’ve opted to share the packet contents privately with the core maintainers.

However, I’ve attached a short demonstration video to show the crash happening in real time.

recording_2025-04-30_22.36.44.mp4

Expected behavior

  • The application crashes with a SIGSEGV in EVS_SendViaPorts.

Build & Run Steps (Unmodified cFS)

make distclean                 # Optional: clean build
make SIMULATION=native prep
make
make install
cd build/exe/cpu1/
./core-cpu1

System observed on:

  • cFS version: equuleus-rc1, commit 0ba1faa
  • Modules involved: CI_LAB, EVS, SB
  • Platform: Native Linux (x86_64)
  • Build options: Default; no patches applied

Reporter Info
Mirko Bitetto, MSc Student @ Politecnico di Milano

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions