Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-102631 Overview
CVE-2026-102631 is an authentication vulnerability in Canonical's authd daemon affecting versions before 0.7.1. The flaw resides in the UpdateUser function in internal/users/manager.go, where identity matching falls back to username comparison when the broker-scoped provider ID does not match any known user. The function also fails to reject a conflicting non-empty provider ID. When an identity provider reassigns an email address to a new account, the new account inherits the previous user's local UID and home directory. This weakness is categorized as Improper Authentication [CWE-287].
Critical Impact
A reassigned IdP account can take over the previous user's local UID and home directory, exposing SSH keys, cloud API tokens, and other credentials stored on disk.
Affected Products
- Canonical authd versions prior to 0.7.1
- Ubuntu systems using authd for identity provider integration
- Deployments where authd consumes identity brokers that may recycle email addresses
Discovery Timeline
- 2026-10-15 - CVE-2026-102631 published to NVD
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-102631
Vulnerability Analysis
The authd daemon maps external identity provider (IdP) accounts to local Unix users. In UpdateUser within internal/users/manager.go, the resolver first attempts to match the incoming login using the broker-scoped provider ID. If no local user carries that provider ID, the code falls back to matching by username.
The username in authd is the email address supplied by the IdP. The fallback executes even when the login carries a non-empty provider ID that conflicts with the stored provider ID for that username. As a result, the daemon silently rebinds the local account record to the new identity rather than rejecting the login.
The practical outcome is a persistent UID collision. The new IdP account logs in and receives the previous user's local UID and home directory, including files such as ~/.ssh/, cloud CLI configuration, and session tokens.
Root Cause
The root cause is a missing conflict check in the identity resolution path. UpdateUser does not treat a mismatched non-empty provider ID as a failure condition. Combining email-as-username with a permissive fallback produces an authentication confusion between two distinct principals that share an attribute controlled by an external IdP.
Attack Vector
Exploitation requires an IdP operation that reassigns a previously used email address to a new account, followed by that new account logging into a system where the prior local user still exists in authd. The attack is local in the sense that the resulting file access occurs on the host, but the trigger is driven by the upstream identity provider.
See the Launchpad Bug Report and the GitHub Pull Request for the fix and additional technical context.
Detection Methods for CVE-2026-102631
Indicators of Compromise
- A local authd user record whose stored provider ID changes between consecutive successful logins for the same username.
- Access to files under a user's home directory, especially ~/.ssh/authorized_keys, ~/.aws/credentials, or ~/.config/gcloud/, immediately after an IdP account reassignment.
- authd log entries showing login success for a username while the broker reports a provider ID that does not match prior sessions.
Detection Strategies
- Correlate IdP audit logs for email reassignment or account recreation events with subsequent first-time logins on hosts running authd.
- Monitor the authd user database for silent updates to the provider ID field on existing local accounts.
- Alert on reads or writes to sensitive dotfiles by a session whose IdP subject identifier differs from the historical owner of the UID.
Monitoring Recommendations
- Enable auditd rules on ~/.ssh/, cloud credential directories, and shell history files for every authd-managed home directory.
- Ingest authd daemon logs and IdP provisioning events into a centralized log platform for cross-source correlation.
- Track creation and deletion of IdP accounts whose email addresses previously belonged to active local users.
How to Mitigate CVE-2026-102631
Immediate Actions Required
- Upgrade authd to version 0.7.1 or later on all affected hosts.
- Lock or delete the local authd account for any user whose IdP account has been removed, per the vendor-recommended mitigation.
- Audit existing local authd user records against the current IdP user base and remove stale mappings.
- Rotate SSH keys and cloud API tokens stored in home directories of any user whose identity may have been reassigned.
Patch Information
Canonical addressed the issue in authd0.7.1. The fix is tracked in the GitHub Pull Request and documented in the Ubuntu Security CVE-2026-102631 advisory.
Workarounds
- Establish an operational procedure to lock the corresponding local account whenever an IdP account is removed or reassigned.
- Prohibit IdP policies that recycle email addresses between distinct principals.
- Restrict interactive login on systems using authd until the upgrade to 0.7.1 can be deployed.
# Lock the stale local account after an IdP removal
sudo passwd -l <username>
sudo usermod --expiredate 1 <username>
# Optional: remove the local authd mapping and home directory after backup
sudo userdel -r <username>
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

