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.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- None
- Availability
- High impact
References
- git.kernel.org/stable/c/44d71f6d84dcea7ba11874cae075c9fa552829eb
- git.kernel.org/stable/c/50d4554df460676538753d7c71c79d8a49e19e47
- git.kernel.org/stable/c/58e624d9cf2c1e6fa4bb0697c771c1783c36c403
- git.kernel.org/stable/c/9c53aff85435e3ba0a8b33d8b2f50ef7464f138c
- git.kernel.org/stable/c/1cfc0f64b3fbbfca2169213f63f7811447240a96
- git.kernel.org/stable/c/ef062530729f0ddc738ac60a7966567836573e67
- git.kernel.org/stable/c/19c237734e1f83f4fd7fbf29eb817f8f0c831d99
- git.kernel.org/stable/c/9d820d55b3cb4859c7cf42a74dc78f6154f97398
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.