{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-45891","id":"CVE-2026-45891","title":"net: hns3: fix double free issue for tx spare buffer","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: hns3: fix double free issue for tx spare buffer\n\nIn hns3_set_ringparam(), a temporary copy (tmp_rings) of the ring structure\nis created for rollback. However, the tx_spare pointer in the original\nring handle is incorrectly left pointing to the old backup memory.\n\nLater, if memory allocation fails in hns3_init_all_ring() duri","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: hns3: fix double free issue for tx spare buffer\n\nIn hns3_set_ringparam(), a temporary copy (tmp_rings) of the ring structure\nis created for rollback. However, the tx_spare pointer in the original\nring handle is incorrectly left pointing to the old backup memory.\n\nLater, if memory allocation fails in hns3_init_all_ring() during the setup,\nthe error path attempts to free all newly allocated rings. Since tx_spare\ncontains a stale (non-NULL) pointer from the backup, it is mistaken for\na newly allocated buffer and is erroneously freed, leading to a double-free\nof the backup memory.\n\nThe root cause is that the tx_spare field was not cleared after its value\nwas saved in tmp_rings, leaving a dangling pointer.\n\nFix this by setting tx_spare to NULL in the original ring structure\nwhen the creation of the new `tx_spare` fails. This ensures the\nerror cleanup path only frees genuinely newly allocated buffers.","published":"2026-05-27T12:17:02.306Z","updated":"2026-11-08T02:30:21.664449252Z","reserved":"2026-05-13T15:03:33.083Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"907676b130711fd1f627824559e92259db2061d1","lessThan":"fb6a4c376d454b425555b1b0bda36e99f56ec307","status":"affected","versionType":"git"},{"version":"907676b130711fd1f627824559e92259db2061d1","lessThan":"43015461662d41dcfb3bb95fadd8a2a42ad8eacf","status":"affected","versionType":"git"},{"version":"907676b130711fd1f627824559e92259db2061d1","lessThan":"6dc10494cfe27b6f1e9adb7e293293ae39c50b7c","status":"affected","versionType":"git"},{"version":"907676b130711fd1f627824559e92259db2061d1","lessThan":"d2c785733dfb853ea0b53984c75662a1af230a94","status":"affected","versionType":"git"},{"version":"907676b130711fd1f627824559e92259db2061d1","lessThan":"fdbccddb7e7822016601829f95de4008e193f7bc","status":"affected","versionType":"git"},{"version":"907676b130711fd1f627824559e92259db2061d1","lessThan":"c3659273860bed0c8e573b865e3769abc51225a8","status":"affected","versionType":"git"},{"version":"907676b130711fd1f627824559e92259db2061d1","lessThan":"6d2f142b1e4b203387a92519d9d2e34752a79dbb","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","lessThan":"5.14","status":"unaffected","versionType":"semver"},{"version":"5.15.202","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.165","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.128","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.75","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.14","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"6.19.4","lessThanOrEqual":"6.19.*","status":"unaffected","versionType":"semver"},{"version":"7.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-415"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/fb6a4c376d454b425555b1b0bda36e99f56ec307","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/43015461662d41dcfb3bb95fadd8a2a42ad8eacf","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6dc10494cfe27b6f1e9adb7e293293ae39c50b7c","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d2c785733dfb853ea0b53984c75662a1af230a94","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fdbccddb7e7822016601829f95de4008e193f7bc","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c3659273860bed0c8e573b865e3769abc51225a8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6d2f142b1e4b203387a92519d9d2e34752a79dbb","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45891.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45891","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.0013,"epssPercentile":0.02698,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-45891","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45891","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-45891","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-2026-45891","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}