{"id":"CVE-2026-138813","summary":"nvmet: free the bvec on file namespace range errors","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: free the bvec on file namespace range errors\n\nnvmet_file_execute_rw() allocates the bvec before\nnvmet_file_execute_io() checks whether the request fits in the backing\nfile. If the request extends beyond the file, nvmet_file_execute_io()\ncalls nvmet_req_complete() to return an error. This skips\nnvmet_file_io_done(), so the allocated memory is never freed. Repeated\nrequests can exhaust memory.\n\nUse nvmet_file_io_done() to free the bvec before returning the range\nerror to the client.","modified":"2026-11-30T15:01:06.777648855Z","published":"2026-11-30T13:25:13.127Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138813.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/19c237734e1f83f4fd7fbf29eb817f8f0c831d99"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1cfc0f64b3fbbfca2169213f63f7811447240a96"},{"type":"WEB","url":"https://git.kernel.org/stable/c/44d71f6d84dcea7ba11874cae075c9fa552829eb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/50d4554df460676538753d7c71c79d8a49e19e47"},{"type":"WEB","url":"https://git.kernel.org/stable/c/58e624d9cf2c1e6fa4bb0697c771c1783c36c403"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9c53aff85435e3ba0a8b33d8b2f50ef7464f138c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9d820d55b3cb4859c7cf42a74dc78f6154f97398"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ef062530729f0ddc738ac60a7966567836573e67"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138813.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138813"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"50a909db36f244bcfec6e02598d31c0b0a468175"},{"fixed":"44d71f6d84dcea7ba11874cae075c9fa552829eb"},{"fixed":"50d4554df460676538753d7c71c79d8a49e19e47"},{"fixed":"58e624d9cf2c1e6fa4bb0697c771c1783c36c403"},{"fixed":"9c53aff85435e3ba0a8b33d8b2f50ef7464f138c"},{"fixed":"1cfc0f64b3fbbfca2169213f63f7811447240a96"},{"fixed":"ef062530729f0ddc738ac60a7966567836573e67"},{"fixed":"19c237734e1f83f4fd7fbf29eb817f8f0c831d99"},{"fixed":"9d820d55b3cb4859c7cf42a74dc78f6154f97398"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138813.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138813.json"}}],"schema_version":"1.9.2"}