CVE-2026-139159
8.1high
nvmet: prevent double-free after metadata SGL allocation failure
- Severity
- 8.1high CVSS:3.1 by Linux
- Exploit likelihood
- 0.63% (higher than 51% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 and 1 more 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.* | CVE List |
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-139159 changed 2026-12-01 | CVE Terms of Use |
| NVD | CVE-2026-139159 changed 2026-12-01 | Public domain |