Skip to content

fix: multiple memcpy operations in tensor buffer han... in litert_ten...#6381

Open
orbisai0security wants to merge 1 commit intogoogle-ai-edge:mainfrom
orbisai0security:fix-buffer-overflow-v001
Open

fix: multiple memcpy operations in tensor buffer han... in litert_ten...#6381
orbisai0security wants to merge 1 commit intogoogle-ai-edge:mainfrom
orbisai0security:fix-buffer-overflow-v001

Conversation

@orbisai0security
Copy link

Summary

Fix high severity security issue in litert/cc/litert_tensor_buffer.h.

Vulnerability

Field Value
ID V-001
Severity HIGH
Scanner multi_agent_ai
Rule V-001
File litert/cc/litert_tensor_buffer.h:392

Description: Multiple memcpy operations in tensor buffer handling code copy data without validating that the source size fits within the destination buffer bounds. In litert_tensor_buffer.h:392, data is copied ...

Changes

  • litert/cc/litert_tensor_buffer.h
  • litert/cc/litert_buffer_ref.h

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • Code review passed

Automated security fix by OrbisAI Security

Multiple memcpy operations in tensor buffer handling code copy data without validating that the source size fits within the destination buffer bounds
Resolves V-001
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