{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-39847","id":"CVE-2025-39847","title":"ppp: fix memory leak in pad_compress_skb","description":"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 kf","descriptionLong":"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.","published":"2025-09-19T15:26:20.648Z","updated":"2026-11-07T02:30:48.925896102Z","reserved":"2025-04-16T07:20:57.141Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b3f9b92a6ec1a9a5e4b4b36e484f2f62cc73277c","lessThan":"9ca6a040f76c0b149293e430dabab446f3fc8ab7","status":"affected","versionType":"git"},{"version":"b3f9b92a6ec1a9a5e4b4b36e484f2f62cc73277c","lessThan":"87a35a36742df328d0badf4fbc2e56061c15846c","status":"affected","versionType":"git"},{"version":"b3f9b92a6ec1a9a5e4b4b36e484f2f62cc73277c","lessThan":"0b21e9cd4559102da798bdcba453b64ecd7be7ee","status":"affected","versionType":"git"},{"version":"b3f9b92a6ec1a9a5e4b4b36e484f2f62cc73277c","lessThan":"1d8b354eafb8876d8bdb1bef69c7d2438aacfbe8","status":"affected","versionType":"git"},{"version":"b3f9b92a6ec1a9a5e4b4b36e484f2f62cc73277c","lessThan":"85c1c86a67e09143aa464e9bf09c397816772348","status":"affected","versionType":"git"},{"version":"b3f9b92a6ec1a9a5e4b4b36e484f2f62cc73277c","lessThan":"631fc8ab5beb9e0ec8651fb9875b9a968e7b4ae4","status":"affected","versionType":"git"},{"version":"b3f9b92a6ec1a9a5e4b4b36e484f2f62cc73277c","lessThan":"33a5bac5f14772730d2caf632ae97b6c2ee95044","status":"affected","versionType":"git"},{"version":"b3f9b92a6ec1a9a5e4b4b36e484f2f62cc73277c","lessThan":"4844123fe0b853a4982c02666cb3fd863d701d50","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.15","status":"affected"},{"version":"0","lessThan":"2.6.15","status":"unaffected","versionType":"semver"},{"version":"5.4.299","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.243","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.192","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.151","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.105","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.46","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.16.6","lessThanOrEqual":"6.16.*","status":"unaffected","versionType":"semver"},{"version":"6.17","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/9ca6a040f76c0b149293e430dabab446f3fc8ab7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/87a35a36742df328d0badf4fbc2e56061c15846c","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0b21e9cd4559102da798bdcba453b64ecd7be7ee","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1d8b354eafb8876d8bdb1bef69c7d2438aacfbe8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/85c1c86a67e09143aa464e9bf09c397816772348","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/631fc8ab5beb9e0ec8651fb9875b9a968e7b4ae4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/33a5bac5f14772730d2caf632ae97b6c2ee95044","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4844123fe0b853a4982c02666cb3fd863d701d50","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39847.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39847","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0017,"epssPercentile":0.06552,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-39847","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39847","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-39847","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-39847","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}