Skip to content

RDKEMW-24390,RDKB-66770: Stack buffer overflow in rdk_dyn_log_validate_component_name() via attacker-controlled comp_len - #62

Closed
dshett549 wants to merge 1 commit into
rdkcentral:developfrom
dshett549:feature/RDKEMW-26574
Closed

dshett549 wants to merge 1 commit into
rdkcentral:developfrom
dshett549:feature/RDKEMW-26574

Conversation

@dshett549

Copy link
Copy Markdown
Contributor

No description provided.

…e_component_name() via attacker-controlled comp_len
Copilot AI balanced review requested due to automatic review settings October 8, 2026 07:28
@dshett549
dshett549 requested a review from a team as a code owner October 8, 2026 07:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Datagram field bounds remain insufficiently validated, allowing out-of-bounds reads.

2 open findings
What changed in this PR

Adds a component-name length check to mitigate a stack buffer overflow in dynamic log control parsing.

Changes:

  • Rejects component names that exceed the 64-byte buffer.
File Description
src/​rdk_dynamic_logger.c Adds component-name bounds checking.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Comment thread src/rdk_dynamic_logger.c
Comment on lines +78 to +82
if (comp_len >= sizeof(comp_name))
{
fprintf(stderr, "Error: component name too long\n");
return;
}
Comment thread src/rdk_dynamic_logger.c
Comment on lines +78 to +82
if (comp_len >= sizeof(comp_name))
{
fprintf(stderr, "Error: component name too long\n");
return;
}
@dshett549 dshett549 closed this Oct 23, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants