nvmet: free the bvec on file namespace range errors
- 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: free the bvec on file namespace range errors
nvmet_file_execute_rw() allocates the bvec before nvmet_file_execute_io() checks whether the request fits in the backing file. If the request extends beyond the file, nvmet_file_execute_io() calls nvmet_req_complete() to return an error. This skips nvmet_file_io_done(), so the allocated memory is never freed. Repeated requests can exhaust memory.
Use nvmet_file_io_done() to free the bvec before returning the range error to the client.
| Product | Versions |
|---|---|
| Linux Linux | 50a909db36f244bcfec6e02598d31c0b0a468175 to before 44d71f6d84dcea7ba11874cae075c9fa552829eb Affected50a909db36f244bcfec6e02598d31c0b0a468175 to before 50d4554df460676538753d7c71c79d8a49e19e47 Affected50a909db36f244bcfec6e02598d31c0b0a468175 to before 58e624d9cf2c1e6fa4bb0697c771c1783c36c403 Affected50a909db36f244bcfec6e02598d31c0b0a468175 to before 9c53aff85435e3ba0a8b33d8b2f50ef7464f138c Affected50a909db36f244bcfec6e02598d31c0b0a468175 to before 1cfc0f64b3fbbfca2169213f63f7811447240a96 Affected50a909db36f244bcfec6e02598d31c0b0a468175 to before ef062530729f0ddc738ac60a7966567836573e67 Affected50a909db36f244bcfec6e02598d31c0b0a468175 to before 19c237734e1f83f4fd7fbf29eb817f8f0c831d99 Affected50a909db36f244bcfec6e02598d31c0b0a468175 to before 9d820d55b3cb4859c7cf42a74dc78f6154f97398 Affected |
| Linux Linux | 5.0 Affectedbefore 5.0 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.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 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/44d71f6d84dcea7ba11874cae075c9fa552829eb
- https://git.kernel.org/stable/c/50d4554df460676538753d7c71c79d8a49e19e47
- https://git.kernel.org/stable/c/58e624d9cf2c1e6fa4bb0697c771c1783c36c403
- https://git.kernel.org/stable/c/9c53aff85435e3ba0a8b33d8b2f50ef7464f138c
- https://git.kernel.org/stable/c/1cfc0f64b3fbbfca2169213f63f7811447240a96
- https://git.kernel.org/stable/c/ef062530729f0ddc738ac60a7966567836573e67
- https://git.kernel.org/stable/c/19c237734e1f83f4fd7fbf29eb817f8f0c831d99
- https://git.kernel.org/stable/c/9d820d55b3cb4859c7cf42a74dc78f6154f97398
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.