Security Advisory

CVE-2015-3310: pppd RADIUS rc_mksid() Overflow

Last updated:
  • CVE-2015-3310

CVE-2015-3310 is a buffer overflow in rc_mksid() in the RADIUS plugin of pppd, the PPP daemon in routers, access concentrators and VPN gateways. When pppd's PID exceeds 65535, the session ID overflows a 15-byte buffer and pppd crashes on a RADIUS start accounting message. NVD scores it 4.3 with CVSS v2 only; the upstream fix first shipped in ppp 2.4.9.

Vulnerability summary

CVSS base score

4.3

Medium severity

EPSS score (FIRST)

5.4%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2015-3310 · Source: NVD

Affected components

ComponentCPEVersion range
ppp (pppd) RADIUS plugincpe:2.3:a:point-to-point_protocol_project:point-to-point_protocol:*:*:*:*:*:*:*:*Up to and including 2.4.6 (NVD); upstream 2.4.7 and 2.4.8 still carry the 15-byte buffer; fixed by commit 858976b1, first released in ppp 2.4.9
Debian ppp packagecpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*squeeze fixed in 2.4.5-4+deb6u2 (DLA-205-1); wheezy fixed in 2.4.5-5.1+deb7u2 (DSA-3228-1); unstable fixed in 2.4.6-3.1; bookworm, trixie, forky and sid fixed (Debian security tracker, as of 2026-11-20)
Buildroot package/pppd—2.4.7 (2014.08 to 2019.x) and 2.4.8 (2020.02 to 2021.11) with no rc_mksid() patch; 2.4.9 from Buildroot 2022.02 (commit 075b01f2)
Yocto Project poky meta/recipes-connectivity/ppp—dunfell 2.4.7 with fix-CVE-2015-3310.patch; kirkstone 2.4.9 and scarthgap 2.5.0 include the upstream fix (as of 2026-11-20)
OpenWrt package/network/services/ppp (ppp-mod-radius)—openwrt-18.06 (2.4.7) and openwrt-19.07 (2.4.7 snapshot) carry patch 700-radius-Prevent-buffer-overflow-in-rc_mksid; openwrt-21.02 and later build snapshots that contain commit 858976b1 (as of 2026-11-20)

What does this mean for affected devices?

NVD describes CVE-2015-3310 as a "Buffer overflow in the rc_mksid function in plugins/radius/util.c in Paul's PPP Package (ppp) 2.4.6 and earlier, when the PID for pppd is greater than 65535", which lets remote attackers crash pppd "via a start accounting message to the RADIUS server". The record was published on 2015-04-24 (NVD, CVE record). It only concerns pppd builds that load the RADIUS plugin (radius.so), which is typical of PPPoE access concentrators and PPTP/L2TP VPN servers rather than of PPP clients.

What is the bug?

rc_mksid() builds a session ID by formatting the time, the pppd process ID and a counter with "%08lX%04X%02hX" into a 15-byte static buffer, which assumes the PID fits in four hex digits. Emanuele Rocca's Debian bug 782450 of 2015-04-12 reports that pppd aborts when sending a "start" accounting message once its PID exceeds 65535, because __sprintf_chk(), used with FORTIFY_SOURCE, detects the overflow. Debian's CVE request on oss-security adds an attack scenario against a VPN server running xl2tpd, which starts a new pppd for each connection: a remote attacker reconnects repeatedly, even with invalid credentials, to push the PID past 65535, after which every connection attempt fails.

How severe is CVE-2015-3310?

As of 2026-11-20 NVD scores this record with CVSS v2 only: the Primary metric is 4.3 (AV:N/AC:M/Au:N/C:N/I:N/A:P), and there is no CVSS v3 metric. The CVE record, assigned by MITRE, carries no CNA score. NVD lists the weakness as CWE-119. Its CPE ranges cover ppp up to and including 2.4.6, plus Ubuntu 12.04, 14.04, 14.10 and Debian 7.0. The impact is a denial of service of the PPP service.

On a device, the PID condition decides exposure. Linux's threads.h sets the default pid_max to 0x8000 (32768), and on 32-bit kernels that value is also the upper limit, so a 32-bit gateway never gives pppd a PID above 65535. 64-bit systems can raise pid_max to about 4 million, and then a busy VPN or PPPoE server reaches the bug.

Which ppp versions are really fixed?

NVD's range stops at 2.4.6, but the upstream code did not change until later: ppp 2.4.7 and 2.4.8 still declare static char buf[15]. Paul Mackerras' commit 858976b1 of 2020-01-04 ("radius: Prevent buffer overflow in rc_mksid()") enlarges the buffer to 32 bytes and uses slprintf(). It is first in ppp 2.4.9 (tagged 2021-01-04). Version matching against NVD alone therefore misses unpatched 2.4.7 and 2.4.8 builds. The sources linked here name no device vendor products for this CVE as of 2026-11-20. Downstream status:

  • Debian applied Rocca's patch (getpid() % 65535): squeeze 2.4.5-4+deb6u2 (DLA-205-1), wheezy 2.4.5-5.1+deb7u2 (DSA-3228-1), unstable 2.4.6-3.1; bookworm and later are fixed (Debian security tracker).
  • Buildroot shipped pppd 2.4.7 from 2014.08 and 2.4.8 from 2020.02 through 2021.11 with no rc_mksid() patch in package/pppd. The bump to 2.4.9 is in Buildroot 2022.02.
  • Yocto Project: poky dunfell builds 2.4.7 with fix-CVE-2015-3310.patch, the Debian patch; kirkstone builds 2.4.9.
  • OpenWrt carries the upstream commit as patch 700 on the openwrt-18.06 and openwrt-19.07 branches; openwrt-21.02 builds a 2020-10-03 snapshot that already contains it. The plugin ships as the separate ppp-mod-radius package.

How do you fix CVE-2015-3310?

Move to ppp 2.4.9 or later, or apply commit 858976b1 to a 2.4.x tree, and check that the RADIUS plugin in the image is the patched one. Our pppd vulnerabilities in embedded firmware guide explains this NVD range gap and how to find the version and plugins in an image. The 2.4.x releases also carry CVE-2014-3158 (before 2.4.7) and the EAP overflow CVE-2020-8597 (2.4.2 to 2.4.8). A comparable crash bug in another WAN-side daemon is CVE-2016-2147 in BusyBox udhcpc.

Is CVE-2015-3310 exploited?

