{"id":"CVE-2025-39847","aliases":["CVE-2025-39847"],"related":[],"kind":"vulnerability","state":"published","title":"ppp: fix memory leak in pad_compress_skb","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nppp: fix memory leak in pad_compress_skb\n\nIf alloc_skb() fails in pad_compress_skb(), it returns NULL without\nreleasing the old skb. The caller does:\n\n    skb = pad_compress_skb(ppp, skb);\n    if (!skb)\n        goto drop;\n\ndrop:\n    kfree_skb(skb);\n\nWhen pad_compress_skb() returns NULL, the reference to the old skb is\nlost and kfree_skb(skb) ends up doing nothing, leading to a memory leak.\n\nAlign pad_compress_skb() semantics with realloc(): only free the old\nskb if allocation and compression succeed.  At the call site, use the\nnew_skb variable so the original skb is not lost when pad_compress_skb()\nfails.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nppp: fix memory leak in pad_compress_skb\n\nIf alloc_skb() fails in pad_compress_skb(), it returns NULL without\nreleasing the old skb. The caller does:\n\n    skb = pad_compress_skb(ppp, skb);\n    if (!skb)\n        goto drop;\n\ndrop:\n    kfree_skb(skb);\n\nWhen pad_compress_skb() returns NULL, the reference to the old skb is\nlost and kfree_skb(skb) ends up doing nothing, leading to a memory leak.\n\nAlign pad_compress_skb() semantics with realloc(): only free the old\nskb if allocation and compression succeed.  At the call site, use the\nnew_skb variable so the original skb is not lost when pad_compress_skb()\nfails.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nppp: corrige una fuga de memoria en pad_compress_skb\n\nSi alloc_skb() falla en pad_compress_skb(), devuelve NULL sin liberar el skb antiguo. El llamador hace:\n\n    skb = pad_compress_skb(ppp, skb);\n    if (!skb)\n        goto drop;\n\ndrop:\n    kfree_skb(skb);\n\nCuando pad_compress_skb() devuelve NULL, la referencia al skb antiguo se pierde y kfree_skb(skb) termina sin hacer nada, lo que lleva a una fuga de memoria.\n\nAlinea la semántica de pad_compress_skb() con realloc(): solo libera el skb antiguo si la asignación y la compresión tienen éxito. En el sitio de la llamada, usa la variable new_skb para que el skb original no se pierda cuando pad_compress_skb() falla.","source":"nvd"}],"published":"2025-09-19T15:26:20.648Z","modified":"2026-11-05T22:17:33.773Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"b3f9b92a6ec1a9a5e4b4b36e484f2f62cc73277c","fixed":"9ca6a040f76c0b149293e430dabab446f3fc8ab7","status":"affected"},{"type":"git","introduced":"b3f9b92a6ec1a9a5e4b4b36e484f2f62cc73277c","fixed":"87a35a36742df328d0badf4fbc2e56061c15846c","status":"affected"},{"type":"git","introduced":"b3f9b92a6ec1a9a5e4b4b36e484f2f62cc73277c","fixed":"0b21e9cd4559102da798bdcba453b64ecd7be7ee","status":"affected"},{"type":"git","introduced":"b3f9b92a6ec1a9a5e4b4b36e484f2f62cc73277c","fixed":"1d8b354eafb8876d8bdb1bef69c7d2438aacfbe8","status":"affected"},{"type":"git","introduced":"b3f9b92a6ec1a9a5e4b4b36e484f2f62cc73277c","fixed":"85c1c86a67e09143aa464e9bf09c397816772348","status":"affected"},{"type":"git","introduced":"b3f9b92a6ec1a9a5e4b4b36e484f2f62cc73277c","fixed":"631fc8ab5beb9e0ec8651fb9875b9a968e7b4ae4","status":"affected"},{"type":"git","introduced":"b3f9b92a6ec1a9a5e4b4b36e484f2f62cc73277c","fixed":"33a5bac5f14772730d2caf632ae97b6c2ee95044","status":"affected"},{"type":"git","introduced":"b3f9b92a6ec1a9a5e4b4b36e484f2f62cc73277c","fixed":"4844123fe0b853a4982c02666cb3fd863d701d50","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.15","status":"unaffected"},{"type":"semver","introduced":"5.4.299","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.243","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.192","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.151","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.105","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.46","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.6","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.15","fixed":"5.4.299"},{"status":"affected","introduced":"5.5","fixed":"5.10.243"},{"status":"affected","introduced":"5.11","fixed":"5.15.192"},{"status":"affected","introduced":"5.16","fixed":"6.1.151"},{"status":"affected","introduced":"6.2","fixed":"6.6.105"},{"status":"affected","introduced":"6.7","fixed":"6.12.46"},{"status":"affected","introduced":"6.13","fixed":"6.16.6"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/9ca6a040f76c0b149293e430dabab446f3fc8ab7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/87a35a36742df328d0badf4fbc2e56061c15846c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0b21e9cd4559102da798bdcba453b64ecd7be7ee","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1d8b354eafb8876d8bdb1bef69c7d2438aacfbe8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/85c1c86a67e09143aa464e9bf09c397816772348","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/631fc8ab5beb9e0ec8651fb9875b9a968e7b4ae4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/33a5bac5f14772730d2caf632ae97b6c2ee95044","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4844123fe0b853a4982c02666cb3fd863d701d50","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:12:34.406Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39847","url":"https://www.cve.org/CVERecord?id=CVE-2025-39847","licence":"CVE Terms of Use","modified":"2026-11-05T21:13:00.053Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39847","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39847","licence":"Public domain","modified":"2026-11-05T22:17:33.773Z"}],"updatedAt":"2026-11-25T22:59:04.864Z","epss":{"score":0.00171,"percentile":0.06795,"date":"2026-12-01T12:00:22.000Z"}}