-
Notifications
You must be signed in to change notification settings - Fork 394
nix::unistd::getgrouplist buffer overflow #1060
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
Conversation
c0525dd
to
560b4b0
Compare
Thank you! Looks good to me. Is there a chance that a fix is going to be released within the next 24 hours or so? In that case I'd prefer to include the fixed version in the advisory and only then merge it in order to make the advisory more actionable. |
I think that depends on the nix maintainers (we're just contributors), and my guess would be no. |
Yes, I'll merge that PR and publish soon. But while this is certainly a bug, is it really a security issue? It doesn't seem exploitable to me, except by somebody who already has the ability to modify /etc/groups. |
Fixed in Nix 0.23.0, 0.20.2, 0.21.2, and 0.22.2. |
Since this appears to require root to exploit, I'd like to drop the severity down to a warning. Thoughts? |
I agree with decreasing the severity. Also, you should set the |
Merged. Apologies for the delay. Thanks @geofft for the timely and detailed advisory! |
Thank you, and thanks @asomers for the backports to stable branches (we're unfortunately still running Debian oldoldstable for a few more months). I agree this is not high-priority, but there are contexts where it's theoretically exploitable by an unprivileged user, including
|
Reported in nix-rust/nix#1541, fix currently under review.