nvmet: prevent double-free after metadata SGL allocation failure

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linuxc6e3f13398123a008cd2ee28f93510b113a32791 to before b22d6aa4c956240d6c9a27b743df8548ecd6c3dd Affectedc6e3f13398123a008cd2ee28f93510b113a32791 to before 2e8c8c6ff43ca4cf52c82470e72bd73ddd660b87 Affectedc6e3f13398123a008cd2ee28f93510b113a32791 to before bb5dd42918c62988c734b0017e41c11043c2946c Affectedc6e3f13398123a008cd2ee28f93510b113a32791 to before c07e6802f75e112e82cfacbe01a15fb047ef7284 Affectedc6e3f13398123a008cd2ee28f93510b113a32791 to before d998fa25c4f8d81541f1ae52d39dde9dd343df9b Affectedc6e3f13398123a008cd2ee28f93510b113a32791 to before caaf795ed9946074a8f9154e67053f4cc9cde7e0 Affectedc6e3f13398123a008cd2ee28f93510b113a32791 to before 5f981beb9a8d050a7cabd7184cf4c96643eff9a7 Affectedc6e3f13398123a008cd2ee28f93510b113a32791 to before 2f61b9d1d54edf75a352c43eebe3804144b5d44e Affected
Linux Linux5.8 Affectedbefore 5.8 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.