Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-138813

published high CVSS 3.1 · 7.5

nvmet: free the bvec on file namespace range errors

Published
30 Nov 2026, 13:25:13 UTC
Updated
01 Dec 2026, 05:40:09 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux50a909db36f244bcfec6e02598d31c0b0a468175 to < 44d71f6d84dcea7ba11874cae075c9fa552829eb · 50a909db36f244bcfec6e02598d31c0b0a468175 to < 50d4554df460676538753d7c71c79d8a49e19e47 · 50a909db36f244bcfec6e02598d31c0b0a468175 to < 58e624d9cf2c1e6fa4bb0697c771c1783c36c403 · 50a909db36f244bcfec6e02598d31c0b0a468175 to < 9c53aff85435e3ba0a8b33d8b2f50ef7464f138c · 50a909db36f244bcfec6e02598d31c0b0a468175 to < 1cfc0f64b3fbbfca2169213f63f7811447240a96 · 50a909db36f244bcfec6e02598d31c0b0a468175 to < ef062530729f0ddc738ac60a7966567836573e67 · 50a909db36f244bcfec6e02598d31c0b0a468175 to < 19c237734e1f83f4fd7fbf29eb817f8f0c831d99 · 50a909db36f244bcfec6e02598d31c0b0a468175 to < 9d820d55b3cb4859c7cf42a74dc78f6154f97398 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.0 (affected) · 0 to < 5.0 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix; Not Affected Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.5 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Scenarios
en: AV:N - The bad value is the SLBA field of an NVMe Read/Write command capsule received over NVMe/TCP (routable TCP). The path is nvmet_tcp_done_recv_pdu -> nvmet_req_init -> nvmet_parse_io_cmd -> nvmet_file_parse_io_cmd -> nvmet_file_execute_rw -> nvmet_file_execute_io. There, the range check fails after the bvec array was kmalloc'd and returns via nvmet_req_complete() without freeing it. AC:L - The host reads NSZE via Identify Namespace, then sends a Read with SLBA past the end of the file and an SGL longer than 32 KiB. sgl_alloc gives sg_cnt>8, so nvmet_file_execute_rw kmallocs the bvec. The pos+transfer_len>ns->size check then fails every time. The only precondition is a file-backed namespace, which is the only setup where nvmet_file_execute_rw runs at all. PR:N - Fabrics Connect only string-compares the host-asserted hostnqn in nvmet_host_allowed(), or skips it when allow_any_host is set. nvmet_check_auth_status() returns true when no DH-HMAC-CHAP host_key is set, so no credential is verified. A Read is enough, since nvmet_io_cmd_check_access() only rejects writes to read-only namespaces. UI:N - The remote host connects, issues Identify and sends the out-of-range Read capsules itself. No administrator or other user on the target has to do anything. S:U - The leaked memory is kernel slab memory of the target host running nvmet. The impact stays within the same kernel security authority, and no guest/host or IOMMU boundary is crossed. C:N - The bug only drops the req->f.bvec allocation. The command fails with -ENOSPC before nvmet_file_submit_bvec issues any file I/O, so no file or kernel memory goes back to the host. I:N - Nothing is written. The leaked bio_vec array is just orphaned: req->f.bvec is overwritten on the next command, and the freed-or-not state never causes a double free or a stale pointer that gets used. A:H - Each capsule can leak up to 16 KiB: 1024 bio_vecs for a 4 MiB SGL, capped by NVMET_TCP_MAXH2CDATA, with no data sent by the host. The memory is never freed, even after disconnect. Repeating this at line rate over many queues exhausts target memory until OOM, and once kmalloc fails the bvec_pool mempool fallback elements leak too. This is the repeated-leak case the CVSS 3.1 spec lists under A:H.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 50a909db36f244bcfec6e02598d31c0b0a468175 to < 44d71f6d84dcea7ba11874cae075c9fa552829eb (affected · git)50a909db36f244bcfec6e02598d31c0b0a468175 to < 50d4554df460676538753d7c71c79d8a49e19e47 (affected · git)50a909db36f244bcfec6e02598d31c0b0a468175 to < 58e624d9cf2c1e6fa4bb0697c771c1783c36c403 (affected · git)50a909db36f244bcfec6e02598d31c0b0a468175 to < 9c53aff85435e3ba0a8b33d8b2f50ef7464f138c (affected · git)50a909db36f244bcfec6e02598d31c0b0a468175 to < 1cfc0f64b3fbbfca2169213f63f7811447240a96 (affected · git)50a909db36f244bcfec6e02598d31c0b0a468175 to < ef062530729f0ddc738ac60a7966567836573e67 (affected · git)50a909db36f244bcfec6e02598d31c0b0a468175 to < 19c237734e1f83f4fd7fbf29eb817f8f0c831d99 (affected · git)50a909db36f244bcfec6e02598d31c0b0a468175 to < 9d820d55b3cb4859c7cf42a74dc78f6154f97398 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.0 (affected)0 to < 5.0 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

nvmet: free the bvec on file namespace range errors

Provenance

Schema
5.2
Searchable
yes
Content hash
0d96965083e5301139e065af25c0ee772ff7229e022002625136177897fa6f76
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected