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
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.
| Product | Versions |
|---|---|
| Linux Linux | c6e3f13398123a008cd2ee28f93510b113a32791 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 Linux | 5.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 |
The record has no CVSS score.
Weaknesses
The record names no weakness.
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
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.