Skip to content

fix: in samples/metee_mkhi in metee_mkhi.c#25

Open
orbisai0security wants to merge 1 commit into
intel:masterfrom
orbisai0security:fix-vsprintf-buffer-overflow-metee-mkhi
Open

fix: in samples/metee_mkhi in metee_mkhi.c#25
orbisai0security wants to merge 1 commit into
intel:masterfrom
orbisai0security:fix-vsprintf-buffer-overflow-metee-mkhi

Conversation

@orbisai0security
Copy link
Copy Markdown

Summary

Fix critical severity security issue in samples/metee_mkhi.c.

Vulnerability

Field Value
ID V-001
Severity CRITICAL
Scanner multi_agent_ai
Rule V-001
File samples/metee_mkhi.c:165

Description: In samples/metee_mkhi.c at line 165, the function vsprintf() is used to format a string into the 'msg' buffer without any maximum length constraint. Unlike vsnprintf(), vsprintf() has no second parameter to limit output size. If the formatted output — determined by the format string 'fmt' and variadic arguments 'varl' — exceeds the allocated size of 'msg', the function will write beyond the buffer boundary into adjacent memory. This is a textbook unbounded write vulnerability (CWE-120/CWE-787) that has been exploited in practice for decades.

Changes

  • samples/metee_mkhi.c

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

Automated security fix by OrbisAI Security

Automated security fix generated by Orbis Security AI

Signed-off-by: orbisai0security <mediratta01.pally@gmail.com>
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.

1 participant