smb: client: fix smbd_connection leak on cifs_get_tcp_session() error (Linux Linux)

CVE-2026-98172
Non disponible

En bref

Source
NVD
EPSS
EPSS 0.18 % · centile 7 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Received

Description

In the Linux kernel, the following vulnerability has been resolved: smb: client: fix smbd_connection leak on cifs_get_tcp_session() error When an RDMA connection is successfully established via smbd_get_connection() but cifs_get_tcp_session() later fails (e.g. kthread_create() returns an error), the error path frees tcp_ses without first destroying the smbd_connection. Fix this by calling smbd_destroy() in the out_err cleanup path before kfree(tcp_ses). smbd_destroy() safely handles the case where smbd_conn is NULL, so it can be called unconditionally.

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected 2f8946464b11822169b9f10c7cf58a2440b51d54 < c295f6505aec085d73e8dcea9f648c8af1b9da8c ; affected 2f8946464b11822169b9f10c7cf58a2440b51d54 < 45a97df1b7fe6c1ca5493f8fb5284203991aeeb9 ; affected 2f8946464b11822169b9f10c7cf58a2440b51d54 < 3164402c58940ff58a3cecdb026405f07b0253af ; affected 2f8946464b11822169b9f10c7cf58a2440b51d54 < e3344bb0ff5ec8a276f42239e140f5442841ef23 ; affected 2f8946464b11822169b9f10c7cf58a2440b51d54 < 5c908e49d349266dff0c86dda6a05df0ff19b824 ; affected 2f8946464b11822169b9f10c7cf58a2440b51d54 < 928edc4bd6a617caabeb575fc13c254d9df623c4
Linux · Linuxaffected 4.16 ; unaffected 0 < 4.16 ; unaffected 5.10.273 ≤ 5.10.* ; unaffected 5.15.224 ≤ 5.15.* ; unaffected 6.1.189 ≤ 6.1.* ; unaffected 6.6.158 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD