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

codecs: fix mmap security issue #115

Open
wants to merge 2 commits into
base: amlogic-3.14.y
Choose a base branch
from
Open

codecs: fix mmap security issue #115

wants to merge 2 commits into from

Conversation

dlan17
Copy link

@dlan17 dlan17 commented May 7, 2018

this PR try to fix two mmap security issue

fail to do bounds-check the "offset" value or the map's size,
may result in security issue.

Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
if (!off)
off += wq->mem.buf_start;
off = wq->mem.buf_start;
Copy link

Choose a reason for hiding this comment

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

This should be an addition unconditionally.

the mmap is not really been used, drop it for now.

It protentially have write primitive which would allow
userspace process to write to any physical address, which
is a security issue.

Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
Signed-off-by: Yixun Lan <yixun.lan@amlogic.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.

2 participants