Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
High 8.1CVE-2026-139159

nvmet: prevent double-free after metadata SGL allocation failure

Published 30/11/2026 · Updated 01/12/2026 · 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 products and versions

Linux Linuxc6e3f13398123a008cd2ee28f93510b113a32791 – < b22d6aa4c956240d6c9a27b743df8548ecd6c3dd · c6e3f13398123a008cd2ee28f93510b113a32791 – < 2e8c8c6ff43ca4cf52c82470e72bd73ddd660b87 · c6e3f13398123a008cd2ee28f93510b113a32791 – < bb5dd42918c62988c734b0017e41c11043c2946c · c6e3f13398123a008cd2ee28f93510b113a32791 – < c07e6802f75e112e82cfacbe01a15fb047ef7284 · c6e3f13398123a008cd2ee28f93510b113a32791 – < d998fa25c4f8d81541f1ae52d39dde9dd343df9b · c6e3f13398123a008cd2ee28f93510b113a32791 – < caaf795ed9946074a8f9154e67053f4cc9cde7e0 · c6e3f13398123a008cd2ee28f93510b113a32791 – < 5f981beb9a8d050a7cabd7184cf4c96643eff9a7 · c6e3f13398123a008cd2ee28f93510b113a32791 – < 2f61b9d1d54edf75a352c43eebe3804144b5d44eFixed in: b22d6aa4c956240d6c9a27b743df8548ecd6c3dd · 2e8c8c6ff43ca4cf52c82470e72bd73ddd660b87 · bb5dd42918c62988c734b0017e41c11043c2946c · c07e6802f75e112e82cfacbe01a15fb047ef7284 · d998fa25c4f8d81541f1ae52d39dde9dd343df9b · caaf795ed9946074a8f9154e67053f4cc9cde7e0 · 5f981beb9a8d050a7cabd7184cf4c96643eff9a7 · 2f61b9d1d54edf75a352c43eebe3804144b5d44e
Linux Linux5.8Fixed in: 5.10.275 · 5.15.226 · 6.1.193 · 6.6.163 · 6.12.119 · 6.18.65 · 7.3.6 · 7.4-rc1

CVSS vector, explained

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack vector
Network (from the internet)
Attack complexity
High
Privileges required
None (no login)
User interaction
Not required
Scope
Vulnerable component only
Confidentiality
High impact
Integrity
High impact
Availability
High impact

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.