CVE-2015-9542 in Canonical Ubuntu Linux and 2 more products
add_password in pam_radius_auth.c in pam_radius 1.4.0 does not correctly check the length of the input password, and is vulnerable to a stack-based buffer overflow during memcpy(). An attacker could send a crafted password to an application (loading the pam_radius library) and crash it. Arbitrary code execution migh...
Affects 3 products from 3 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Canonical | Ubuntu Linux | 12.04 14.04 16.04 18.04 19.10 |
| Debian | Debian Linux | 8.0 9.0 |
| Freeradius | Pam Radius | 1.4.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
add_password in pam_radius_auth.c in pam_radius 1.4.0 does not correctly check the length of the input password, and is vulnerable to a stack-based buffer overflow during memcpy(). An attacker could send a crafted password to an application (loading the pam_radius library) and crash it. Arbitrary code execution might be possible, depending on the application, C library, compiler, and other factors.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2015-9542 |
|---|---|
| BreachSpider ID | BS-2020-GLOBAL-305573-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2020-02-24 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-787: Out-of-Bounds Write
Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.
Analysis AI-written, not human-reviewed
A stack-based buffer overflow vulnerability exists in the add_password function in pam_radius_auth.c of pam_radius 1.4.0 due to improper length checking of the input password, potentially leading to application crashes and arbitrary code execution.
An attacker can exploit this vulnerability by sending a specially crafted password to an application that uses the pam_radius library. This could result in a buffer overflow, potentially allowing the attacker to execute arbitrary code on the system.
Questions
What is CVE-2015-9542?
A stack-based buffer overflow vulnerability exists in the add_password function in pam_radius_auth.c of pam_radius 1.4.0 due to improper length checking of the input password, potentially leading to application crashes and arbitrary code execution.
What is the CVSS score for CVE-2015-9542?
CVE-2015-9542 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 3.5%.
Is CVE-2015-9542 actively exploited?
No confirmed active exploitation of CVE-2015-9542 as of 2026-09-25.
How do I remediate CVE-2015-9542?
Priority: HIGH.
What systems are affected by CVE-2015-9542?
CVE-2015-9542 affects Canonical Ubuntu Linux; Debian Debian Linux; Freeradius Pam Radius.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.