nvmet-tcp: fix page fragment cache leak in error path (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.18 % · percentile 7 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- NVD status
- Received
Description
In the Linux kernel, the following vulnerability has been resolved: nvmet-tcp: fix page fragment cache leak in error path In nvmet_tcp_alloc_queue(), when a connection is closed during the allocation process (e.g., nvmet_tcp_set_queue_sock() returns -ENOTCONN), the error handling jumps to out_destroy_sq and then to out_ida_remove without draining the page fragment cache. Although nvmet_tcp_free_cmd() is called in some error paths to release individual page fragments, the underlying page cache reference held by queue->pf_cache is never released. The first allocation using pf_cache is the call to nvmet_tcp_alloc_cmd() for queue->connect, which happens after ida_alloc() returns successfully. This results in a page leak each time a connection fails during allocation, which could lead to memory exhaustion over time if connections are repeatedly opened and closed. Fix this by calling page_frag_cache_drain() before freeing the queue structure in the out_ida_remove label.
References
- https://git.kernel.org/stable/c/aadb8eb9006e192c51b499860f40765de7d55680
- https://git.kernel.org/stable/c/fc11e3f0daaadb6e600a86e54b089d4662d0a464
- https://git.kernel.org/stable/c/a43a9abc1ebf663f0aa56a729106f68dd9c77da6
- https://git.kernel.org/stable/c/ba3209704b3cd46961e4e081af5c52a780785648
- https://git.kernel.org/stable/c/5fbe83a374f09561a0f0c1f4aa021501ffd681eb
- https://git.kernel.org/stable/c/4dae393956093c807212918fd91a8fc70df15338
European references
- ENISA EUVD · EUVD-2026-59533
- GCVE · GCVE-0-2026-74386
CERT-FR advisories
- CERTFR-2026-AVI-1385 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1372 — Multiples vulnérabilités dans les produits SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1335 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1333 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1286 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
Affected products
| Product | Versions |
|---|---|
| Linux · Linux | affected 872d26a391da92ed8f0c0f5cb5fef428067b7f30 < aadb8eb9006e192c51b499860f40765de7d55680 ; affected 872d26a391da92ed8f0c0f5cb5fef428067b7f30 < fc11e3f0daaadb6e600a86e54b089d4662d0a464 ; affected 872d26a391da92ed8f0c0f5cb5fef428067b7f30 < a43a9abc1ebf663f0aa56a729106f68dd9c77da6 ; affected 872d26a391da92ed8f0c0f5cb5fef428067b7f30 < ba3209704b3cd46961e4e081af5c52a780785648 ; affected 872d26a391da92ed8f0c0f5cb5fef428067b7f30 < 5fbe83a374f09561a0f0c1f4aa021501ffd681eb ; affected 872d26a391da92ed8f0c0f5cb5fef428067b7f30 < 4dae393956093c807212918fd91a8fc70df15338 |
| Linux · Linux | affected 5.0 ; unaffected 0 < 5.0 ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.160 ≤ 6.6.* ; unaffected 6.12.97 ≤ 6.12.* ; unaffected 6.18.40 ≤ 6.18.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |