{"id":"CVE-2026-48065","sourceIdentifier":"security-advisories@github.com","published":"2026-05-27T20:16:40.380","lastModified":"2026-10-26T11:10:00.157","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.9.1, src/conf.c allocates heap memory proportional to n_devices, a count derived from libxml2 XPath evaluation of the config file, without first enforcing an upper bound. On 32-bit targets (armv7l, i686 -- both listed in the project Makefile), the multiplication n_devices * sizeof(t_pusb_device) wraps around size_t, causing xmalloc() to receive a very small size. Because xmalloc() only calls abort() on NULL return, a small-but-non-NULL allocation is accepted, and subsequent array writes overflow the heap. This vulnerability is fixed in 0.9.1."},{"lang":"es","value":"pam_usb proporciona autenticación de hardware para Linux utilizando medios extraíbles ordinarios. Antes de la versión 0.9.1, src/conf.c asigna memoria del montón proporcional a n_devices, un recuento derivado de la evaluación XPath de libxml2 del archivo de configuración, sin aplicar primero un límite superior. En objetivos de 32 bits (armv7l, i686 -- ambos listados en el Makefile del proyecto), la multiplicación n_devices * sizeof(t_pusb_device) desborda size_t, lo que provoca que xmalloc() reciba un tamaño muy pequeño. Debido a que xmalloc() solo llama a abort() en caso de retorno NULL, se acepta una asignación pequeña pero no NULL, y las escrituras posteriores en el array desbordan el montón. Esta vulnerabilidad está corregida en la versión 0.9.1."}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"mcdope","product":"pam_usb","versions":[{"version":"< 0.9.1","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","baseScore":6.7,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":0.8,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-05-28T13:39:43.190969Z","id":"CVE-2026-48065","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-122"},{"lang":"en","value":"CWE-190"}]}],"references":[{"url":"https://github.com/mcdope/pam_usb/issues/352","source":"security-advisories@github.com"},{"url":"https://github.com/mcdope/pam_usb/issues/55","source":"security-advisories@github.com"},{"url":"https://github.com/mcdope/pam_usb/security/advisories/GHSA-24mw-m2vf-36vp","source":"security-advisories@github.com"}]}