CVE-2026-47269
JSON

7.4high

pam_usb: deny_remote feature incorrectly classifies IPv4-mapped IPv6 remote connections as local

Severity
7.4high CVSS:3.1 by GitHub_M
Exploit likelihood
0.31% (higher than 25% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.9.0, pam_usb's deny_remote feature checks utmpx ut_addr_v6 to detect whether an authentication request originates from a remote session. The outer guard was if (utent->ut_addr_v6[0] != 0), which only tests the first 32-bit word of the 128-bit address field. IPv4-mapped IPv6 addresses (::ffff:x.x.x.x) store the IPv4 address in ut_addr_v6[3] with ut_addr_v6[0] == 0. On systems where the SSH daemon listens on :: (IPv6 wildcard) with AddressFamily any -- common on Ubuntu and Debian -- incoming IPv4 connections are recorded in utmpx as IPv4-mapped IPv6 addresses. The outer check evaluates to false, the remote-detection block is skipped entirely, and the session is treated as local. deny_remote=true does not block the authentication. An attacker with physical access to a registered USB device can authenticate over SSH on an affected system as if they were sitting at a local terminal, bypassing the deny_remote restriction. This vulnerability is fixed in 0.9.0.

Affected

Product or packageVersionsReported by
mcdope pam_usb< 0.9.0CVE List

Classification

CWE-284

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.9.0, pam_usb's deny_remote feature checks utmpx ut_addr_v6 to detect whether an authentication request originates from a remote session. The outer guard was if (utent->ut_addr_v6[0] != 0), which only tests the first 32-bit word of the 128-bit address field. IPv4-mapped IPv6 addresses (::ffff:x.x.x.x) store the IPv4 address in ut_addr_v6[3] with ut_addr_v6[0] == 0. On systems where the SSH daemon listens on :: (IPv6 wildcard) with AddressFamily any -- common on Ubuntu and Debian -- incoming IPv4 connections are recorded in utmpx as IPv4-mapped IPv6 addresses. The outer check evaluates to false, the remote-detection block is skipped entirely, and the session is treated as local. deny_remote=true does not block the authentication. An attacker with physical access to a registered USB device can authenticate over SSH on an affected system as if they were sitting at a local terminal, bypassing the deny_remote restriction. This vulnerability is fixed in 0.9.0.

NVD (es)

pam_usb proporciona autenticación de hardware para Linux utilizando medios extraíbles ordinarios. Antes de la versión 0.9.0, la característica deny_remote de pam_usb verifica utmpx ut_addr_v6 para detectar si una solicitud de autenticación se origina de una sesión remota. La protección externa era if (utent -> ut_addr_v6[0] != 0), que solo prueba la primera palabra de 32 bits del campo de dirección de 128 bits. Las direcciones IPv6 mapeadas a IPv4 (::ffff:x.x.x.x) almacenan la dirección IPv4 en ut_addr_v6[3] con ut_addr_v6[0] == 0. En sistemas donde el demonio SSH escucha en :: (comodín IPv6) con AddressFamily any -- común en Ubuntu y Debian -- las conexiones IPv4 entrantes se registran en utmpx como direcciones IPv6 mapeadas a IPv4. La verificación externa se evalúa como falsa, el bloque de detección remota se omite por completo y la sesión se trata como local. deny_remote=true no bloquea la autenticación. Un atacante con acceso físico a un dispositivo USB registrado puede autenticarse a través de SSH en un sistema afectado como si estuviera sentado en un terminal local, eludiendo la restricción deny_remote. Esta vulnerabilidad se corrige en la versión 0.9.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-47269 changed 2026-05-28CVE Terms of Use
NVDCVE-2026-47269 changed 2026-10-26Public domain