It is not in the CISA KEV catalog as of 2026-11-20 (catalog version 2026.11.18, 1,786 entries). FIRST EPSS gives it 0.05405, the 92.9th percentile, in the 2026-11-19 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • NVD (read 2026-11-20): status Modified; published 2015-04-24; NVD Primary CVSS v2 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P; no CVSS v3 metric; CWE-119 (NVD); CPE point-to-point_protocol up to and including 2.4.6, plus Ubuntu 12.04 LTS, 14.04 LTS, 14.10 and Debian 7.0; references DSA-3228, USN-2595-1 and Debian bug 782450. — NVD
  • CVE record (checked 2026-11-20): state PUBLISHED, CNA MITRE, published 2015-04-24; no CNA CVSS metric. — CVE.org
  • ppp commit 858976b1 (Paul Mackerras, 2020-01-04), read 2026-11-20: rc_mksid() buf[15] enlarged to buf[32] and sprintf replaced by slprintf. Not in tag ppp-2.4.8 (which, like ppp-2.4.7, has static char buf[15]); contained in ppp-2.4.9 (tag commit 2021-01-04). — ppp-project/ppp
  • Debian bug 782450 (Emanuele Rocca, 2015-04-12), read 2026-11-20: pppd aborts sending a RADIUS start accounting message when its PID exceeds 65535; __sprintf_chk() with FORTIFY_SOURCE detects the overflow; patch uses getpid() % 65535; fixed in 2.4.6-3.1, 2.4.5-5.1+deb7u2, 2.4.5-4+deb6u2. — Debian BTS
  • oss-security CVE request (Sebastien Delafond, 2015-04-13), read 2026-11-20: attack scenario against an xl2tpd VPN server that starts a pppd per connection; repeated connections, even with invalid credentials, raise the PID past 65535 and every later connection fails. — oss-security (Openwall)
  • Debian security tracker and DSA-3228-1 (2015-04-16), read 2026-11-20: unauthenticated users can crash the daemon; squeeze 2.4.5-4+deb6u2 (DLA-205-1), wheezy 2.4.5-5.1+deb7u2 (DSA-3228-1), unstable 2.4.6-3.1; bookworm 2.4.9-1+1.1, trixie 2.5.2-1+1, forky/sid 2.5.5-1+1 fixed. — Debian
  • Buildroot (read 2026-11-20): package/pppd 2.4.7 in tags 2014.08 to 2019.02, 2.4.8 in 2020.02 to 2021.11, with no rc_mksid() patch in package/pppd; commit 075b01f2 'package/pppd: bump to version 2.4.9'; 2.4.9 in tag 2022.02. — Buildroot
  • Yocto poky (read 2026-11-20): dunfell ppp_2.4.7.bb applies fix-CVE-2015-3310.patch (Debian bug 782450 patch, Upstream-Status: Backport); kirkstone ppp_2.4.9.bb; scarthgap ppp_2.5.0.bb. — Yocto Project poky
  • OpenWrt (read 2026-11-20): openwrt-18.06 and openwrt-19.07 ppp packages carry 700-radius-Prevent-buffer-overflow-in-rc_mksid.patch (upstream 858976b1); openwrt-21.02 builds snapshot ad3937a0 (2020-10-03), which contains 858976b1; RADIUS plugin packaged as ppp-mod-radius. — OpenWrt
  • Linux include/linux/threads.h (read 2026-11-20): PID_MAX_DEFAULT 0x8000; PID_MAX_LIMIT is 4*1024*1024 when sizeof(long) > 4, otherwise PID_MAX_DEFAULT. — Linux kernel
  • Not in the CISA KEV catalog, version 2026.11.18 (1,786 entries), checked 2026-11-20. — CISA KEV
  • EPSS 0.05405, percentile 0.92853, dataset 2026-11-19, read 2026-11-20. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CVE.org record CVE-2015-3310 (CNA: MITRE)
  3. ppp commit 858976b1: radius: Prevent buffer overflow in rc_mksid()
  4. Debian bug 782450: ppp: Buffer overflow in radius plugin
  5. oss-security: CVE request for buffer overflow in ppp (2015-04-13)
  6. Debian security tracker: CVE-2015-3310
  7. Debian Security Advisory DSA-3228-1: ppp security update
  8. Buildroot commit 075b01f2: package/pppd: bump to version 2.4.9
  9. Yocto Project poky (dunfell): meta/recipes-connectivity/ppp
  10. OpenWrt openwrt-19.07: ppp package patches
  11. Linux kernel include/linux/threads.h (pid_max defaults)
  12. CISA KEV
  13. FIRST EPSS

Frequently asked questions

Which ppp version fixes CVE-2015-3310?

Upstream, ppp 2.4.9 is the first release with the fix (commit 858976b1 of 2020-01-04). NVD lists 2.4.6 and earlier, but unpatched 2.4.7 and 2.4.8 still have the 15-byte buffer. Debian, Yocto dunfell and OpenWrt 18.06/19.07 carry patches on older versions.

Is my device exposed to CVE-2015-3310?

Only if pppd loads the RADIUS plugin and can run with a PID above 65535. Linux's default pid_max is 32768 and is also the ceiling on 32-bit kernels, so most 32-bit gateways cannot reach the condition. 64-bit VPN or PPPoE servers that raise pid_max and start a pppd per session can.

How would an attacker trigger it?

Debian's CVE request describes an xl2tpd VPN server that starts a new pppd for each connection: an attacker reconnects repeatedly, even with wrong credentials, until the PID passes 65535, after which every connection attempt fails as pppd crashes on the RADIUS start accounting message.

Is CVE-2015-3310 in CISA KEV, and why is there no CVSS v3 score?

It is not in the CISA KEV catalog as of 2026-11-20 (catalog version 2026.11.18). NVD scores the record with CVSS v2 only (4.3) and has no v3 metric. FIRST EPSS gives it 0.05405, the 92.9th percentile, in the 2026-11-19 dataset.