Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-47270

MEDIUM · 6.3 CVSS Gepubliceerd: CWE-362

Beschrijving NL

pam_usb biedt hardware-authenticatie voor Linux met behulp van gewone verwijderbare media. Voorafgaand aan 0.9.0 is pam_usb een PAM-module die in het hostproces is geladen (sudo, login, GDM, Gnome Shell). Displaybeheerders zoals GDM voeren meerdere gelijktijdige authenticatie-threads uit. Drie functies die worden gebruikt door de functie deny_remote, de niet-herhalende strtok(), die de status opslaat in een enkele globale aanwijzer. Als twee authenticaties racen, kan de strtok() -aanroep van de ene thread de tokenisatieaanwijzer van de andere overschrijven, waardoor onjuiste parsering van de tmux-sessiegegevens of de /proc environ-scan wordt veroorzaakt die de detectielogica voor externe sessies ondersteunt. Bovendien gaf pusb_tmux_get_client_tty() de ruwe aanwijzer die door getenv(TMUX) werd geretourneerd rechtstreeks door aan strtok(). getenv() retourneert een aanwijzer in het live procesomgevingsblok; strtok() voegt nul bytes in dat blok in, waardoor de TMUX-variabele permanent wordt beschadigd voor volgende code die in hetzelfde proces wordt uitgevoerd. Bij langlevende displaymanagers heeft dit invloed op alle toekomstige authenticaties in dat proces. Het gecombineerde effect kan ertoe leiden dat deny_remote=true een onjuiste beslissing voor een sessie op afstand retourneert, of een onjuiste beslissing voor een lokale sessie, afhankelijk van het interleaving van de thread. Deze kwetsbaarheid is opgelost in 0.9.0.

Origineel (Engels) tonen

pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.9.0, pam_usb is a PAM module loaded into the host process (sudo, login, GDM, GNOME Shell). Display managers such as GDM run multiple concurrent authentication threads. Three functions used by the deny_remote feature called the non-reentrant strtok(), which stores state in a single global pointer. If two authentications race, one thread's strtok() call can overwrite the other's in-progress tokenisation pointer, causing incorrect parsing of the tmux session data or the /proc environ scan that backs the remote-session detection logic. Additionally, pusb_tmux_get_client_tty() passed the raw pointer returned by getenv(TMUX) directly to strtok(). getenv() returns a pointer into the live process environment block; strtok() inserts NUL bytes into that block, permanently corrupting the TMUX variable for subsequent code running in the same process. In long-lived display managers this affects all future authentications in that process. The combined effect can cause deny_remote=true to return an incorrect decision for a remote session, or an incorrect decision for a local session, depending on thread interleaving. This vulnerability is fixed in 0.9.0.

References