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

Unrestricted access to /dev/ttyUSB* vulnerability #1796

Closed
dimich-dmb opened this issue Dec 26, 2022 · 4 comments
Closed

Unrestricted access to /dev/ttyUSB* vulnerability #1796

dimich-dmb opened this issue Dec 26, 2022 · 4 comments

Comments

@dimich-dmb
Copy link
Contributor

drivers/auxiliary/99-indi_auxiliary.rules sets mode 0666 for many popular USB-to-serial adapters. It allows any user to access any /dev/ttyUSB* unrestrictedly in most cases, regardless of uucp group membership and device purpose. This is security vulnerability.

Possible solution is to change MODE="0666" to TAG+="uaccess". Probably also need to change 99 prefix in 99-indi_auxiliary.rules to move it before 73-seat-late.rules.

@dimich-dmb dimich-dmb added the bug label Dec 26, 2022
@knro
Copy link
Contributor

knro commented Jan 15, 2023

Would this work across distro? Many users are already suffering from being unable to access their USB devices due to all the restrictions and we don't want to make the users suffer unnecessarily.

@dimich-dmb
Copy link
Contributor Author

Would this work across distro?

I don't know. I guess it should work on any distro with standard systemd configuration but can't test it. I have libindi installed as a dependency for another package.

Anyway, letting to know about security issue is better than staying silent.

Many users are already suffering from being unable to access their USB devices due to all the restrictions and we don't want to make the users suffer unnecessarily.

On another hand, allowing all users to access USB devices is a rude solution, i think. Let users manage access to devices on their systems.

Copy link

This issue has been inactive for 60 days and is being marked as stale.

@github-actions github-actions bot added the Stale label Mar 30, 2024
Copy link

github-actions bot commented Apr 6, 2024

This issue has been closed due to inactivity.

@github-actions github-actions bot closed this as completed Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants