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

Security patch #218

Merged
merged 2 commits into from
Oct 8, 2024
Merged

Security patch #218

merged 2 commits into from
Oct 8, 2024

Conversation

dmulder
Copy link
Collaborator

@dmulder dmulder commented Oct 8, 2024

Newer versions of Rust/LLVM would optimise-out a call to pam_get_user due to a library using const incorrectly on a pointer. This could result in a username not being set with an invalid fall through condition. In some cases this COULD CAUSE UNAUTHENTICATED system access.

Checklist

  • This pr contains no AI generated code
  • cargo fmt has been run
  • cargo clippy has been run
  • A functionality test has been added
  • make test has been run and passes

See related:
kanidm/kanidm#2960

It seems that a pam or sudo update triggered
this behaviour, which appears to be an external
bug that we need to defend against.

Signed-off-by: David Mulder <dmulder@samba.org>
Signed-off-by: David Mulder <dmulder@samba.org>
@dmulder dmulder merged commit 1de8e2d into main Oct 8, 2024
5 checks passed
@dmulder dmulder deleted the dmulder/pam_fixes branch October 8, 2024 15:40
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.

1 participant