# CVE-2026-139159: nvmet: prevent double-free after metadata SGL allocation failure

- Severity: High 8.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Published: 2026-11-30T13:32:07.724Z
- Modified: 2026-12-01T06:17:38.200Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

nvmet: prevent double-free after metadata SGL allocation failure

If metadata SGL allocation fails, nvmet_req_alloc_sgls() frees
req->sg without clearing it. The RDMA error completion path later
frees the same scatterlist again.

Use nvmet_req_free_sgls() instead so that the scatterlist pointers
and counts are cleared before response cleanup.

(As written by CVE List.)

## Affected

- Linux Linux: from c6e3f13398123a008cd2ee28f93510b113a32791 before b22d6aa4c956240d6c9a27b743df8548ecd6c3dd; from c6e3f13398123a008cd2ee28f93510b113a32791 before 2e8c8c6ff43ca4cf52c82470e72bd73ddd660b87; from c6e3f13398123a008cd2ee28f93510b113a32791 before bb5dd42918c62988c734b0017e41c11043c2946c; from c6e3f13398123a008cd2ee28f93510b113a32791 before c07e6802f75e112e82cfacbe01a15fb047ef7284; from c6e3f13398123a008cd2ee28f93510b113a32791 before d998fa25c4f8d81541f1ae52d39dde9dd343df9b; from c6e3f13398123a008cd2ee28f93510b113a32791 before caaf795ed9946074a8f9154e67053f4cc9cde7e0; from c6e3f13398123a008cd2ee28f93510b113a32791 before 5f981beb9a8d050a7cabd7184cf4c96643eff9a7; from c6e3f13398123a008cd2ee28f93510b113a32791 before 2f61b9d1d54edf75a352c43eebe3804144b5d44e; 5.8 (not affected: before 5.8; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/b22d6aa4c956240d6c9a27b743df8548ecd6c3dd>
- <https://git.kernel.org/stable/c/2e8c8c6ff43ca4cf52c82470e72bd73ddd660b87>
- <https://git.kernel.org/stable/c/bb5dd42918c62988c734b0017e41c11043c2946c>
- <https://git.kernel.org/stable/c/c07e6802f75e112e82cfacbe01a15fb047ef7284>
- <https://git.kernel.org/stable/c/d998fa25c4f8d81541f1ae52d39dde9dd343df9b>
- <https://git.kernel.org/stable/c/caaf795ed9946074a8f9154e67053f4cc9cde7e0>
- <https://git.kernel.org/stable/c/5f981beb9a8d050a7cabd7184cf4c96643eff9a7>
- <https://git.kernel.org/stable/c/2f61b9d1d54edf75a352c43eebe3804144b5d44e>

## Sources

- CVE List: [CVE-2026-139159](https://www.cve.org/CVERecord?id=CVE-2026-139159), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-139159](https://nvd.nist.gov/vuln/detail/CVE-2026-139159), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-139159 · Whole record: https://cve.day/CVE-2026-139159.json · Rebuilt by cve.day 2026-12-01T06:32:20.588Z
