{"id":"CVE-2026-48065","published":"2026-05-27T19:58:36Z","modified":"2026-05-28T13:44:27Z","title":"pam_usb: Unchecked integer multiplication before xmalloc() in conf.c allows heap-based buffer overflow on 32-bit targets","vendor":"mcdope","product":"pam_usb","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00149,"percentile":0.04176,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"},{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/mcdope/pam_usb/security/advisories/GHSA-24mw-m2vf-36vp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mcdope/pam_usb/issues/352","tags":["x_refsource_MISC"]},{"url":"https://github.com/mcdope/pam_usb/issues/55","tags":["x_refsource_MISC"]}],"priority":{"score":5.5,"factors":[{"name":"EPSS percentile","points":0.84},{"name":"CVSS severity","points":4.69}]},"vendorSlug":"mcdope","affectedVersions":[{"vendor":"mcdope","product":"pam_usb","versions":["< 0.9.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-05-28T13:39:43.190969Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-32649","exploited":false,"provenance":"source"}}