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

libflycapture.so.2.13.3.31 executable stack #582

Closed
paolostivanin opened this issue May 30, 2022 · 6 comments
Closed

libflycapture.so.2.13.3.31 executable stack #582

paolostivanin opened this issue May 30, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@paolostivanin
Copy link
Contributor

Hello,
our build checks are complaining about the following issue:

libflycapture2.x86_64: E: executable-stack (Badness: 10000) /usr/lib64/libflycapture.so.2.13.3.31

How can I reach Atik to kindly ask them to fix this (possible) security issue?

thanks

@paolostivanin paolostivanin added the bug Something isn't working label May 30, 2022
@TallFurryMan
Copy link
Contributor

TallFurryMan commented May 30, 2022

Would it be possible to have a extended log of the detection, and a procedure to validate this is not the case anymore when it is fixed?

@TallFurryMan
Copy link
Contributor

@paolostivanin any script you could share to reproduce the report?

@paolostivanin
Copy link
Contributor Author

@TallFurryMan sorry, I missed the notification. Yes, you can use the execstack tool.

Example where stack is executable:

$ execstack libatik/x64/libflycapture.bin 
X libatik/x64/libflycapture.bin

Example where stack is not executable:

$ execstack libasi/x64/libASICamera2.bin 
- libasi/x64/libASICamera2.bin

@paolostivanin
Copy link
Contributor Author

$ for l in $(find lib*/x64/*|xargs); do execstack $l; done
- libaltaircam/x64/libaltaircam.bin
- libasi/x64/libASICamera2.bin
- libasi/x64/libEAFFocuser.bin
- libasi/x64/libEFWFilter.bin
- libasi/x64/libUSB2ST4Conv.bin
- libatik/x64/libatikcameras.bin
X libatik/x64/libflycapture.bin
- libmallincam/x64/libmallincam.bin
- libnncam/x64/libnncam.bin
- libomegonprocam/x64/libomegonprocam.bin
- libplayerone/x64/libPlayerOneCamera.bin
- libstarshootg/x64/libstarshootg.bin
- libtoupcam/x64/libtoupcam.bin

Only libflycapture seems to be the problem here.

@paolostivanin
Copy link
Contributor Author

Another way is with readelf:

$ readelf -lW libflycapture.bin |grep GNU_STACK
  GNU_STACK      0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RWE 0x10

if the output has E (like in the above case), then the stack is executable.

Example of non executable stack using readelf:

$ readelf -lW libatikcameras.bin |grep GNU_STACK
  GNU_STACK      0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW  0x10

@knro
Copy link
Collaborator

knro commented Nov 16, 2022

I think you need to reach out to Atik as we can't do anything about a binary blob.

@knro knro closed this as completed Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants