Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent unitialized memory access in GraphConstructor::MakeEdge #45530

Merged
merged 1 commit into from Dec 17, 2020

Conversation

mihaimaruseac
Copy link
Collaborator

The MakeEdge implementation assumes that there exists an output at output_index of src node and an input at input_index of dst node. However, if this is not the case this results in accessing data out of bounds. Because we are accessing an array that is a private member of a class and only in read only mode, this usually results only in unitialized memory access. However, it is reasonable to think that malicious users could manipulate these indexes to actually read data outside the class, thus resulting in information leakage and further exploits.

PiperOrigin-RevId: 346343288
Change-Id: I2127da27c2023d27f26efd39afa6c853385cab6f

The `MakeEdge` implementation assumes that there exists an output at `output_index` of `src` node and an input at `input_index` of `dst` node. However, if this is not the case this results in accessing data out of bounds. Because we are accessing an array that is a private member of a class and only in read only mode, this usually results only in unitialized memory access. However, it is reasonable to think that malicious users could manipulate these indexes to actually read data outside the class, thus resulting in information leakage and further exploits.

PiperOrigin-RevId: 346343288
Change-Id: I2127da27c2023d27f26efd39afa6c853385cab6f
@mihaimaruseac mihaimaruseac added the waiting for patch release PR will be reviewed and merged only if we do a patch release since PR is not on master branch label Dec 9, 2020
@mihaimaruseac mihaimaruseac self-assigned this Dec 9, 2020
@google-cla google-cla bot added the cla: yes label Dec 9, 2020
@mihaimaruseac mihaimaruseac merged commit 6f62fd1 into r1.15 Dec 17, 2020
@mihaimaruseac mihaimaruseac deleted the mm-cherrypick-6d7da36623b-on-r1.15 branch December 17, 2020 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes waiting for patch release PR will be reviewed and merged only if we do a patch release since PR is not on master branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant