Skip to content

Fix #985: Add lower-bound validation in CI_LAB_DecodeInputMessage to reject zero-length packets#990

Open
linerfan5114 wants to merge 1 commit into
nasa:mainfrom
linerfan5114:fix-985-ci-lab-lower-bound-validation
Open

Fix #985: Add lower-bound validation in CI_LAB_DecodeInputMessage to reject zero-length packets#990
linerfan5114 wants to merge 1 commit into
nasa:mainfrom
linerfan5114:fix-985-ci-lab-lower-bound-validation

Conversation

@linerfan5114
Copy link
Copy Markdown

Closes #985

Added MsgSize < sizeof(CFE_MSG_Message_t) check in CI_LAB_DecodeInputMessage() to reject undersized packets before they are forwarded to the Software Bus. This is consistent with the fix applied in CFE_SB_MessageTxn_SetContentSize() (cFE PR #2702).

Same root cause as cFE #2697, #2698, #2699 — CCSDS Length field trusted without lower-bound validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SECURITY] Missing lower-bound validation in CI_LAB_DecodeInputMessage allows zero-length packets

1 participant