{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-22005","id":"CVE-2025-22005","title":"ipv6: Fix memleak of nhc_pcpu_rth_output in fib_check_nh_v6_gw().","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv6: Fix memleak of nhc_pcpu_rth_output in fib_check_nh_v6_gw().\n\nfib_check_nh_v6_gw() expects that fib6_nh_init() cleans up everything\nwhen it fails.\n\nCommit 7dd73168e273 (\"ipv6: Always allocate pcpu memory in a fib6_nh\")\nmoved fib_nh_common_init() before alloc_percpu_gfp() within fib6_nh_init()\nbut forgot to add cleanup for fi","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv6: Fix memleak of nhc_pcpu_rth_output in fib_check_nh_v6_gw().\n\nfib_check_nh_v6_gw() expects that fib6_nh_init() cleans up everything\nwhen it fails.\n\nCommit 7dd73168e273 (\"ipv6: Always allocate pcpu memory in a fib6_nh\")\nmoved fib_nh_common_init() before alloc_percpu_gfp() within fib6_nh_init()\nbut forgot to add cleanup for fib6_nh->nh_common.nhc_pcpu_rth_output in\ncase it fails to allocate fib6_nh->rt6i_pcpu, resulting in memleak.\n\nLet's call fib_nh_common_release() and clear nhc_pcpu_rth_output in the\nerror path.\n\nNote that we can remove the fib6_nh_release() call in nh_create_ipv6()\nlater in net-next.git.","published":"2025-04-03T07:19:06.716Z","updated":"2026-11-12T02:30:56.233297615Z","reserved":"2024-12-29T08:45:45.803Z","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"},{"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":"CISA-ADP"},{"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":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7dd73168e273938b9e9bb42ca51b0c27d807992b","lessThan":"16267a5036173d0173377545b4b6021b081d0933","status":"affected","versionType":"git"},{"version":"7dd73168e273938b9e9bb42ca51b0c27d807992b","lessThan":"1bd12dfc058e1e68759d313d7727d68dbc1b8964","status":"affected","versionType":"git"},{"version":"7dd73168e273938b9e9bb42ca51b0c27d807992b","lessThan":"596a883c4ce2d2e9c175f25b98fed3a1f33fea38","status":"affected","versionType":"git"},{"version":"7dd73168e273938b9e9bb42ca51b0c27d807992b","lessThan":"77c41cdbe6bce476e08d3251c0d501feaf10a9f3","status":"affected","versionType":"git"},{"version":"7dd73168e273938b9e9bb42ca51b0c27d807992b","lessThan":"119dcafe36795a15ae53351cbbd6177aaf94ffef","status":"affected","versionType":"git"},{"version":"7dd73168e273938b9e9bb42ca51b0c27d807992b","lessThan":"29d91820184d5cbc70f3246d4911d96eaeb930d6","status":"affected","versionType":"git"},{"version":"7dd73168e273938b9e9bb42ca51b0c27d807992b","lessThan":"d3d5b4b5ae263c3225db363ba08b937e2e2b0380","status":"affected","versionType":"git"},{"version":"7dd73168e273938b9e9bb42ca51b0c27d807992b","lessThan":"9740890ee20e01f99ff1dde84c63dcf089fabb98","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","lessThan":"5.3","status":"unaffected","versionType":"semver"},{"version":"5.4.292","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.236","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.180","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.132","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.85","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.21","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.13.9","lessThanOrEqual":"6.13.*","status":"unaffected","versionType":"semver"},{"version":"6.14","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/16267a5036173d0173377545b4b6021b081d0933","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1bd12dfc058e1e68759d313d7727d68dbc1b8964","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/596a883c4ce2d2e9c175f25b98fed3a1f33fea38","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/77c41cdbe6bce476e08d3251c0d501feaf10a9f3","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/119dcafe36795a15ae53351cbbd6177aaf94ffef","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/29d91820184d5cbc70f3246d4911d96eaeb930d6","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d3d5b4b5ae263c3225db363ba08b937e2e2b0380","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9740890ee20e01f99ff1dde84c63dcf089fabb98","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":["web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22005.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22005","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.00219,"epssPercentile":0.12482,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-22005","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22005","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-22005","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-22005","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}