{"id":"CVE-2026-74386","summary":"nvmet-tcp: fix page fragment cache leak in error path","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-tcp: fix page fragment cache leak in error path\n\nIn nvmet_tcp_alloc_queue(), when a connection is closed during the\nallocation process (e.g., nvmet_tcp_set_queue_sock() returns -ENOTCONN),\nthe error handling jumps to out_destroy_sq and then to out_ida_remove\nwithout draining the page fragment cache.\n\nAlthough nvmet_tcp_free_cmd() is called in some error paths to release\nindividual page fragments, the underlying page cache reference held by\nqueue-\u003epf_cache is never released. The first allocation using pf_cache\nis the call to nvmet_tcp_alloc_cmd() for queue-\u003econnect, which happens\nafter ida_alloc() returns successfully. This results in a page leak each\ntime a connection fails during allocation, which could lead to memory\nexhaustion over time if connections are repeatedly opened and closed.\n\nFix this by calling page_frag_cache_drain() before freeing the queue\nstructure in the out_ida_remove label.","modified":"2026-08-16T03:48:50.426399997Z","published":"2026-08-15T05:59:01.786Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74386.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4dae393956093c807212918fd91a8fc70df15338"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5fbe83a374f09561a0f0c1f4aa021501ffd681eb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a43a9abc1ebf663f0aa56a729106f68dd9c77da6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ba3209704b3cd46961e4e081af5c52a780785648"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74386.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74386"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"872d26a391da92ed8f0c0f5cb5fef428067b7f30"},{"fixed":"a43a9abc1ebf663f0aa56a729106f68dd9c77da6"},{"fixed":"ba3209704b3cd46961e4e081af5c52a780785648"},{"fixed":"5fbe83a374f09561a0f0c1f4aa021501ffd681eb"},{"fixed":"4dae393956093c807212918fd91a8fc70df15338"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74386.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"6.12.97"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.40"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74386.json"}}],"schema_version":"1.9.0"}